From 5ee1742b17869406f5857d74ea7b016adb21818b Mon Sep 17 00:00:00 2001 From: Anton Babenko Date: Tue, 23 Feb 2021 09:31:38 +0100 Subject: [PATCH 1/2] chore: Run pre-commit terraform_docs hook --- README.md | 14 +++++++------- examples/complete/README.md | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 225996c..bf2e0f1 100644 --- a/README.md +++ b/README.md @@ -145,13 +145,13 @@ No Modules. | Name | |------| -| [aws_iam_policy_attachment](https://registry.terraform.io/providers/hashicorp/aws/3.27/docs/resources/iam_policy_attachment) | -| [aws_iam_policy_document](https://registry.terraform.io/providers/hashicorp/aws/3.27/docs/data-sources/iam_policy_document) | -| [aws_iam_policy](https://registry.terraform.io/providers/hashicorp/aws/3.27/docs/resources/iam_policy) | -| [aws_iam_role_policy_attachment](https://registry.terraform.io/providers/hashicorp/aws/3.27/docs/resources/iam_role_policy_attachment) | -| [aws_iam_role](https://registry.terraform.io/providers/hashicorp/aws/3.27/docs/resources/iam_role) | -| [aws_region](https://registry.terraform.io/providers/hashicorp/aws/3.27/docs/data-sources/region) | -| [aws_sfn_state_machine](https://registry.terraform.io/providers/hashicorp/aws/3.27/docs/resources/sfn_state_machine) | +| [aws_iam_policy](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_policy) | +| [aws_iam_policy_attachment](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_policy_attachment) | +| [aws_iam_policy_document](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | +| [aws_iam_role](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role) | +| [aws_iam_role_policy_attachment](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role_policy_attachment) | +| [aws_region](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/region) | +| [aws_sfn_state_machine](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/sfn_state_machine) | ## Inputs diff --git a/examples/complete/README.md b/examples/complete/README.md index 20ac10f..2e2a2ff 100644 --- a/examples/complete/README.md +++ b/examples/complete/README.md @@ -44,8 +44,8 @@ Note that this example may create resources which cost money. Run `terraform des | Name | |------| -| [aws_sqs_queue](https://registry.terraform.io/providers/hashicorp/aws/3.27/docs/resources/sqs_queue) | -| [random_pet](https://registry.terraform.io/providers/hashicorp/random/2/docs/resources/pet) | +| [aws_sqs_queue](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/sqs_queue) | +| [random_pet](https://registry.terraform.io/providers/hashicorp/random/latest/docs/resources/pet) | ## Inputs From 9702d714949c415a294d610d55bc99e657e041c0 Mon Sep 17 00:00:00 2001 From: Anton Babenko Date: Tue, 23 Feb 2021 09:33:22 +0100 Subject: [PATCH 2/2] chore: Run pre-commit terraform_fmt hook --- main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.tf b/main.tf index f00389d..404415a 100644 --- a/main.tf +++ b/main.tf @@ -1,5 +1,5 @@ locals { - create_role = var.create && var.create_role && ! var.use_existing_role + create_role = var.create && var.create_role && !var.use_existing_role aws_region = local.create_role && var.aws_region_assume_role == "" ? data.aws_region.current[0].name : var.aws_region_assume_role role_name = local.create_role ? coalesce(var.role_name, var.name) : null