Skip to content

Commit 27f4867

Browse files
fix: Add tags variable to public registry resource (#40)
* fix: Add tags variable to public registry resource * Update .pre-commit-config.yaml --------- Co-authored-by: Anton Babenko <[email protected]>
1 parent fdbadc3 commit 27f4867

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/antonbabenko/pre-commit-terraform
3-
rev: v1.88.4
3+
rev: v1.89.0
44
hooks:
55
- id: terraform_fmt
66
- id: terraform_wrapper_module_for_each
@@ -22,10 +22,9 @@ repos:
2222
- '--args=--only=terraform_required_providers'
2323
- '--args=--only=terraform_standard_module_structure'
2424
- '--args=--only=terraform_workspace_remote'
25-
- '--args=--only=terraform_unused_required_providers'
2625
- id: terraform_validate
2726
- repo: https://github.com/pre-commit/pre-commit-hooks
28-
rev: v4.5.0
27+
rev: v4.6.0
2928
hooks:
3029
- id: check-merge-conflict
3130
- id: end-of-file-fixer

main.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,8 @@ resource "aws_ecrpublic_repository" "this" {
238238
usage_text = try(catalog_data.value.usage_text, null)
239239
}
240240
}
241+
242+
tags = var.tags
241243
}
242244

243245
################################################################################

wrappers/versions.tf

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
11
terraform {
2-
required_version = ">= 0.13.1"
2+
required_version = ">= 1.0"
3+
4+
required_providers {
5+
aws = {
6+
source = "hashicorp/aws"
7+
version = ">= 5.37"
8+
}
9+
}
310
}

0 commit comments

Comments
 (0)