Skip to content

Instantly share code, notes, and snippets.

@9oelM

9oelM/block42.tf Secret

Created March 21, 2021 13:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 9oelM/1f9c8dedfb828d7316d2557348f6dd33 to your computer and use it in GitHub Desktop.
Save 9oelM/1f9c8dedfb828d7316d2557348f6dd33 to your computer and use it in GitHub Desktop.
module "lambda_function_container_image" {
version = "1.43.0"
source = "terraform-aws-modules/lambda/aws"
function_name = "${terraform.workspace}-HelloEngFunction"
description = "GET /hello"
create_package = false
# this will allow Terraform to detect changes in the docker image because
# a new image will have a different SHA (digest).
image_uri = "{your-account-id}.dkr.ecr.{your-region}.amazonaws.com/${aws_ecr_repository.hello.name}@${data.aws_ecr_image.latest.image_digest}"
package_type = "Image"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment