-
Notifications
You must be signed in to change notification settings - Fork 117
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
awscc_ec2_ipam_pool - update to args has unexpected force new #1139
Comments
TF DEBUG output shows that the only detected changes are for
|
IPAM Pool create only properties
|
Terraform plan shows force replacement for these createOnlyProperties:
|
These attributes are stored as null in the Terraform state file
|
GetResource using CCAPI confirms that these attributes are not included in the response:
See below for the output:
|
I suspect the plan modifiers couldn't distinguish |
It looks like we are falling foul of this behavior. For example with |
@ewbankkit , with the lack of default values available on the schema, does this mean we need a custom plan modifiers? |
@wellsiau-aws I think using |
you are right, I just tested this behavior on my local build for After I overcome this problem, I found a new behavior which I will describe on separate issue. |
Community Note
Terraform CLI and Terraform AWS Cloud Control Provider Version
Affected Resource(s)
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
First apply to create the resource works
Second apply that just updates the
description
forces a new resources unexpectedly. This affects other argument updates of the pool as wellDebug Output
Panic Output
Expected Behavior
Expect an in-place update of the IPAM Pool without recreation
Actual Behavior
Forces a new IPAM Pool to be created. With the following snippet:
Steps to Reproduce
terraform apply
with the following blockterraform apply
again with the following config that just updates thedescription
forces a new resources unexpectedly. This affects other argument updates of the pool as wellImportant Factoids
References
The text was updated successfully, but these errors were encountered: