In this post, we will see how to resolve How can I get Terraform’s ‘cloudinit_config’ data source to use an actual user-data script in my local directory? Question: Here’s my cloudinit_config module in my Terraform code: main.tf I’m referencing the ...

Question: I have a ec2 instance in aws that is controlled by a auto scaling group and launch configuration. The launch configuration file, initially all what had to do is install nginx. As follow: This was working just perfectly fine. ...

Question: I’m unable to run bash scripts in “runcmd:” that aren’t inline. The first two lines are successfully run on the deployed Ubuntu instance. However, the foo.sh doesn’t seem to run. Here is /usr/local/bin/foo.sh: foo.sh has executable permissions for root ...