Last active
October 19, 2020 18:32
-
-
Save tusharshahrs/766e308696d4f7bf22e66fd970eb06bf to your computer and use it in GitHub Desktop.
elasticbeanstalk in python with pulumi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""An AWS Python Pulumi program""" | |
import pulumi | |
import pulumi_aws as aws | |
default_bucket = aws.s3.Bucket("defaultBucket") | |
default_bucket_object = aws.s3.BucketObject("defaultBucketObject", | |
bucket=default_bucket.id, | |
key="beanstalk/go-v1.zip", | |
source=pulumi.FileAsset("beanstalk/python.zip")) | |
default_application = aws.elasticbeanstalk.Application("mycoolelasticbeanstack", description="My test elastic beanstalk stack via pulumi") | |
default_application_version = aws.elasticbeanstalk.ApplicationVersion("defaultApplicationVersion", | |
application=default_application.id, | |
description="application version", | |
bucket=default_bucket.id, | |
key=default_bucket_object.id) | |
pulumi.export("elastic beanstalk s3 bucket", default_bucket.id) | |
pulumi.export("elastic beanstalk application name", default_application.name) | |
pulumi.export("elastic beanstalk applicationversions", default_application_version.name) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
KEY VALUE | |
aws:region us-east-2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment