sparse-intern-71089
02/09/2021, 9:08 PMbillowy-army-68599
average-school-38756
02/09/2021, 9:12 PMaverage-school-38756
02/11/2021, 9:26 PMaws.s3.Bucket(
"foo-data",
)
In order to import this resource in another stack, i have to set the bucket
value and use the ARN for the import ID. After a successful import, i can remove the ARN, but not the bucket
value:
aws.s3.Bucket(
"foo-data",
bucket="foo-data-56abebe",
)
If i remove bucket="foo-data-56abebe"
for this already-imported resource, Pulumi wants to do a replace. But i don't want the bucket name hard-coded, so i can use this project to spin up other stacks.
It seems using aliases doesn't handle the bucket value. So how do i get this new stack to know that "foo-data-56abebe" is the bucket name auto-generated from the "foo-data" name, like the original stack did?No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by