Skip to content

Updated resource "Region Security Policy" to allow for rule creation when creating the policy resource #8574

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

Conversation

modular-magician
Copy link
Collaborator

Updated resource "google_compute_region_security_policy" to allow rule creation at the same time when creating the policy. Functionality similar to what you can do with google_compute_security_policy.

It fixes a current issue that you cannot override the default created rule when (or after) creating a regional security policy. A default allow rule gets created at the same time, which cannot be controlled/changed without jumping through hoops to manually import it into your state: hashicorp/terraform-provider-google#15687

Release Note Template for Downstream PRs (will be copied)

compute: added "rules" property to "google_compute_region_security_policy" resource

Derived from GoogleCloudPlatform/magic-modules#11894

…when creating the policy resource (#11894)

Co-authored-by: Stephen Lewis (Burrows) <[email protected]>

[upstream:81a9344c674a5ed872fd91dfc9561748fbd3661e]

Signed-off-by: Modular Magician <[email protected]>
@modular-magician modular-magician merged commit e4df5d9 into hashicorp:main Oct 30, 2024
4 checks passed
@modular-magician modular-magician deleted the downstream-pr-81a9344c674a5ed872fd91dfc9561748fbd3661e branch November 16, 2024 04:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant