Skip to content

Commit eca99f4

Browse files
authored
Rename repos, fix README.md (#3)
1 parent e11e207 commit eca99f4

File tree

2 files changed

+18
-11
lines changed

2 files changed

+18
-11
lines changed

README.md

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
# tf_ecr
2-
This module creates an AWS ECR Docker Container registry.
1+
# terraform-aws-ecr
2+
3+
Terraform module to provision an [`AWS ECR Docker Container registry`](https://aws.amazon.com/ecr/).
34

45

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

1516

1617
Include this repository as a module in your existing terraform code:
17-
```
18+
19+
```hcl
1820
# IAM Role is provided. It will be granted ECR permissions
1921
data "aws_iam_role" "ecr" {
2022
name = "ecr"
2123
}
2224
2325
module "ecr" {
24-
source = "git::https://github.com/cloudposse/tf_ecr.git?ref=tags/0.1.0"
26+
source = "git::https://github.com/cloudposse/terraform-aws-ecr.git?ref=master"
2527
name = "${var.name}"
2628
namespace = "${var.namespace}"
2729
stage = "${var.stage}"
@@ -33,17 +35,22 @@ module "ecr" {
3335
## Variables
3436

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

4244

4345
## Outputs
4446

45-
| Name | Decription |
47+
| Name | Description |
4648
|:-------------------:|:---------------------------------------------------------------------------------------:|
4749
| `registry_id` | ID of the created AWS Container Registry |
4850
| `registry_url` | URL to the created AWS Container Registry |
4951
| `role_name` | (Optional) The name of the newly created IAM role that has access to the registry |
52+
53+
54+
## License
55+
56+
Apache 2 License. See [`LICENSE`](LICENSE) for full details.

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ data "aws_iam_policy_document" "resource" {
8989
}
9090

9191
module "label" {
92-
source = "git::https://github.com/cloudposse/tf_label.git?ref=tags/0.2.0"
92+
source = "git::https://github.com/cloudposse/terraform-null-label.git?ref=tags/0.2.1"
9393
namespace = "${var.namespace}"
9494
stage = "${var.stage}"
9595
name = "${var.name}"

0 commit comments

Comments
 (0)