-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Api Gateway Stage Tags cannot be added after Creation #1972
Comments
Thanks Bhutania for filing this issue. I cannot reproduce with these versions. Can you provide a complete repro? Perhaps there is something special about the awsNativeProvider setup?
|
Hmm, just to be clear, the error occurs on update, not on create. First the APIG stage needs to be created (with no tags), and then updated to add new tags. Here is an example diff that I would expect in a preview on the update operation:
Aws Native Provider is fairly simple:
I'll work on getting you a full repro. |
@Bhutania I was able to repro it with your example. This is the full program I've used (uncommenting the tags after the first apply):
I'll investigate what's causing this. |
At a first glance, what the provider seems to be doing is correct. It's sending a replace operation for the Path |
Not sure if this info helps, but instead using the provider's My (poor) diagram: |
I was able to repro it just with the AWS CLI:
So this seems to be a bug on the AWS Cloud Control side. But it's interesting that it works with the default tags. It could be an issue with updating from no tags (i.e. empty tag list) to tags. Let me verify that theory |
Indeed, after adding tags to the stage manually it works. The issue here seems to be how AWS CloudControl handles an empty As a workaround you could completely omit the AWS Cloud Control issue: aws-cloudformation/cloudformation-coverage-roadmap#2236 |
What happened?
Updating an API Gateway stage that does not already have tags results in an error. Adding tags during creation or outside of IaC seems to clear up this issue.
Example
Minimal Reproduction:
Output:
Output of
pulumi about
I'm using autostack so the provider versions are not apparent but this what is in my go mod:
github.com/pulumi/pulumi-aws-native/sdk v1.22.0
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: