Skip to content
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

Access Context Manager - make ingress and egress rules immutable #7105

Conversation

modular-magician
Copy link
Collaborator

Make Service Perimeter Ingress and Egress policy resources immutable so that updates will be applied by replacing the resources.

Fixes:
14895 - b/287060819

accesscontextmanager: fixed an issue with `access_context_manager_service_perimeter_ingress_policy` and `access_context_manager_service_perimeter_egress_policy` where updates could not be applied after initial creation. Any updates applied to these resources will now involve their recreation. To ensure that new policies are added before old ones are removed, add a `lifecycle` block with `create_before_destroy = true` to your resource configuration alongside other updates.

Derived from GoogleCloudPlatform/magic-modules#10147

…147)

* Access Context Manager - make ingress and egress rules immutable

* Move immutable state to top level resource

---------

Co-authored-by: Charles Leon <charlesleon@google.com>

[upstream:7f8a73595635f1ddd917fd6b33ce9a6d1bcf2c97]

Signed-off-by: Modular Magician <magic-modules@google.com>
@modular-magician modular-magician merged commit 8da534d into hashicorp:main Mar 14, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant