Skip to content

Commit

Permalink
add docs on profile
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Jan 31, 2023
1 parent 1379d6f commit e1fe63a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ locals {
module "images" {
source = "git@github.e.it.census.gov:terraform-modules/aws-ecr-copy-images.git"
profile = var.profile
application_list = ["app1", "app2"]
application_name = "org-project"
image_config = local.image_config
Expand Down Expand Up @@ -74,6 +75,11 @@ org-project/nodejs-14 817869416306.dkr.ecr.us-gov-east-1.amazonaws.com/org-proje
org-project/openjdk-8 817869416306.dkr.ecr.us-gov-east-1.amazonaws.com/org-project/openjdk-8 August 22, 2022, 12:43:57 (UTC-04) Enabled Enabled KMS
```

# Variables
## profile
This variable is required because this module calls a script, and it uses `aws` CLI commands. As such, it needs to set the `AWS_PROFILE` environment
variable to call the script properly.

# Caveats
Currently, a destroy of the images (null\_resources) does **NOT** remove the repository. That is a work in progress.

Expand Down
1 change: 1 addition & 0 deletions examples/simple/copy-images.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module "images" {
source = "git@github.e.it.census.gov:terraform-modules/aws-ecr-copy-images.git"

profile = var.profile
application_list = ["app1", "app2"]
application_name = "org-project"
image_config = var.image_config
Expand Down
6 changes: 6 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
* module "images" {
* source = "git@github.e.it.census.gov:terraform-modules/aws-ecr-copy-images.git"
*
* profile = var.profile
* application_list = ["app1", "app2"]
* application_name = "org-project"
* image_config = local.image_config
Expand Down Expand Up @@ -74,6 +75,11 @@
* org-project/nodejs-14 817869416306.dkr.ecr.us-gov-east-1.amazonaws.com/org-project/nodejs-14 August 22, 2022, 12:43:57 (UTC-04) Enabled Enabled KMS
* org-project/openjdk-8 817869416306.dkr.ecr.us-gov-east-1.amazonaws.com/org-project/openjdk-8 August 22, 2022, 12:43:57 (UTC-04) Enabled Enabled KMS
* ```
*
* # Variables
* ## profile
* This variable is required because this module calls a script, and it uses `aws` CLI commands. As such, it needs to set the `AWS_PROFILE` environment
* variable to call the script properly.
*
* # Caveats
* Currently, a destroy of the images (null_resources) does **NOT** remove the repository. That is a work in progress.
Expand Down

0 comments on commit e1fe63a

Please sign in to comment.