Feat: Adds base project
This commit is contained in:
9
infra/s3/main.py
Normal file
9
infra/s3/main.py
Normal file
@@ -0,0 +1,9 @@
|
||||
import pulumi
|
||||
import pulumi_aws as aws
|
||||
config=pulumi.Config()
|
||||
buckets_config=config.require_object("buckets")
|
||||
tags=config.require_object("tags")
|
||||
for b in buckets_config:
|
||||
bucket=aws.s3.BucketV2(b["name"],tags=tags)
|
||||
pulumi.export("bucket_name",bucket.id)
|
||||
pulumi.export("bucket_arn",bucket.arn)
|
||||
Reference in New Issue
Block a user