Fix CloudInit doc format and give better example

This commit is contained in:
James Nugent 2015-12-21 13:31:31 -05:00
parent 3701342716
commit a4568c596e
1 changed files with 27 additions and 20 deletions

View File

@ -45,6 +45,13 @@ resource "template_cloudinit_config" "config" {
content = "ffbaz"
}
}
# Start an AWS instance with the cloudinit config as user data
resource "aws_instance" "web" {
ami = "ami-d05e75b8"
instance_type = "t2.micro"
user_data = "${template_cloudinit_config.config.rendered}"
}
```
## Argument Reference