-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
google_compute_subnetwork - updating logging config forces new resource #3628
Comments
We're not able to effectively support update on this block until it goes GA due to some limitations in our API + code generator for the provider interacting badly. We've filed an issue on the API to try to ease the restriction blocking us, and it should become possible to update this field when it goes GA. I'll update this issue as the API advances to GA or relaxes the restriction. |
Thanks for the update! |
quick check if any update on this one? |
It looks like the feature went GA, so custom update code should be possible now. That's currently unassigned though, and I don't have a clear timeline, though. If this is something you're interested in, please 👍 the parent post! |
Fixing this will probably end up involving a breaking change or some 3.0.0 work. |
I'm not confident I can get to this in time before the release, so @slevenick is going to take a crack at it. |
@slevenick: Mind attaching the PRs that added support? |
Added support for updating this block in #4791 |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks! |
Hi,
I created a VPC network and subnet following the configuration here but with a few changes. I initially created the network and subnet without the beta provider or the flow log configuration. I then added the flow log configuration with the beta provider and ran
terraform apply
. Terraform wants to destroy and recreate the resource with the logging configuration. I do not believe this should be the case. If I attempt the same operations using the gcloud command, it updates it in place. The configuration files are below.Terraform Version
Affected Resource(s)
Terraform Configuration Files
Initial configuration without flow log enabled
New configuration file with flow log enabled
Debug Output
output from
terraform plan
https://gist.github.com/arvindgorur/55703332e989127dec98850796307714
Expected Behavior
Terraform should update the resource in place
Actual Behavior
Terraform removes the resource and re-provisions it with the new configuration
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply
The text was updated successfully, but these errors were encountered: