From 9688e5ad0ee66e0cdd5a04335f76b4b7ef0379e4 Mon Sep 17 00:00:00 2001 From: nitrocode Date: Wed, 18 Aug 2021 00:20:27 -0400 Subject: [PATCH] Upgrade dynamodb label to `0.24.1` (#93) * Upgrade dynamodb label to 0.24.1 * Auto Format * Update main.tf Co-authored-by: Nuru * Update test Co-authored-by: cloudpossebot <11232728+cloudpossebot@users.noreply.github.com> Co-authored-by: Nuru --- README.md | 2 +- docs/terraform.md | 2 +- main.tf | 4 ++-- test/src/examples_complete_test.go | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 74a973d..b767031 100644 --- a/README.md +++ b/README.md @@ -264,7 +264,7 @@ Available targets: | Name | Source | Version | |------|--------|---------| -| [dynamodb\_table\_label](#module\_dynamodb\_table\_label) | cloudposse/label/null | 0.22.0 | +| [dynamodb\_table\_label](#module\_dynamodb\_table\_label) | cloudposse/label/null | 0.24.1 | | [this](#module\_this) | cloudposse/label/null | 0.24.1 | ## Resources diff --git a/docs/terraform.md b/docs/terraform.md index 6202b6b..fac541f 100644 --- a/docs/terraform.md +++ b/docs/terraform.md @@ -19,7 +19,7 @@ | Name | Source | Version | |------|--------|---------| -| [dynamodb\_table\_label](#module\_dynamodb\_table\_label) | cloudposse/label/null | 0.22.0 | +| [dynamodb\_table\_label](#module\_dynamodb\_table\_label) | cloudposse/label/null | 0.24.1 | | [this](#module\_this) | cloudposse/label/null | 0.24.1 | ## Resources diff --git a/main.tf b/main.tf index a180040..ac6477c 100644 --- a/main.tf +++ b/main.tf @@ -193,8 +193,8 @@ resource "aws_s3_bucket_public_access_block" "default" { module "dynamodb_table_label" { source = "cloudposse/label/null" - version = "0.22.0" - attributes = compact(concat(var.attributes, ["lock"])) + version = "0.24.1" + attributes = ["lock"] context = module.this.context enabled = local.dynamodb_enabled } diff --git a/test/src/examples_complete_test.go b/test/src/examples_complete_test.go index 6ea74a2..ade90c8 100644 --- a/test/src/examples_complete_test.go +++ b/test/src/examples_complete_test.go @@ -44,7 +44,7 @@ func TestExamplesComplete(t *testing.T) { // Run `terraform output` to get the value of an output variable dynamodbTableName := terraform.Output(t, terraformOptions, "dynamodb_table_name") - expectedDynamodbTableName := "eg-test-terraform-tfstate-backend-lock-" + randId + expectedDynamodbTableName := "eg-test-terraform-tfstate-backend-" + randId + "-lock" // Verify we're getting back the outputs we expect assert.Equal(t, expectedDynamodbTableName, dynamodbTableName) }