Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

│ Call to function "map" failed: the "map" function was deprecated in Terraform v0.12 and is no longer available; use tomap({ ... } #1

Open
txsutton opened this issue Mar 20, 2023 · 0 comments

Comments

@txsutton
Copy link

│ Error: Error in function call

│ on modules\vpc\3-flow-logs.tf line 37, in resource "aws_cloudwatch_log_group" "flow_log":
│ 37: map(
│ 38: "Purpose", "VPC Flow Log CloudWatch Log Group for ${var.vpc_name}"
│ 39: )
│ ├────────────────
│ │ while calling map(vals...)
│ │ var.vpc_name is a string

│ Call to function "map" failed: the "map" function was deprecated in Terraform v0.12 and is no longer available; use tomap({ ... }) syntax to write a literal map.


│ Error: Error in function call

│ on modules\vpc\3-flow-logs.tf line 37, in resource "aws_cloudwatch_log_group" "flow_log":
│ 37: map(
│ 38: "Purpose", "VPC Flow Log CloudWatch Log Group for ${var.vpc_name}"
│ 39: )
│ ├────────────────
│ │ while calling map(vals...)
│ │ var.vpc_name is a string

│ Call to function "map" failed: the "map" function was deprecated in Terraform v0.12 and is no longer available; use tomap({ ... }) syntax to write a literal map.


│ Error: Error in function call

│ on modules\vpc\3-flow-logs.tf line 68, in resource "aws_iam_role" "vpc_flow_log_iam_role":
│ 68: map(
│ 69: "Purpose", "IAM role to allow VPC Flow Logs to publish to CloudWatch Logs"
│ 70: )
│ ├────────────────
│ │ while calling map(vals...)

│ Call to function "map" failed: the "map" function was deprecated in Terraform v0.12 and is no longer available; use tomap({ ... }) syntax to write a literal map.


│ Error: Error in function call

│ on modules\vpc\3-flow-logs.tf line 68, in resource "aws_iam_role" "vpc_flow_log_iam_role":
│ 68: map(
│ 69: "Purpose", "IAM role to allow VPC Flow Logs to publish to CloudWatch Logs"
│ 70: )
│ ├────────────────
│ │ while calling map(vals...)

│ Call to function "map" failed: the "map" function was deprecated in Terraform v0.12 and is no longer available; use tomap({ ... }) syntax to write a literal map.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant