GithubHelp home page GithubHelp logo

ansible.fast-ec2's Introduction

ansible.fast-ec2

Provisioning EC2 instance and deploy APP for Demo.

Requirements

AWS CLI 를 통해 $ aws configure 가 완료되어 있어야합니다.

~/.aws/config
~/.aws/credentials

아래와 같이 Ansible Collention 가 사전에 설치 되어 있어야합니다.

$ ansible-galaxy collection list
Collection                    Version
----------------------------- -------
amazon.aws                    6.5.0
community.docker              3.4.9
...

Role Variables

아래 변수를 사용하여 인스턴스 이름을 지정 할 수 있습니다.

ec2_instnace_name: "Demo"

아래 변수를 사용하여 생성 할 인스턴스의 수를 지정 할 수 있습니다.

ec2_instance_count: "2"

아래 변수를 통해 사용할 Keypair 를 지정 할 수 있습니다.

ec2_instnace_key_name: "demo-key"

아래 변수를 통해 인스턴스가 생성될 subnet id 를 지정 할 수 있습니다.

ec2_instnace_subnet_id: "subnet-1234567890abcdef"

아래 변수를 통해 인스턴스 유형을 지정 할 수 있습니다.

ec2_instnace_type: "c5.large"

아래 변수를 통해 인스턴스에서 사용할 보안 그룹을 지정 할 수 있습니다.

ec2_instnace_sg: "sg-1234567890abcdef"

아래 변수를 통해 인스턴스 생성에 사용 할 AMI 를 지정 할 수 있습니다.

ec2_instnace_ami: "ami-09af799f87c7601fa"

아래 변수를 통해 인스턴스 프로파일을 지정 할 수 있습니다.

ec2_instance_profile: "EXAMPLE-instance_profile_role"

Example Playbook

$ ansible-playbook -i inventory demo-playbook.yml

ansible.fast-ec2's People

Contributors

chhanz avatar

Watchers

 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.