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

rule: Add google_compute_resource_policy_invalid_name rule #84

Merged
merged 1 commit into from
Mar 24, 2021

Conversation

wata727
Copy link
Member

@wata727 wata727 commented Mar 21, 2021

Fixes #66
See also https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/compute_resource_policy#name

Output example:

Error: "name" ("snapshot_policy") doesn't match regexp "^[a-z]([-a-z0-9]*[a-z0-9])$" (google_compute_resource_policy_invalid_name)

  on template.tf line 2:
   2:   name   = "snapshot_policy"

@wata727 wata727 merged commit ae543ac into master Mar 24, 2021
@wata727 wata727 deleted the resource_policy_naming branch March 24, 2021 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

[proposal] google_compute_resource_policy warn policy name follows regex rule
1 participant