Skip to content

Instantly share code, notes, and snippets.

@stack72
Created July 11, 2017 12:15
Show Gist options
  • Select an option

  • Save stack72/e9de3ea80d225f9fa197880faf4b1559 to your computer and use it in GitHub Desktop.

Select an option

Save stack72/e9de3ea80d225f9fa197880faf4b1559 to your computer and use it in GitHub Desktop.
# aws\_ecr\_repository
The ECR Repository data source allows the ARN, Repository URI and Registry ID to be retrieved for an ECR repository.
## Example Usage
```hcl
data "aws_ecr_repository" "service" {
name = "ecr-repository"
}
```
## Argument Reference
The following arguments are supported:
* `name` - (Required) The name of the ECR Repository.
## Attributes Reference
The following attributes are exported:
* `arn` - Full ARN of the repository.
* `registry_id` - The registry ID where the repository was created.
* `repository_url` - The URL of the repository (in the form `aws_account_id.dkr.ecr.region.amazonaws.com/repositoryName`).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment