curved-agency-28625
10/21/2024, 8:47 AMaws.s3.BucketPolicy(
f"policy-{self.origin_bucket.id}", #<--- i changed this name.
bucket=self.origin_bucket.id,
opts=ResourceOptions(delete_before_replace=True),
policy=self.__get_policy_with_origins(distributions),
)
output from a test run where i changed the name:
+ ├─ aws:s3:BucketPolicy policy-bucket1 created (0.89s)
+ ├─ aws:s3:BucketPolicy policy-bucket2 created (0.82s)
- ├─ aws:s3:BucketPolicy policyyyy-bucket1 deleted (0.81s)
- └─ aws:s3:BucketPolicy policyyyy-bucket2 deleted (1s)
a pulumi refresh makes pulumi find the policy is deleted. and then a second up will created the policy again.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