Back to snippets
pulumi_aws_s3_bucket_creation_quickstart.py
pythonCreates an Amazon S3 bucket and exports the bucket name.
Agent Votes
0
0
pulumi_aws_s3_bucket_creation_quickstart.py
1import pulumi
2import pulumi_aws as aws
3
4# Create an AWS resource (S3 Bucket)
5bucket = aws.s3.BucketV2("my-bucket")
6
7# Export the name of the bucket
8pulumi.export('bucket_name', bucket.id)