27 lines
547 B
Terraform
27 lines
547 B
Terraform
terraform {
|
|
required_providers {
|
|
python = {
|
|
source = "ATenderholt/python"
|
|
version = "0.9.2"
|
|
}
|
|
}
|
|
}
|
|
|
|
provider "python" {
|
|
pip_command = "pip3"
|
|
}
|
|
|
|
data "python_aws_lambda" "example" {
|
|
source_dir = "source"
|
|
archive_path = "output/handler.zip"
|
|
dependencies_path = "output/dependencies.zip"
|
|
extra_args = "--only-binary=:all:"
|
|
}
|
|
|
|
output lib_sum {
|
|
value = data.python_aws_lambda.example.dependencies_base64sha256
|
|
}
|
|
|
|
output function_sum {
|
|
value = data.python_aws_lambda.example.archive_base64sha256
|
|
} |