hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.84k stars 9.19k forks source link

Unable to use @ symbol in EC2 user data shell script #40102

Closed K111098 closed 2 days ago

K111098 commented 3 days ago

Description

Hello - I have an EC2 instance being created by Terraform. I am passing a shell script for the user data to be run on creation of the ec2 instance which is passed to terraform using a data "template_file" block. Within the bash script I have the following line of code: for username in "$usernames[@]}"; do

TFE is throwing an error saying: Failed to render: