-
-
Save 9oelM/1f9c8dedfb828d7316d2557348f6dd33 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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