Coder Social home page Coder Social logo

aws-ec2's Introduction

AWS-EC2

This Role will launch two AWS EC2 instances with basic configuration.

Requirements

Install following package on ansible controller:

  1. pip or pip3
  2. boto or boto3
Create one file at  '~/'    with name ".boto"

// add following data in file

[Credentials]
aws_access_key_id = <your_access_key_here>
aws_secret_access_key = <your_secret_key_here>

Note: it will set your AWS credentails for API calls.

Role Variables

Description of variables used by this Role.

Variable File Comment
key vars/main.yml Give your Key
region vars/main.yml Give region name(Ex. ap-south-1)

Description of variables for master.

Variable File Comment
instance_type_Master vars/main.yml Give instance type(Ex. t2.micro)
image_Master vars/main.yml Give image name (Ex. ami-0bcf5425cdc1d8a85)
security_group_Master vars/main.yml Give security group(Ex. Kubernetes-Master)
count_Master vars/main.yml Give count of instance (Ex. 1)
subnet_id_Master vars/main.yml Give subnet (Ex. subnet-070fdbef63646c886)
instance_tag_Master vars/main.yml Give tag name (Ex. k8s_Master)

Description of variables for slave.

Variable File Comment
instance_type_Slave vars/main.yml Give instance type(Ex. t2.micro)
image_Slave vars/main.yml Give image name (Ex. ami-0bcf5425cdc1d8a85)
security_group_Slave vars/main.yml Give security group(Ex. Kubernetes-Slave)
count_Slave vars/main.yml Give count of instance (Ex. 1)
subnet_id_Slave vars/main.yml Give subnet (Ex. subnet-070fdbef63646c886)
instance_tag_Slave vars/main.yml Give tag name (Ex. k8s_Slave)

Dependencies

None

Example Playbook

Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:

- hosts: localhost
  roles:
     - "your role name"

License

BSD

Author Information

[email protected]

aws-ec2's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.