-
Notifications
You must be signed in to change notification settings - Fork 22
Description
terraform plan gives below error.
required_version = ">= 0.15.4"
Error: Error in function call
│
│ on .terraform/modules/codedeploy/app/codedeploy.tf line 59, in resource "aws_iam_policy" "deployer_policy":
│ 59: ${element(formatlist(", { "Effect" : "Allow", "Action" : [ "s3:PutObject*", "s3:ListBucket" ], "Resource" : [ "%s/", "%s" ] }, { "Effect" : "Allow", "Action" : [ "s3:ListAllMyBuckets" ], "Resource" : [ "" ] }", compact(list(var.s3_bucket_arn)), compact(list(var.s3_bucket_arn))), 0)}
│ ├────────────────
│ │ var.s3_bucket_arn will be known only after apply
│
│ Call to function "list" failed: the "list" function was deprecated in Terraform v0.12 and is no longer
│ available; use tolist([ ... ]) syntax to write a literal list.
╵
╷
│ Error: Error in function call
│
│ on .terraform/modules/codedeploy/app/codedeploy.tf line 59, in resource "aws_iam_policy" "deployer_policy":
│ 59: ${element(formatlist(", { "Effect" : "Allow", "Action" : [ "s3:PutObject*", "s3:ListBucket" ], "Resource" : [ "%s/", "%s" ] }, { "Effect" : "Allow", "Action" : [ "s3:ListAllMyBuckets" ], "Resource" : [ "" ] }", compact(list(var.s3_bucket_arn)), compact(list(var.s3_bucket_arn))), 0)}
│ ├────────────────
│ │ var.s3_bucket_arn will be known only after apply
│
│ Call to function "list" failed: the "list" function was deprecated in Terraform v0.12 and is no longer
│ available; use tolist([ ... ]) syntax to write a literal list.