nice-butcher-64302
08/09/2023, 10:43 AMpulumi up
command unfortunately first create the new policy, then delete the old one but since the bucket can have only one policy attached to it, what really happens is that at the end the bucket policy is actually removed.
The temporary solution I've found to this problem is to perform the pulumi up, then perform a pulumi refresh and after that another pulumi up. What istead I think could be useful at least in this case is to have a deleteBeforeCreate
flag for the cli to perform the delete operation before the create operation. A note on this, I tried with the flag deleteBeforeCreate
on the resource, but since I'm actually creating a new resource with a different ID, this is not solving the issue.billowy-army-68599
nice-butcher-64302
08/09/2023, 1:15 PMpulumi up
command, first pulumi create the new BucketPolicy (and I suppose attach it to the bucket) and then remove the old one. But working this way, the bucket results with no policy at all.pulumi refresh
- Pulumi recognize this way the new policy I wanted to apply has been actually deleted in the pulumi up
operation - and then re-do the pulumi up
commandbillowy-army-68599
nice-butcher-64302
08/09/2023, 1:43 PMbillowy-army-68599
nice-butcher-64302
08/10/2023, 9:56 AM