mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-03-13 01:00:50 -04:00
1.1 KiB
1.1 KiB
layout, page_title, sidebar_current, description
| layout | page_title | sidebar_current | description |
|---|---|---|---|
| aws | AWS: aws_ecr_repository | docs-aws-resource-ecr-repository | Provides an EC2 Container Registry Repository. |
aws_ecr_repository
Provides an EC2 Container Registry Repository.
~> NOTE on ECR Availability: The EC2 Container Registry is not yet rolled out in all regions - available regions are listed the AWS Docs.
Example Usage
resource "aws_ecr_repository" "foo" {
name = "bar"
}
Argument Reference
The following arguments are supported:
name- (Required) Name of the repository.
Attributes Reference
The following attributes are exported:
arn- Full ARN of the repository.name- The name of the repository.registry_id- The registry ID where the repository was created.repository_url- The URL of the repository (in the formaws_account_id.dkr.ecr.region.amazonaws.com/repositoryName
Import
ECR Repositories can be imported using the name, e.g.
$ terraform import aws_ecr_repository.service test-service