We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6efd83 commit 91be8c2Copy full SHA for 91be8c2
tf-module/ds_img_to_ecr/ecr_pt.tf
@@ -1,6 +1,11 @@
1
+resource "random_string" "suffix" {
2
+ length = 6
3
+ special = false
4
+}
5
+
6
# https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/secretsmanager_secret
7
resource "aws_secretsmanager_secret" "ds_upstream_image" {
- name = replace("ecr-pullthroughcache/${var.prefix}-ds_upstream_image", "_", "-")
8
+ name = replace("ecr-pullthroughcache/${var.prefix}-ds_upstream_image-${random_string.suffix.result}", "_", "-")
9
}
10
11
# https://registry.terraform.io/providers/-/aws/latest/docs/resources/ecr_pull_through_cache_rule
0 commit comments