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/ ) .
3
4
4
5
5
6
## Usage
@@ -14,14 +15,15 @@ In addition, an `EC2 Instance Profile` will be created from the new IAM Role, wh
14
15
15
16
16
17
Include this repository as a module in your existing terraform code:
17
- ```
18
+
19
+ ``` hcl
18
20
# IAM Role is provided. It will be granted ECR permissions
19
21
data "aws_iam_role" "ecr" {
20
22
name = "ecr"
21
23
}
22
24
23
25
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 "
25
27
name = "${var.name}"
26
28
namespace = "${var.namespace}"
27
29
stage = "${var.stage}"
@@ -33,17 +35,22 @@ module "ecr" {
33
35
## Variables
34
36
35
37
| 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) |
41
43
42
44
43
45
## Outputs
44
46
45
- | Name | Decription |
47
+ | Name | Description |
46
48
| :-------------------:| :---------------------------------------------------------------------------------------:|
47
49
| ` registry_id ` | ID of the created AWS Container Registry |
48
50
| ` registry_url ` | URL to the created AWS Container Registry |
49
51
| ` 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.
0 commit comments