From 0bb8d9801e4212d23c016a7b5ab72c4503ef5942 Mon Sep 17 00:00:00 2001 From: Ville Gustafsson Date: Wed, 16 Sep 2020 17:58:50 +0300 Subject: [PATCH] Aws provider 3.x (#72) * use latest releases of modules * allow 3.x AWS provider * update readme * remove upper limit of TF version Co-authored-by: Ville Gustafsson --- README.md | 8 +++++--- docs/terraform.md | 8 +++++--- examples/complete/main.tf | 4 ++-- main.tf | 8 ++++---- versions.tf | 4 ++-- 5 files changed, 18 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 5ad5c8b..78ed126 100644 --- a/README.md +++ b/README.md @@ -124,12 +124,13 @@ Available targets: ``` + ## Requirements | Name | Version | |------|---------| -| terraform | >= 0.12.0, < 0.14.0 | -| aws | ~> 2.0 | +| terraform | >= 0.12.0 | +| aws | >= 2.0 | | null | ~> 2.0 | | template | ~> 2.0 | @@ -137,7 +138,7 @@ Available targets: | Name | Version | |------|---------| -| aws | ~> 2.0 | +| aws | >= 2.0 | | null | ~> 2.0 | ## Inputs @@ -213,6 +214,7 @@ Available targets: | kibana\_hostname | Kibana hostname | | security\_group\_id | Security Group ID to control access to the Elasticsearch domain | + diff --git a/docs/terraform.md b/docs/terraform.md index 88c9f64..c83b04f 100644 --- a/docs/terraform.md +++ b/docs/terraform.md @@ -1,9 +1,10 @@ + ## Requirements | Name | Version | |------|---------| -| terraform | >= 0.12.0, < 0.14.0 | -| aws | ~> 2.0 | +| terraform | >= 0.12.0 | +| aws | >= 2.0 | | null | ~> 2.0 | | template | ~> 2.0 | @@ -11,7 +12,7 @@ | Name | Version | |------|---------| -| aws | ~> 2.0 | +| aws | >= 2.0 | | null | ~> 2.0 | ## Inputs @@ -87,3 +88,4 @@ | kibana\_hostname | Kibana hostname | | security\_group\_id | Security Group ID to control access to the Elasticsearch domain | + diff --git a/examples/complete/main.tf b/examples/complete/main.tf index 61829c0..8f44b21 100644 --- a/examples/complete/main.tf +++ b/examples/complete/main.tf @@ -3,7 +3,7 @@ provider "aws" { } module "vpc" { - source = "git::https://github.com/cloudposse/terraform-aws-vpc.git?ref=tags/0.10.0" + source = "git::https://github.com/cloudposse/terraform-aws-vpc.git?ref=tags/0.17.0" namespace = var.namespace stage = var.stage name = var.name @@ -11,7 +11,7 @@ module "vpc" { } module "subnets" { - source = "git::https://github.com/cloudposse/terraform-aws-dynamic-subnets.git?ref=tags/0.19.0" + source = "git::https://github.com/cloudposse/terraform-aws-dynamic-subnets.git?ref=tags/0.30.0" availability_zones = var.availability_zones namespace = var.namespace stage = var.stage diff --git a/main.tf b/main.tf index 0fee3cb..57c4096 100644 --- a/main.tf +++ b/main.tf @@ -1,5 +1,5 @@ module "label" { - source = "git::https://github.com/cloudposse/terraform-null-label.git?ref=tags/0.17.0" + source = "git::https://github.com/cloudposse/terraform-null-label.git?ref=tags/0.19.2" enabled = var.enabled namespace = var.namespace name = var.name @@ -12,7 +12,7 @@ module "label" { } module "user_label" { - source = "git::https://github.com/cloudposse/terraform-null-label.git?ref=tags/0.17.0" + source = "git::https://github.com/cloudposse/terraform-null-label.git?ref=tags/0.19.2" enabled = var.enabled namespace = var.namespace name = var.name @@ -248,7 +248,7 @@ resource "aws_elasticsearch_domain_policy" "default" { } module "domain_hostname" { - source = "git::https://github.com/cloudposse/terraform-aws-route53-cluster-hostname.git?ref=tags/0.5.0" + source = "git::https://github.com/cloudposse/terraform-aws-route53-cluster-hostname.git?ref=tags/0.7.0" enabled = var.enabled && var.dns_zone_id != "" ? true : false name = var.elasticsearch_subdomain_name == "" ? var.name : var.elasticsearch_subdomain_name ttl = 60 @@ -257,7 +257,7 @@ module "domain_hostname" { } module "kibana_hostname" { - source = "git::https://github.com/cloudposse/terraform-aws-route53-cluster-hostname.git?ref=tags/0.5.0" + source = "git::https://github.com/cloudposse/terraform-aws-route53-cluster-hostname.git?ref=tags/0.7.0" enabled = var.enabled && var.dns_zone_id != "" ? true : false name = var.kibana_subdomain_name ttl = 60 diff --git a/versions.tf b/versions.tf index 298a3d1..7a8e1a7 100644 --- a/versions.tf +++ b/versions.tf @@ -1,8 +1,8 @@ terraform { - required_version = ">= 0.12.0, < 0.14.0" + required_version = ">= 0.12.0" required_providers { - aws = "~> 2.0" + aws = ">= 2.0" template = "~> 2.0" null = "~> 2.0" }