-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Added public ecr and updated variables
- Loading branch information
1 parent
f14897d
commit 51b7e0b
Showing
4 changed files
with
227 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,34 @@ | ||
provider "aws" { | ||
region = "eu-west-2" | ||
region = "us-east-1" | ||
} | ||
|
||
module "private_ecr" { | ||
source = "./../" | ||
|
||
enable_private_ecr = true | ||
name = "private-ecr" | ||
environment = "test" | ||
label_order = ["environment", "name"] | ||
scan_on_push = true | ||
max_image_count = 7 | ||
image_tag_mutability = "IMMUTABLE" | ||
encryption_type = "KMS" | ||
} | ||
|
||
module "ecr" { | ||
module "public_ecr" { | ||
source = "./../" | ||
|
||
name = "ecr" | ||
environment = "test" | ||
label_order = ["environment", "name"] | ||
scan_on_push = true | ||
max_image_count = 7 | ||
image_tag_mutability = "IMMUTABLE" | ||
image_scanning_configuration = {} | ||
enable_public_ecr = true | ||
name = "public-ecr" | ||
environment = "test" | ||
label_order = ["environment", "name"] | ||
|
||
} | ||
max_untagged_image_count = 1 | ||
max_image_count = 7 | ||
|
||
public_repository_catalog_data = { | ||
description = "Docker container for some things" | ||
operating_systems = ["Linux"] | ||
architectures = ["x86"] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,45 @@ | ||
output "arn" { | ||
value = module.ecr.*.arn | ||
######################################################################## | ||
# Private ECR | ||
######################################################################## | ||
output "private_ecr_arn" { | ||
value = module.private_ecr.*.arn | ||
description = "Registry name." | ||
} | ||
|
||
output "tags" { | ||
value = module.ecr.tags | ||
output "private_ecr_tags" { | ||
value = module.private_ecr.tags | ||
description = "A mapping of tags to assign to the alb." | ||
} | ||
|
||
output "registry_id" { | ||
value = module.ecr.registry_id | ||
output "private_ecr_registry_id" { | ||
value = module.private_ecr.registry_id | ||
description = "The registry ID where the repository was created." | ||
} | ||
|
||
output "registry_url" { | ||
value = module.ecr.registry_url | ||
output "private_ecr_registry_url" { | ||
value = module.private_ecr.registry_url | ||
description = "The URL of the repository (in the form." | ||
} | ||
|
||
######################################################################## | ||
# Public ECR | ||
######################################################################## | ||
output "public_ecr_arn" { | ||
value = module.public_ecr.*.arn | ||
description = "Registry name." | ||
} | ||
|
||
output "public_ecr_tags" { | ||
value = module.public_ecr.tags | ||
description = "A mapping of tags to assign to the alb." | ||
} | ||
|
||
output "public_ecr_registry_id" { | ||
value = module.public_ecr.registry_id | ||
description = "The registry ID where the repository was created." | ||
} | ||
|
||
output "public_ecr_registry_url" { | ||
value = module.public_ecr.registry_url | ||
description = "The URL of the repository (in the form." | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.