2014-07-28 19:43:00 +02:00
|
|
|
variable "foo" {
|
2014-08-05 07:04:48 +02:00
|
|
|
default = "bar"
|
|
|
|
description = "bar"
|
2014-07-28 19:43:00 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
provider "aws" {
|
2014-08-05 07:04:48 +02:00
|
|
|
access_key = "foo"
|
|
|
|
secret_key = "bar"
|
2014-07-28 19:43:00 +02:00
|
|
|
}
|
|
|
|
|
2016-01-17 01:20:00 +01:00
|
|
|
|
|
|
|
data "do" "simple" {
|
|
|
|
foo = "baz"
|
|
|
|
}
|
|
|
|
|
2014-07-28 19:43:00 +02:00
|
|
|
resource "aws_instance" "db" {
|
|
|
|
security_groups = "${aws_security_group.firewall.*.id}"
|
|
|
|
}
|
|
|
|
|
|
|
|
output "web_ip" {
|
|
|
|
value = "${aws_instance.web.private_ip}"
|
|
|
|
}
|