From 6b235d17d57069bf0c7d4f6ea1aab64a28ab416a Mon Sep 17 00:00:00 2001 From: Bryant Biggs Date: Wed, 17 Apr 2024 08:01:18 -0400 Subject: [PATCH] fix: Add tags variable to public registry resource --- .pre-commit-config.yaml | 4 ++-- main.tf | 2 ++ wrappers/versions.tf | 9 ++++++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index edf4a8c..51a0fca 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/antonbabenko/pre-commit-terraform - rev: v1.88.4 + rev: v1.89.0 hooks: - id: terraform_fmt - id: terraform_wrapper_module_for_each @@ -25,7 +25,7 @@ repos: - '--args=--only=terraform_unused_required_providers' - id: terraform_validate - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.5.0 + rev: v4.6.0 hooks: - id: check-merge-conflict - id: end-of-file-fixer diff --git a/main.tf b/main.tf index 0d20327..1c86358 100644 --- a/main.tf +++ b/main.tf @@ -238,6 +238,8 @@ resource "aws_ecrpublic_repository" "this" { usage_text = try(catalog_data.value.usage_text, null) } } + + tags = var.tags } ################################################################################ diff --git a/wrappers/versions.tf b/wrappers/versions.tf index 51cad10..0b1e951 100644 --- a/wrappers/versions.tf +++ b/wrappers/versions.tf @@ -1,3 +1,10 @@ terraform { - required_version = ">= 0.13.1" + required_version = ">= 1.0" + + required_providers { + aws = { + source = "hashicorp/aws" + version = ">= 5.37" + } + } }