generated from clowdhaus/terraform-aws-module-template
-
-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Fix example after another round of validation
- Loading branch information
1 parent
108c20c
commit 795b8b0
Showing
4 changed files
with
40 additions
and
16 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
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
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
output "iam_role_name" { | ||
description = "IAM role name" | ||
value = module.dockerhub_pull_through_cache_repository_template.iam_role_name | ||
} | ||
|
||
output "iam_role_arn" { | ||
description = "IAM role ARN" | ||
value = module.dockerhub_pull_through_cache_repository_template.iam_role_arn | ||
} | ||
|
||
output "iam_role_unique_id" { | ||
description = "Stable and unique string identifying the IAM role" | ||
value = module.public_ecr_pull_through_cache_repository_template.iam_role_unique_id | ||
} | ||
|
||
output "example_docker_pull_commands" { | ||
description = "Example docker pull commands to test and validate the example" | ||
value = <<-EOT | ||
# Ensure your local CLI is authenticated with ECR | ||
aws ecr get-login-password --region ${local.region} | docker login --username AWS --password-stdin ${local.account_id}.dkr.ecr.${local.region}.amazonaws.com | ||
# Dockerhub pull through cache and repo creation | ||
docker pull ${local.account_id}.dkr.ecr.${local.region}.amazonaws.com/docker-hub/library/nginx:latest | ||
# Public ECR pull through cache and repo creation | ||
docker pull ${local.account_id}.dkr.ecr.${local.region}.amazonaws.com/ecr-public/docker/library/nginx:latest | ||
EOT | ||
} |
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