python-terrascript/examples/TUAR_why_terraform/README.md

28 lines
663 B
Markdown

# Terraform: Up & Running - Why Terraform
[Hello World](https://github.com/brikis98/terraform-up-and-running-code/tree/master/code/terraform/00-preface/hello-world)
example adapted from Yevgeniy Brikman's book [Terraform: Up & Running](https://www.terraformupandrunning.com/).
```json
{
"provider": {
"aws": [
{
"region": "us-east-2",
"version": "~>2.0"
}
]
},
"resource": {
"aws_instance": {
"app": {
"instance_type": "t2.micro",
"availability_zone": "us-east-2a",
"ami": "ami-0c55b159cbfafe1f0",
"user_data": "#!/bin/bash\nsudo service apache2 start"
}
}
}
}
```