steep-lamp-20408
08/29/2022, 10:43 AMimport pulumi_aws as aws
bucket = aws.s3.BucketV2(
"my-bucket-name",
tags={
"Client": "my-client-name,
"Environment": "my-stack-name",
},
)
b_acl = aws.s3.BucketAclV2("my-bucket-name", bucket=bucket.id, acl="private")
However, the name of the bucket created seems to be “`my-bucket-name-5d70fd9`” instead of “`my-bucket-name"`.
I tried adding resource_name
as a argument to aws.s3.BucketV2
, like the doc suggests, but in that case I got the error __init__() got multiple values for argument 'resource_name'
.
Any idea?billowy-army-68599
08/29/2022, 2:45 PMsteep-lamp-20408
08/29/2022, 3:08 PMbillowy-army-68599
08/29/2022, 3:09 PMsteep-lamp-20408
08/29/2022, 3:25 PM