You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to provision the snapshot policy, I get the following error because the name of the policy does not follow the convention even though a terraform plan does not indicate any error before the apply. It appears that hyphens are prefered rather than underscores in names.
Error: Error creating ResourcePolicy: googleapi: Error 400: Invalid value for field 'resource.name': 'snapshot_policy'. Must be a match of regex '(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)', invalid
I believe a tflint using the google ruleset does not catch this either.
I'm currently using the latest version of the ruleset from this project and below are the versions of tflint and go I have.
% go version
go version go1.15.6 darwin/amd64
% tflint --version
TFLint version 0.23.0
+ ruleset.google (0.4.0)
The text was updated successfully, but these errors were encountered:
jlosito
changed the title
[purposal] google_compute_resource_policy warn policy name follows regex rule
[proposal] google_compute_resource_policy warn policy name follows regex rule
Jan 7, 2021
I have a module which looks like the following.
When I try to provision the snapshot policy, I get the following error because the name of the policy does not follow the convention even though a
terraform plan
does not indicate any error before theapply
. It appears that hyphens are prefered rather than underscores in names.I believe a
tflint
using the google ruleset does not catch this either.I'm currently using the latest version of the ruleset from this project and below are the versions of tflint and go I have.
The text was updated successfully, but these errors were encountered: