Sep 3, 2018 · 1 min read
Hi, you have a syntax error using locals:
resource "aws_iam_role" "instance1" {
name_prefix = "${locals.name_prefix}"
...
}it’s…resource "aws_iam_role" "instance1" {
name_prefix = "${local.name_prefix}"
...
}
when you reference the local, you need to take out the “S”