Skip to content

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

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 requested a review from a team as a code owner October 30, 2024 22:39
@modular-magician modular-magician requested review from ScottSuarez and removed request for a team October 30, 2024 22:39
Copy link

🤖 I detect that the PR title and the commit message differ and there's only one commit. To use the PR title for the commit history, you can use Github's automerge feature with squashing, or use automerge label. Good luck human!

-- conventional-commit-lint bot
https://conventionalcommits.org/

@modular-magician modular-magician merged commit 3b435f1 into GoogleCloudPlatform:main Oct 30, 2024
4 of 6 checks passed
@modular-magician modular-magician deleted the downstream-pr-81a9344c674a5ed872fd91dfc9561748fbd3661e branch November 18, 2024 06:11
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