github.com/nathanielks/terraform@v0.6.1-0.20170509030759-13e1a62319dc/website/source/docs/providers/aws/r/ecr_repository.html.markdown (about)

     1  ---
     2  layout: "aws"
     3  page_title: "AWS: aws_ecr_repository"
     4  sidebar_current: "docs-aws-resource-ecr-repository"
     5  description: |-
     6    Provides an EC2 Container Registry Repository.
     7  ---
     8  
     9  # aws\_ecr\_repository
    10  
    11  Provides an EC2 Container Registry Repository.
    12  
    13  ~> **NOTE on ECR Availability**: The EC2 Container Registry is not yet rolled out
    14  in all regions - available regions are listed
    15  [the AWS Docs](https://docs.aws.amazon.com/general/latest/gr/rande.html#ecr_region).
    16  
    17  ## Example Usage
    18  
    19  ```hcl
    20  resource "aws_ecr_repository" "foo" {
    21    name = "bar"
    22  }
    23  ```
    24  
    25  ## Argument Reference
    26  
    27  The following arguments are supported:
    28  
    29  * `name` - (Required) Name of the repository.
    30  
    31  ## Attributes Reference
    32  
    33  The following attributes are exported:
    34  
    35  * `arn` - Full ARN of the repository.
    36  * `name` - The name of the repository.
    37  * `registry_id` - The registry ID where the repository was created.
    38  * `repository_url` - The URL of the repository (in the form `aws_account_id.dkr.ecr.region.amazonaws.com/repositoryName`
    39  
    40  
    41  ## Import
    42  
    43  ECR Repositories can be imported using the `name`, e.g.
    44  
    45  ```
    46  $ terraform import aws_ecr_repository.service test-service
    47  ```