Terraform resource: aws ecr pull through cache rule
(Redirected from Aws ecr pull through cache rule)
Jump to navigation
Jump to search
aws_ecr_pull_through_cache_rule
(tf.io)
upstream_registry_url = "registry-1.docker.io"
Official example[edit]
resource "aws_ecr_pull_through_cache_rule" "example" {
ecr_repository_prefix = "ecr-public"
upstream_registry_url = "public.ecr.aws"
credential_arn = "arn:aws:secretsmanager:us-east-1:123456789:secret:ecr-pullthroughcache/ecrpublic"
}
Other example with secret managed by TF
resource "aws_ecr_pull_through_cache_rule" "docker_hub" {
ecr_repository_prefix = "docker-hub"
upstream_registry_url = "registry-1.docker.io"
credential_arn = aws_secretsmanager_secret.docker_hub.arn
}
Related[edit]
See also[edit]
aws_ecr_pull_through_cache_rule, upstream_registry_url, credential_arn, arn:aws:secretsmanager- Terraform AWS ECR:
aws_ecr_repository, aws_ecr_repository_policy, aws_ecrpublic_repository, aws_ecrpublic_repository_policy, aws_ecr_registry_policy, aws_ecr_registry_scanning_configuration, aws_ecr_replication_configuration, aws_ecr_pull_through_cache_rule, aws_ecr_lifecycle_policy
Advertising: