inspec / inspec-aws

InSpec AWS Resource Pack https://www.inspec.io/
Other
133 stars 106 forks source link

aws_rds_cluster: db_cluster_identifier must start with a letter followed by up to 62 letters/numbers/hyphens. #952

Closed prasuprasobh closed 1 year ago

prasuprasobh commented 1 year ago

Hello Team,

I am getting when I am adding from the terraform output and getting above error message. But if I use value directly instead of updating from the terraform output, its working fine.

control "RDS Cluster" do impact 1.0 title "Ensure RDS Cluster should exist." describe aws_rds_cluster(db_cluster_identifier: db_cluster_identifier) do it { should exist } end end

Getting error message: aws_rds_cluster: db_cluster_identifier must start with a letter followed by up to 62 letters/numbers/hyphens.

Below one is working fine if I hard code the value

control "RDS Cluster" do impact 1.0 title "Ensure RDS Cluster should exist." describe aws_rds_cluster(db_cluster_identifier: 'testdev-rds-postgrssql') do it { should exist } end end