-
Notifications
You must be signed in to change notification settings - Fork 155
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
update on aws.vpc.routeTable shows unnecessary diff/update #1574
Comments
The diff related to gatewayId vs transitGatewayId appears to be a difference of opinion on types or polymorphism related. Eg- transitGateway is a type of gateway. |
Something new about it? Edit: Change the from |
Trying to reproduce this also noting that the first |
Couple more notes. Reproduces on 6.12.3 for me. Indeed fixing the program like this can workaround the issue:
|
I've translated this program to TF.
It appears the same behavior is present in upstream 5.29.0 provider and TF CLI 1.6.3. The first terraform apply fails with:
Subsequent Terraform apply gets stuck in a permanent diff with:
|
This appears somewhat documented https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/route_table see note 2:
It does not specifically mention transitGateway but I believe it behaves similarly here. |
Looks like Pulumi documentation has also inherited this note: https://www.pulumi.com/registry/packages/aws/api-docs/ec2/routetable/ |
@iwahbe @phillipedwards based on the above investigation I suggest closing as "resolution/by-design". It will be relatively difficult for us to improve this behavior over what the upstream provider decided to be the by-design behavior. I'm open to other suggestions how to proceed here, perhaps we could enhance the Pulumi side documentation on the issue? |
I agree with @t0yv0. The documentation correctly describes the observed behavior, and offers a path to resolve it. Upstream does the same thing. @phillipedwards Does that work for you? |
Closing. Please reopen if necessary. |
As a developer, I want pulumi to correctly show whether or not my stack requires updates or not, so that I can correctly identify when I've made a change to my pulumi managed resources.
git clone https://gist.github.com/phillipedwards/f4604a2a5cbeb7761791f79ff2633859
pulumi up
pulumi up
Expected: No updates made to aws resources on second execution of
pulumi up
Actual:
pulumi up
results in a diff for the route table's CIDR block and gateway IDThe text was updated successfully, but these errors were encountered: