Skip to content

Commit

Permalink
Rename repos, fix README.md (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
aknysh authored Sep 22, 2017
1 parent e11e207 commit eca99f4
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 11 deletions.
27 changes: 17 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# tf_ecr
This module creates an AWS ECR Docker Container registry.
# terraform-aws-ecr

Terraform module to provision an [`AWS ECR Docker Container registry`](https://aws.amazon.com/ecr/).


## Usage
Expand All @@ -14,14 +15,15 @@ In addition, an `EC2 Instance Profile` will be created from the new IAM Role, wh


Include this repository as a module in your existing terraform code:
```

```hcl
# IAM Role is provided. It will be granted ECR permissions
data "aws_iam_role" "ecr" {
name = "ecr"
}
module "ecr" {
source = "git::https://github.com/cloudposse/tf_ecr.git?ref=tags/0.1.0"
source = "git::https://github.com/cloudposse/terraform-aws-ecr.git?ref=master"
name = "${var.name}"
namespace = "${var.namespace}"
stage = "${var.stage}"
Expand All @@ -33,17 +35,22 @@ module "ecr" {
## Variables

| Name | Default | Description | Required|
|:----------------------------:|:--------------:|:--------------------------------------------------------------------------------------------------------:|:-------:|
| `namespace` | `global` | Namespace (e.g. `cp` or `cloudposse`) - required for `tf_label` module | Yes |
| `stage` | `default` | Stage (e.g. `prod`, `dev`, `staging` - required for `tf_label` module | Yes |
| `name` | `admin` | The Name of the application or solution (e.g. `bastion` or `portal`) - required for `tf_label` module | Yes |
| `roles` | [] | List of IAM role names that will be granted permissions to use the container registry | No (optional) |
|:----------------------------:|:--------------:|:--------------------------------------------------------------------------------------------------------:|:-------------:|
| `namespace` | `global` | Namespace (e.g. `cp` or `cloudposse`) - required for `tf_label` module | Yes |
| `stage` | `default` | Stage (e.g. `prod`, `dev`, `staging` - required for `tf_label` module | Yes |
| `name` | `admin` | The Name of the application or solution (e.g. `bastion` or `portal`) - required for `tf_label` module | Yes |
| `roles` | `[]` | List of IAM role names that will be granted permissions to use the container registry | No (optional) |


## Outputs

| Name | Decription |
| Name | Description |
|:-------------------:|:---------------------------------------------------------------------------------------:|
| `registry_id` | ID of the created AWS Container Registry |
| `registry_url` | URL to the created AWS Container Registry |
| `role_name` | (Optional) The name of the newly created IAM role that has access to the registry |


## License

Apache 2 License. See [`LICENSE`](LICENSE) for full details.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ data "aws_iam_policy_document" "resource" {
}

module "label" {
source = "git::https://github.com/cloudposse/tf_label.git?ref=tags/0.2.0"
source = "git::https://github.com/cloudposse/terraform-null-label.git?ref=tags/0.2.1"
namespace = "${var.namespace}"
stage = "${var.stage}"
name = "${var.name}"
Expand Down

0 comments on commit eca99f4

Please sign in to comment.