aws::ecr-repository

Create ECR repository.

Example

aws::ecr-repository example-repo
    repository-name: "example-repo"
    lifecycle-policy: 'lifecycle-policy.json'

    repository-policy
        policy: 'repository-policy.json'
    end

    image-scanning-configuration
        scan-on-push: false
    end
end

Attributes

Attribute Description
encryption-configuration subresource

The encryption configuration for the repository.

encryption-type
The encryption type to use. Valid values are AES256 or KMS. (Required)
kms-key
The KMS key to use for encryption.
image-scanning-configuration subresource

The image scanning configuration for the repository.

scan-on-push
When set to true, images are scanned after being pushed to a repository. (Required)
image-tag-mutability The tag mutability setting for the repository. Defaults to MUTABLE. Valid values are MUTABLE or IMMUTABLE.
repository-name The name of the repository. (Required)
lifecycle-policy The lifecycle policy for the repository.
repository-policy subresource

The policy for the repository.

policy
The JSON repository policy to apply to the repository. (Required)
force
When set to true, the policy is forcefully changed.
tags map The list of tags for the repository.

Outputs

Attribute Description
arn The ARN of the repository.
uri The URI of the repository.