mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-30 10:47:14 -06:00
19 lines
326 B
HCL
19 lines
326 B
HCL
variable "foo" {
|
|
default = "bar"
|
|
description = "bar"
|
|
}
|
|
|
|
provider "aws" {
|
|
foo = "${openstack_floating_ip.random.value}"
|
|
}
|
|
|
|
resource "aws_security_group" "firewall" {}
|
|
|
|
resource "aws_instance" "web" {
|
|
ami = "${var.foo}"
|
|
security_groups = [
|
|
"foo",
|
|
"${aws_security_group.firewall.foo}"
|
|
]
|
|
}
|