I’m using Terraform to deploy an asg deployment config which employs user_data to provide some launch pre-config to scaled instances.
Previously I’ve just being passing text files via the
file() module, but in trying to reduce repetition across the user-data scripts I have experimented using the
templatefile module introduced in
Unfortunately this doesn’t seem to be working, and I suspect it’s could be because AWS is expecting a file with a txt extension. Is there anyway I can do this using