Skip to content

Make mtu in google_compute_network updatable #8091

Open
@bharathkkb

Description

@bharathkkb

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request.
  • Please do not leave +1 or me too comments, they generate extra noise for issue followers and do not help prioritize the request.
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment.
  • If an issue is assigned to the modular-magician user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If an issue is assigned to a user, that user is claiming responsibility for the issue. If an issue is assigned to hashibot, a community member has claimed the issue already.

Terraform Version

Affected Resource(s)

  • google_compute_network

Terraform Configuration Files

terraform-google-modules/terraform-google-network#221 (comment)

Debug Output

Panic Output

Expected Behavior

I am able to update the MTU field

Actual Behavior

Delete recreate due to field being set as ForceNew

Steps to Reproduce

  1. terraform apply

Important Factoids

I am able to update network via a patch operation

curl --request PATCH \
  'https://compute.googleapis.com/compute/v1/projects/test-project/global/networks/test-vpc \
  --header 'Authorization: Bearer [YOUR_ACCESS_TOKEN]' \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \
  --data '{"mtu":1500}' \
  --compressed

References

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions