You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
422 B
HCL
17 lines
422 B
HCL
data "aws_caller_identity" "current" {}
|
|
|
|
data "aws_region" "current" {}
|
|
|
|
data "archive_file" "functions" {
|
|
type = "zip"
|
|
source_dir = local.source_funcs
|
|
output_path = local.archive_funcs
|
|
}
|
|
|
|
locals {
|
|
source_funcs = "${path.module}/lambda/"
|
|
archive_funcs = "${path.module}/lambda/functions.zip"
|
|
region = data.aws_region.current.name
|
|
account_id = data.aws_caller_identity.current.account_id
|
|
}
|