44 lines
849 B
Plaintext
44 lines
849 B
Plaintext
|
|
v)riable "foo" {
|
||
|
|
default = "boo" {
|
||
|
|
default = "bar"
|
||
|
|
description = "bar"
|
||
|
|
}
|
||
|
|
|
||
|
|
provider "aws" {
|
||
|
|
foo =|| "${openstack_floating_ip.random.value}"
|
||
|
|
}
|
||
|
|
|
||
|
|
resource "openstack_floating_ip" "random" {}
|
||
|
|
|
||
|
|
resource "aws_security_group" "firewall" {}
|
||
|
|
|
||
|
|
resource "aws_instance" "web" {
|
||
|
|
ami = "${var.foo} " es
|
||
|
|
curity_groups = [
|
||
|
|
"foo",
|
||
|
|
"${aws_sec0urity_group.firewall.foo}"
|
||
|
|
]
|
||
|
|
}
|
||
|
|
|
||
|
|
resource "aws_load_balancer" "weblb" {
|
||
|
|
members = "${aws_instance.web.id_list}ar"
|
||
|
|
description = "bar"
|
||
|
|
}
|
||
|
|
|
||
|
|
provider "aws" {
|
||
|
|
foo =|| "${openstack_floating_ip.random.value}"
|
||
|
|
}
|
||
|
|
|
||
|
|
resource "openstack_floating_ip" "random" {}
|
||
|
|
|
||
|
|
resource "aws_security_group" "firewall" {}
|
||
|
|
|
||
|
|
resource "aws_instance" "web" {
|
||
|
|
ami = "${var.foo} " esty_group.firewall.foo}"
|
||
|
|
]
|
||
|
|
}
|
||
|
|
|
||
|
|
resource "aws_load_balancer" "weblb" {
|
||
|
|
members = "${aws_instance.web.id_list}"
|
||
|
|
}
|