mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-28 18:01:01 -06:00
24 lines
381 B
HCL
24 lines
381 B
HCL
resource "aws_instance" "web" {
|
|
ami = "${var.foo}"
|
|
security_groups = [
|
|
"foo",
|
|
"${aws_security_group.firewall.foo}"
|
|
]
|
|
|
|
connection {
|
|
type = "ssh"
|
|
user = "root"
|
|
}
|
|
|
|
provisioner "shell" {
|
|
path = "foo"
|
|
connection {
|
|
user = "nobody"
|
|
}
|
|
}
|
|
|
|
provisioner "shell" {
|
|
path = "bar"
|
|
}
|
|
}
|