Hi everyone,
We’re using GitLab with Gitlab runs to provision our environments. In the space of a week we went from functioning TF code to receiving ‘null’ error. The only thing that has change is the version of TF from 1.3.0 to 1.3.1. Here are the error messages.
Error: Null value found in list
with module.route53.aws_route53_record.db_cname_record,
on route53/main.tf line 13, in resource “aws_route53_record” “db_cname_record”:
13: records = [var.cname_record_address]
Null values are not allowed for this attribute value.
╵
Error: Invalid template interpolation value
on workspace-database/main.tf line 152, in resource “aws_iam_role_policy” “lambda_database_access_policy”:
142: policy = <<EOF
143: {
144: “Version”: “2012-10-17”,
145: “Statement”: [
146: {
147: “Sid”: “DatabaseAuthenticationUsingIAM”,
148: “Effect”: “Allow”,
149: “Action”: [
150: “rds-db:Connect”
151: ],
152: “Resource”: “arn:{data.aws_partition.current.partition}:rds-db:{data.aws_region.current.name}:{data.aws_caller_identity.current.account_id}:dbuser:{aws_db_instance.RDS_instance.resource_id}/${var.db_username}”
153: }
154: ]
155: }
156: EOF
├────────────────
aws_db_instance.RDS_instance.resource_id is null
The expression result is null. Cannot include a null value in a string
template.
Has anybody else run into null errors after updating to 1.3.1?
Thanks
Abe