9 lines
301 B
Python
9 lines
301 B
Python
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.Bucket(b["name"],tags=tags)
|
|
pulumi.export("bucket_name",bucket.id)
|
|
pulumi.export("bucket_arn",bucket.arn) |