provider/aws: mention us-east-1 in ECR docs and tests

ECR is only available in us-east-1 for now.

Also added missing sidebar links for ECR resources.

/cc @nextrevision
This commit is contained in:
Paul Hinze 2015-12-22 15:59:17 -06:00
parent 4d74bc789e
commit 0d895ffa96
5 changed files with 32 additions and 2 deletions

View File

@ -62,6 +62,11 @@ func testAccCheckAWSEcrRepositoryPolicyExists(name string) resource.TestCheckFun
}
var testAccAWSEcrRepositoryPolicy = `
# ECR initially only available in us-east-1
# https://aws.amazon.com/blogs/aws/ec2-container-registry-now-generally-available/
provider "aws" {
region = "us-east-1"
}
resource "aws_ecr_repository" "foo" {
name = "bar"
}

View File

@ -71,6 +71,11 @@ func testAccCheckAWSEcrRepositoryExists(name string) resource.TestCheckFunc {
}
var testAccAWSEcrRepository = `
# ECR initially only available in us-east-1
# https://aws.amazon.com/blogs/aws/ec2-container-registry-now-generally-available/
provider "aws" {
region = "us-east-1"
}
resource "aws_ecr_repository" "default" {
name = "foo-repository-terraform"
}

View File

@ -3,12 +3,18 @@ layout: "aws"
page_title: "AWS: aws_ecr_repository"
sidebar_current: "docs-aws-resource-ecr-repository"
description: |-
Provides an ECR Repository.
Provides an EC2 Container Registry Repository.
---
# aws\_ecr\_repository
Provides an ECR repository.
Provides an EC2 Container Registry Repository.
~> **NOTE on ECR Availability**: The EC2 Container Registry has an [initial
launch region of
`us-east-1`](https://aws.amazon.com/blogs/aws/ec2-container-registry-now-generally-available/).
As more regions become available, they will be listed [in the AWS
Docs](https://docs.aws.amazon.com/general/latest/gr/rande.html#ecr_region)
## Example Usage

View File

@ -12,6 +12,12 @@ Provides an ECR repository policy.
Note that currently only one policy may be applied to a repository.
~> **NOTE on ECR Availability**: The EC2 Container Registry has an [initial
launch region of
`us-east-1`](https://aws.amazon.com/blogs/aws/ec2-container-registry-now-generally-available/).
As more regions become available, they will be listed [in the AWS
Docs](https://docs.aws.amazon.com/general/latest/gr/rande.html#ecr_region)
## Example Usage
```

View File

@ -193,6 +193,14 @@
<a href="/docs/providers/aws/r/ecs_task_definition.html">aws_ecs_task_definition</a>
</li>
<li<%= sidebar_current("docs-aws-resource-ecr-repository") %>>
<a href="/docs/providers/aws/r/ecr_repository.html">aws_ecr_repository</a>
</li>
<li<%= sidebar_current("docs-aws-resource-ecr-repository-policy") %>>
<a href="/docs/providers/aws/r/ecr_repository_policy.html">aws_ecr_repository_policy</a>
</li>
</ul>
</li>