ecr-iam-policy

dod-iac/ecr-iam-policy/aws

Terraform Module HCL AWS

IAM Policy that allows use of AWS ECR

Install
module "ecr-iam-policy" {
source = "dod-iac/ecr-iam-policy/aws"
version = "1.0.0"
}
plain text: /constructs/tfmod-dod-iac-ecr-iam-policy-aws/install.txt
⭐ Source on GitHub 📦 Registry page
README

Usage Creates an IAM policy that allows downloading of images from an AWS ECR repo. ``hcl module "ecr_iam_policy" { source = "dod-iac/ecr-iam-policy/aws" name = format("%s-ecr-user-%s", var.application, var.environment) repos = [aws_ecr_repository.main.arn] } ` Creates an IAM policy that allows downloading and uploading of images to an AWS ECR repo. `hcl module "ecr_iam_policy" { source = "dod-iac/ecr-iam-policy/aws" allow_write = true name = format("%s-ecr-user-%s", var.application, var.environment) repos = [aws_ecr_repository.main.arn] } ` Terraform Version Terraform 0.13. Pin module version to ~> 1.0.0 . Submit pull-requests to master branch. Terraform 0.11 and 0.12 are not supported. License This project constitutes a work of the United States Government and is not subject to domestic

Inputs (4)
NameTypeDescriptionDefault
namestringThe name of the AWS IAM policy. required
reposlist(string)The ARNs of the AWS ECR repos. Use ["*"] to allow all repos. required
allow_writeboolAllow uploading of new images.false
descriptionstringThe description of the AWS IAM policy. Defaults to "The policy for [NAME]."""
Outputs (3)
arn — The Amazon Resource Name (ARN) of the AWS IAM policy.
id — The id of the AWS IAM policy.
name — The name of the AWS IAM policy.
Resources (1)
aws_iam_policy
Topics & Tags
terraformawsiamecr
Details
FrameworkTerraform Module
LanguageHCL
Version1.0.0
Cloud AWS
★ Stars2
Forks2
Total downloads5.9k
Inputs4
Outputs3
Resources1
LicenseMIT
Namespacedod-iac
Updated