Advertisement
Armandobs14

elasticbeanstalk with Docker

Apr 27th, 2017
313
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.45 KB | None | 0 0
  1. #!/env/python
  2.  
  3. import boto3
  4.  
  5. kwargs = {
  6.   'ApplicationName': "EscalabilidadeApp",
  7.   'EnvironmentName': "EDocker",
  8.   'CNAMEPrefix': "EDocker-Neptune",
  9.   'SolutionStackName': "64bit Debian jessie v2.5.2 running Python 3.4 (Preconfigured - Docker)"
  10. }
  11.  
  12. # Create ElasticBeanstalk client
  13. elb = boto3.client('elasticbeanstalk')
  14.  
  15. elb.create_application(ApplicationName='EscalabilidadeApp');
  16. response = elb.create_environment(**kwargs)
  17.  
  18. print response
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement