diff --git a/modules/ecr-registry/outputs.tf b/modules/ecr-registry/outputs.tf index 52f88fb..828ba87 100644 --- a/modules/ecr-registry/outputs.tf +++ b/modules/ecr-registry/outputs.tf @@ -5,7 +5,7 @@ output "name" { output "id" { description = "The ID of the registry." - value = try(aws_ecr_replication_configuration.this[*].registry_id[0], local.metadata.name) + value = aws_ecr_registry_scanning_configuration.this.registry_id } output "policy" {