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
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