diff --git a/README.md b/README.md index 9040aa3..784f7e2 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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. diff --git a/examples/simple/copy-images.tf b/examples/simple/copy-images.tf index 1c4b7a8..b199431 100644 --- a/examples/simple/copy-images.tf +++ b/examples/simple/copy-images.tf @@ -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 diff --git a/main.tf b/main.tf index 8da600e..846a560 100644 --- a/main.tf +++ b/main.tf @@ -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 @@ -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.