mirror of
https://github.com/MichaelCade/90DaysOfDevOps.git
synced 2025-07-13 01:09:40 +07:00
add new tests for IaC codebase
This commit is contained in:
12
2022/Days/IaC/Terratest/examples/instance.tf
Normal file
12
2022/Days/IaC/Terratest/examples/instance.tf
Normal file
@ -0,0 +1,12 @@
|
||||
resource "aws_instance" "example" {
|
||||
ami = var.AMIS[var.AWS_REGION]
|
||||
instance_type = "t2.micro"
|
||||
vpc_security_group_ids = [aws_security_group.instance.id]
|
||||
|
||||
# When the instance boots, start a web server on port 8080 that responds with "Hello, World!".
|
||||
user_data = <<EOF
|
||||
#!/bin/bash
|
||||
echo "Hello, World!" > index.html
|
||||
nohup busybox httpd -f -p 8080 &
|
||||
EOF
|
||||
}
|
Reference in New Issue
Block a user