billowy-knife-29384
07/30/2024, 8:15 PMSNS Topic
but now I want it to have filter policies and may add more in the near future, the thing is that I cannot directly update it because Pulumi says that the resource already exists and won’t update it. Even changing the name of the subscription to try provoking a delete and re-creation won’t work because the Subscription remains and you cannot add a new subscription using the same Topic/Endpoint.
Is there any way to achieve this? could not find anything on the docs
Thanks in advance!modern-zebra-45309
07/31/2024, 7:54 AMbillowy-knife-29384
07/31/2024, 1:28 PMbillowy-knife-29384
07/31/2024, 2:06 PMmodern-zebra-45309
07/31/2024, 2:11 PMmodern-zebra-45309
07/31/2024, 2:12 PMbillowy-knife-29384
07/31/2024, 2:13 PMmodern-zebra-45309
07/31/2024, 2:17 PMsubscription = aws.sns.TopicSubscription("my-sub", topic=..., protocol="sqs")
And then, later, you modify this code to now read:
subscription = aws.sns.TopicSubscription("my-sub", topic=..., protocol="sqs", filter_policy="...")
And run pulumi up
again. This will modify the subscription.
What you cannot do is have a second stack that just modifies this property of the resource.billowy-knife-29384
07/31/2024, 2:17 PMbillowy-knife-29384
07/31/2024, 2:17 PMbillowy-knife-29384
07/31/2024, 2:18 PMbillowy-knife-29384
07/31/2024, 2:18 PMbillowy-knife-29384
07/31/2024, 4:55 PM