diff --git a/README.md b/README.md index f5ed088..7219a0e 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ ### Using the Repo Source ```hcl -github.com/pbs/terraform-aws-lambda-module?ref=1.4.0 +github.com/pbs/terraform-aws-lambda-module?ref=x.y.z ``` ### Alternative Installation Methods @@ -22,7 +22,7 @@ Integrate this module like so: ```hcl module "role" { - source = "github.com/pbs/terraform-aws-lambda-module?ref=1.4.0" + source = "github.com/pbs/terraform-aws-lambda-module?ref=x.y.z" handler = "main" filename = "../artifacts/handler.zip" @@ -42,7 +42,7 @@ module "role" { If this repo is added as a subtree, then the version of the module should be close to the version shown here: -`1.4.0` +`x.y.z` Note, however that subtrees can be altered as desired within repositories. diff --git a/examples/docker/main.tf b/examples/docker/main.tf index 8bf6cca..a242605 100644 --- a/examples/docker/main.tf +++ b/examples/docker/main.tf @@ -1,5 +1,5 @@ module "ecr" { - source = "github.com/pbs/terraform-aws-ecr-module?ref=0.3.0" + source = "github.com/pbs-common/terraform-aws-ecr-module?ref=0.3.0" // Just to make testing easier image_tag_mutability = "MUTABLE" diff --git a/examples/docker/main.tf.bak b/examples/docker/main.tf.bak new file mode 100644 index 0000000..8bf6cca --- /dev/null +++ b/examples/docker/main.tf.bak @@ -0,0 +1,27 @@ +module "ecr" { + source = "github.com/pbs/terraform-aws-ecr-module?ref=0.3.0" + + // Just to make testing easier + image_tag_mutability = "MUTABLE" + + force_delete = true + + environment = var.environment + product = var.product + repo = var.repo + organization = var.organization +} + +module "lambda" { + source = "../.." + + image_uri = "${module.ecr.repo_url}:latest" + package_type = "Image" + + architectures = ["arm64"] + + environment = var.environment + product = var.product + repo = var.repo + organization = var.organization +}