flaky-rain-95152
04/23/2025, 6:54 AM+ │ ├─ custom:resource:PublicDataBucket results create
+ │ │ ├─ aws:s3:BucketV2 results-bucket create
+ │ │ ├─ aws:s3:BucketPolicy results-bucket-policy create
- │ ├─ aws:s3:BucketV2 results-bucket delete
For the alias I added the following in PublicDataBucket and passed this to awss3BucketV2:
self.name = 'results'
super().__init__('custom:resource:PublicDataBucket', name, {}, opts)
child_opts = ResourceOptions.merge(opts, ResourceOptions(parent=self, aliases=[Alias(name='results-bucket')]))
self.bucket = aws.s3.BucketV2(name + '-bucket', opts=child_opts) # this happens in a function which returns the bucket; I simplified it here
I also tried to set the actual URN of the previous results-bucket as alias name but this is also ignored I think.
I just need pulumi to recognize that I moved the bucket's definition into a ComponentResource so that it's not recreated.
Do you know how I can fix this?echoing-dinner-19531
04/23/2025, 7:15 AMAlias(parent=pulumi.ROOT_STACK_RESOURCE)