Skip to content

dpittner/ansible-elastic-beanstalk

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

elastic_beanstalk

Ansible modules for working with Amazon Elastic Beanstalk

Requirements

This module requires boto

Example Playbook

The example playbook demonstrates how to create an application and version and update an existing environment.

---
- hosts: localhost
  connection: local
  gather_facts: False

  tasks:

  - name: Create Elastic Beanstalk application
    elasticbeanstalk_app:
      region: us-east-1
      app_name: Sample App
      state: present
    register: app


  - name: Create application version
    elasticbeanstalk_version:
      region: us-east-1
      app_name: Sample App
      version_label: Sample Version
      s3_bucket: sample-app-versions-bucket
      s3_key: sample-version-1.0.0.zip
      state: present
    register: version


  - name: Create appo
    elasticbeanstalk_env:
      region: us-east-1
      app_name: Sample App
      env_name: sampleApp-env
      version_label: Sample Application
      solution_stack_name: "64bit Amazon Linux 2014.09 v1.2.1 running Docker 1.5.0"
      option_settings:
        - Namespace: aws:elasticbeanstalk:application:environment
          OptionName: PARAM1
          Value: bar
        - Namespace: aws:elasticbeanstalk:application:environment
          OptionName: PARAM2
          Value: foobar
    register: env

License

MIT

Author Information

Harpreet Singh

About

Ansible modules for working with Amazon Elastic Beanstalk

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%