From 4dc75b16e83f705c5665c6f52a5a90bcb9d42769 Mon Sep 17 00:00:00 2001 From: Puneeth Date: Mon, 15 Feb 2021 18:02:51 +0100 Subject: [PATCH] Feature/upgrade to aws v 3 (#26) (#27) * Upgrade to most recent 2.X version * Upgrade to version 3.0 * Set required providers aws to ~> 3.0 * Custom variable validation can now be used by default, without enabling an experiment. * update terraform-docs command * terraform-docs to README.md * Fix tests Co-authored-by: Puneeth Nanjundaswamy Co-authored-by: Phillip L <46860631+1337blue@users.noreply.github.com> --- README.md | 4 ++-- triggers/api_gateway/README.md | 4 ++-- triggers/api_gateway/versions.tf | 2 +- triggers/cloudwatch_event_schedule/README.md | 4 ++-- triggers/cloudwatch_event_schedule/versions.tf | 2 +- triggers/cloudwatch_event_trigger/README.md | 4 ++-- triggers/cloudwatch_event_trigger/versions.tf | 2 +- triggers/cloudwatch_logs/README.md | 4 ++-- triggers/cloudwatch_logs/versions.tf | 2 +- triggers/cognito_idp/README.md | 4 ++-- triggers/cognito_idp/versions.tf | 2 +- triggers/sqs/README.md | 4 ++-- triggers/sqs/versions.tf | 2 +- triggers/step_function/README.md | 4 ++-- triggers/step_function/versions.tf | 2 +- versions.tf | 2 +- 16 files changed, 24 insertions(+), 24 deletions(-) diff --git a/README.md b/README.md index 62407be..d938126 100644 --- a/README.md +++ b/README.md @@ -18,13 +18,13 @@ MIT Licensed. See LICENSE for full details. | Name | Version | |------|---------| | terraform | >= 0.12 | -| aws | ~> 2.0 | +| aws | ~> 3.0 | ## Providers | Name | Version | |------|---------| -| aws | ~> 2.0 | +| aws | ~> 3.0 | ## Inputs diff --git a/triggers/api_gateway/README.md b/triggers/api_gateway/README.md index ea279d7..7115849 100644 --- a/triggers/api_gateway/README.md +++ b/triggers/api_gateway/README.md @@ -8,13 +8,13 @@ Allow this lambda to be triggered by API Gateways | Name | Version | |------|---------| | terraform | >= 0.12 | -| aws | ~> 2.0 | +| aws | ~> 3.0 | ## Providers | Name | Version | |------|---------| -| aws | ~> 2.0 | +| aws | ~> 3.0 | ## Inputs diff --git a/triggers/api_gateway/versions.tf b/triggers/api_gateway/versions.tf index 9acedcb..58d8acb 100644 --- a/triggers/api_gateway/versions.tf +++ b/triggers/api_gateway/versions.tf @@ -2,6 +2,6 @@ terraform { required_version = ">= 0.12" required_providers { - aws = "~> 2.0" + aws = "~> 3.0" } } diff --git a/triggers/cloudwatch_event_schedule/README.md b/triggers/cloudwatch_event_schedule/README.md index 5cd1b04..4238065 100644 --- a/triggers/cloudwatch_event_schedule/README.md +++ b/triggers/cloudwatch_event_schedule/README.md @@ -8,13 +8,13 @@ Allow this lambda to be triggered by Cloudwatch Event Schedule | Name | Version | |------|---------| | terraform | >= 0.12 | -| aws | ~> 2.0 | +| aws | ~> 3.0 | ## Providers | Name | Version | |------|---------| -| aws | ~> 2.0 | +| aws | ~> 3.0 | ## Inputs diff --git a/triggers/cloudwatch_event_schedule/versions.tf b/triggers/cloudwatch_event_schedule/versions.tf index 9acedcb..58d8acb 100644 --- a/triggers/cloudwatch_event_schedule/versions.tf +++ b/triggers/cloudwatch_event_schedule/versions.tf @@ -2,6 +2,6 @@ terraform { required_version = ">= 0.12" required_providers { - aws = "~> 2.0" + aws = "~> 3.0" } } diff --git a/triggers/cloudwatch_event_trigger/README.md b/triggers/cloudwatch_event_trigger/README.md index 7f2a127..b66e698 100644 --- a/triggers/cloudwatch_event_trigger/README.md +++ b/triggers/cloudwatch_event_trigger/README.md @@ -8,13 +8,13 @@ Allow this lambda to be triggered by Cloudwatch Event Trigger | Name | Version | |------|---------| | terraform | >= 0.12 | -| aws | ~> 2.0 | +| aws | ~> 3.0 | ## Providers | Name | Version | |------|---------| -| aws | ~> 2.0 | +| aws | ~> 3.0 | ## Inputs diff --git a/triggers/cloudwatch_event_trigger/versions.tf b/triggers/cloudwatch_event_trigger/versions.tf index 9acedcb..58d8acb 100644 --- a/triggers/cloudwatch_event_trigger/versions.tf +++ b/triggers/cloudwatch_event_trigger/versions.tf @@ -2,6 +2,6 @@ terraform { required_version = ">= 0.12" required_providers { - aws = "~> 2.0" + aws = "~> 3.0" } } diff --git a/triggers/cloudwatch_logs/README.md b/triggers/cloudwatch_logs/README.md index 9d028fc..14c24c7 100644 --- a/triggers/cloudwatch_logs/README.md +++ b/triggers/cloudwatch_logs/README.md @@ -8,13 +8,13 @@ Allow this lambda to be triggered by Cloudwatch logs | Name | Version | |------|---------| | terraform | >= 0.12 | -| aws | ~> 2.0 | +| aws | ~> 3.0 | ## Providers | Name | Version | |------|---------| -| aws | ~> 2.0 | +| aws | ~> 3.0 | ## Inputs diff --git a/triggers/cloudwatch_logs/versions.tf b/triggers/cloudwatch_logs/versions.tf index 9acedcb..58d8acb 100644 --- a/triggers/cloudwatch_logs/versions.tf +++ b/triggers/cloudwatch_logs/versions.tf @@ -2,6 +2,6 @@ terraform { required_version = ">= 0.12" required_providers { - aws = "~> 2.0" + aws = "~> 3.0" } } diff --git a/triggers/cognito_idp/README.md b/triggers/cognito_idp/README.md index 4ea3627..8850f94 100644 --- a/triggers/cognito_idp/README.md +++ b/triggers/cognito_idp/README.md @@ -8,13 +8,13 @@ Allow this lambda to be triggered by Cognito IDP | Name | Version | |------|---------| | terraform | >= 0.12 | -| aws | ~> 2.0 | +| aws | ~> 3.0 | ## Providers | Name | Version | |------|---------| -| aws | ~> 2.0 | +| aws | ~> 3.0 | ## Inputs diff --git a/triggers/cognito_idp/versions.tf b/triggers/cognito_idp/versions.tf index 9acedcb..58d8acb 100644 --- a/triggers/cognito_idp/versions.tf +++ b/triggers/cognito_idp/versions.tf @@ -2,6 +2,6 @@ terraform { required_version = ">= 0.12" required_providers { - aws = "~> 2.0" + aws = "~> 3.0" } } diff --git a/triggers/sqs/README.md b/triggers/sqs/README.md index 93cf7d1..a2b54c8 100644 --- a/triggers/sqs/README.md +++ b/triggers/sqs/README.md @@ -8,13 +8,13 @@ Allow this lambda to be triggered by SQS and optionally subscribe to SNS topics | Name | Version | |------|---------| | terraform | >= 0.12 | -| aws | ~> 2.0 | +| aws | ~> 3.0 | ## Providers | Name | Version | |------|---------| -| aws | ~> 2.0 | +| aws | ~> 3.0 | ## Inputs diff --git a/triggers/sqs/versions.tf b/triggers/sqs/versions.tf index 9acedcb..58d8acb 100644 --- a/triggers/sqs/versions.tf +++ b/triggers/sqs/versions.tf @@ -2,6 +2,6 @@ terraform { required_version = ">= 0.12" required_providers { - aws = "~> 2.0" + aws = "~> 3.0" } } diff --git a/triggers/step_function/README.md b/triggers/step_function/README.md index e2348a6..ede15c2 100644 --- a/triggers/step_function/README.md +++ b/triggers/step_function/README.md @@ -8,13 +8,13 @@ Allow this lambda to be triggered by Step functions | Name | Version | |------|---------| | terraform | >= 0.12 | -| aws | ~> 2.0 | +| aws | ~> 3.0 | ## Providers | Name | Version | |------|---------| -| aws | ~> 2.0 | +| aws | ~> 3.0 | ## Inputs diff --git a/triggers/step_function/versions.tf b/triggers/step_function/versions.tf index 9acedcb..58d8acb 100644 --- a/triggers/step_function/versions.tf +++ b/triggers/step_function/versions.tf @@ -2,6 +2,6 @@ terraform { required_version = ">= 0.12" required_providers { - aws = "~> 2.0" + aws = "~> 3.0" } } diff --git a/versions.tf b/versions.tf index be6e685..f38861f 100644 --- a/versions.tf +++ b/versions.tf @@ -2,7 +2,7 @@ terraform { required_version = ">= 0.12" required_providers { - aws = "~> 2.0" + aws = "~> 3.0" } experiments = [variable_validation] }