diff --git a/README.md b/README.md
index 095a339..1bddb42 100644
--- a/README.md
+++ b/README.md
@@ -1,24 +1,20 @@
-
-[![README Header][readme_header_img]][readme_header_link]
-
-[![Cloud Posse][logo]](https://cpco.io/homepage)
-
-# terraform-aws-ecr [![Latest Release](https://img.shields.io/github/release/cloudposse/terraform-aws-ecr.svg)](https://github.com/cloudposse/terraform-aws-ecr/releases/latest) [![Slack Community](https://slack.cloudposse.com/badge.svg)](https://slack.cloudposse.com)
-
+-->
Terraform module to provision an [`AWS ECR Docker Container registry`](https://aws.amazon.com/ecr/).
---
-This project is part of our comprehensive ["SweetOps"](https://cpco.io/sweetops) approach towards DevOps.
+This project is part of our comprehensive ["SweetOps"](https://cpco.io/sweetops) approach towards DevOps.
[][share_email]
[][share_googleplus]
[][share_facebook]
@@ -71,7 +51,7 @@ It's 100% Open Source and licensed under the [APACHE2](LICENSE).
-We literally have [*hundreds of terraform modules*][terraform_modules] that are Open Source and well-maintained. Check them out!
+We literally have [*hundreds of terraform modules*][terraform_modules] that are Open Source and well-maintained. Check them out!
@@ -127,8 +107,9 @@ module "ecr" {
+
## Makefile Targets
-```
+```text
Available targets:
help Help screen
@@ -137,6 +118,7 @@ Available targets:
lint Lint terraform code
```
+
## Requirements
| Name | Version |
@@ -160,6 +142,7 @@ Available targets:
| delimiter | Delimiter to be used between `name`, `namespace`, `stage`, etc. | `string` | `"-"` | no |
| enable\_lifecycle\_policy | Set to false to prevent the module from adding any lifecycle policies to any repositories | `bool` | `true` | no |
| enabled | Set to false to prevent the module from creating any resources | `bool` | `true` | no |
+| environment | Environment, e.g. 'prod', 'staging', 'dev', 'pre-prod', 'UAT' | `string` | `""` | no |
| image\_names | List of Docker local image names, used as repository names for AWS ECR | `list(string)` | `[]` | no |
| image\_tag\_mutability | The tag mutability setting for the repository. Must be one of: `MUTABLE` or `IMMUTABLE` | `string` | `"MUTABLE"` | no |
| max\_image\_count | How many Docker Image versions AWS ECR will store | `number` | `500` | no |
@@ -188,9 +171,9 @@ Available targets:
-## Share the Love
+## Share the Love
-Like this project? Please give it a ★ on [our GitHub](https://github.com/cloudposse/terraform-aws-ecr)! (it helps us **a lot**)
+Like this project? Please give it a ★ on [our GitHub](https://github.com/cloudposse/terraform-aws-ecr)! (it helps us **a lot**)
Are you using this project or any of our other projects? Consider [leaving a testimonial][testimonial]. =)
@@ -206,7 +189,7 @@ Check out these related projects.
## Help
-**Got a question?** We got answers.
+**Got a question?** We got answers.
File a GitHub [issue](https://github.com/cloudposse/terraform-aws-ecr/issues), send us an [email][email] or join our [Slack Community][slack].
@@ -215,7 +198,7 @@ File a GitHub [issue](https://github.com/cloudposse/terraform-aws-ecr/issues), s
## DevOps Accelerator for Startups
-We are a [**DevOps Accelerator**][commercial_support]. We'll help you build your cloud infrastructure from the ground up so you can own it. Then we'll show you how to operate it and stick around for as long as you need us.
+We are a [**DevOps Accelerator**][commercial_support]. We'll help you build your cloud infrastructure from the ground up so you can own it. Then we'll show you how to operate it and stick around for as long as you need us.
[![Learn More](https://img.shields.io/badge/learn%20more-success.svg?style=for-the-badge)][commercial_support]
@@ -244,11 +227,11 @@ Participate in our [Discourse Forums][discourse]. Here you'll find answers to co
## Newsletter
-Sign up for [our newsletter][newsletter] that covers everything on our technology radar. Receive updates on what we're up to on GitHub as well as awesome new projects we discover.
+Sign up for [our newsletter][newsletter] that covers everything on our technology radar. Receive updates on what we're up to on GitHub as well as awesome new projects we discover.
## Office Hours
-[Join us every Wednesday via Zoom][office_hours] for our weekly "Lunch & Learn" sessions. It's **FREE** for everyone!
+[Join us every Wednesday via Zoom][office_hours] for our weekly "Lunch & Learn" sessions. It's **FREE** for everyone!
[![zoom](https://img.cloudposse.com/fit-in/200x200/https://cloudposse.com/wp-content/uploads/2019/08/Powered-by-Zoom.png")][office_hours]
@@ -279,9 +262,9 @@ Copyright © 2017-2020 [Cloud Posse, LLC](https://cpco.io/copyright)
-## License
+## License
-[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
+[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
See [LICENSE](LICENSE) for full details.
@@ -322,7 +305,7 @@ This project is maintained and funded by [Cloud Posse, LLC][website]. Like it? P
We're a [DevOps Professional Services][hire] company based in Los Angeles, CA. We ❤️ [Open Source Software][we_love_open_source].
-We offer [paid support][commercial_support] on all of our projects.
+We offer [paid support][commercial_support] on all of our projects.
Check out [our other projects][github], [follow us on twitter][twitter], [apply for a job][jobs], or [hire us][hire] to help with your cloud strategy and implementation.
diff --git a/docs/targets.md b/docs/targets.md
index 3d4be2a..3dce8b3 100644
--- a/docs/targets.md
+++ b/docs/targets.md
@@ -1,5 +1,6 @@
+
## Makefile Targets
-```
+```text
Available targets:
help Help screen
@@ -8,3 +9,4 @@ Available targets:
lint Lint terraform code
```
+
diff --git a/docs/terraform.md b/docs/terraform.md
index eb9c30a..eaa3373 100644
--- a/docs/terraform.md
+++ b/docs/terraform.md
@@ -21,6 +21,7 @@
| delimiter | Delimiter to be used between `name`, `namespace`, `stage`, etc. | `string` | `"-"` | no |
| enable\_lifecycle\_policy | Set to false to prevent the module from adding any lifecycle policies to any repositories | `bool` | `true` | no |
| enabled | Set to false to prevent the module from creating any resources | `bool` | `true` | no |
+| environment | Environment, e.g. 'prod', 'staging', 'dev', 'pre-prod', 'UAT' | `string` | `""` | no |
| image\_names | List of Docker local image names, used as repository names for AWS ECR | `list(string)` | `[]` | no |
| image\_tag\_mutability | The tag mutability setting for the repository. Must be one of: `MUTABLE` or `IMMUTABLE` | `string` | `"MUTABLE"` | no |
| max\_image\_count | How many Docker Image versions AWS ECR will store | `number` | `500` | no |
diff --git a/main.tf b/main.tf
index 461403e..4964e98 100755
--- a/main.tf
+++ b/main.tf
@@ -9,6 +9,7 @@ module "label" {
enabled = var.enabled
namespace = var.namespace
stage = var.stage
+ environment = var.environment
name = var.name
delimiter = var.delimiter
attributes = var.attributes
diff --git a/variables.tf b/variables.tf
index 5454bfe..f71e9f6 100755
--- a/variables.tf
+++ b/variables.tf
@@ -4,6 +4,12 @@ variable "namespace" {
default = ""
}
+variable "environment" {
+ type = string
+ default = ""
+ description = "Environment, e.g. 'prod', 'staging', 'dev', 'pre-prod', 'UAT'"
+}
+
variable "stage" {
type = string
description = "Stage (e.g. `prod`, `dev`, `staging`)"