Open
Description
Language Server Version
0.34.3+Homebrew
Terraform Version
Terraform v1.6.6 on darwin_arm64
Client Version
NVIM v0.10.1
Terraform Configuration
variable "cname_records" {
type = map(string)
description = "Map of CNAME records, where key is the domain and value is the record value."
}
cname_records = {
"_cea53b5cd872a2d2d966a339ae031d59.foo.no." = "_8e50420392efe6ae6720f03fd2acd445.nhqijqilxf.acm-validations.aws."
}
Steps to Reproduce
- Define the variable in variables.tf.
- Set the variable in terraform.tfvars.
Expected Behavior
I expect not to get any errors, as this is a correct and working configuration.
Actual Behavior
Receive the error Unexpected attribute: An attribute named "cname_records" is not expected here
.
Gist
No response
Workarounds
No response
References
No response
Help Wanted
- I'm interested in contributing a fix myself
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment