2017-12-15 06:37:36 +00:00
|
|
|
terraform {
|
2018-04-19 17:01:27 +00:00
|
|
|
required_version = "~> 0.11.0"
|
2017-12-15 06:37:36 +00:00
|
|
|
}
|
|
|
|
|
2017-12-20 17:04:43 +00:00
|
|
|
provider "aws" {
|
2018-11-27 21:54:47 +00:00
|
|
|
# was 1.13.0
|
|
|
|
version = "= 1.42.0"
|
2017-12-20 17:04:43 +00:00
|
|
|
}
|
2017-12-15 06:37:36 +00:00
|
|
|
|
|
|
|
data "aws_caller_identity" "creds" {}
|
2018-01-23 16:26:27 +00:00
|
|
|
|
2017-12-15 06:37:36 +00:00
|
|
|
output "aws_account_id" {
|
|
|
|
value = "${data.aws_caller_identity.creds.account_id}"
|
2017-12-20 17:20:09 +00:00
|
|
|
}
|
2018-01-23 16:26:27 +00:00
|
|
|
|
2018-04-19 17:01:27 +00:00
|
|
|
data "aws_region" "current" {}
|
2018-01-23 16:26:27 +00:00
|
|
|
|
|
|
|
output "aws_region" {
|
2018-04-19 17:01:27 +00:00
|
|
|
value = "${data.aws_region.current.name}"
|
2018-01-23 16:26:27 +00:00
|
|
|
}
|
2018-11-27 21:54:47 +00:00
|
|
|
|
|
|
|
data "aws_availability_zones" "available" {}
|