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.
18 lines
397 B
HCL
18 lines
397 B
HCL
data "aws_iam_policy_document" "lambda-metrics-role" {
|
|
statement {
|
|
effect = "Allow"
|
|
principals {
|
|
type = "Service"
|
|
identifiers = ["lambda.amazonaws.com"]
|
|
}
|
|
actions = ["sts:AssumeRole"]
|
|
}
|
|
}
|
|
|
|
module "metrics-lambda" {
|
|
source = "./modules/lambda"
|
|
name = "metrics"
|
|
handler = "metrics"
|
|
policy = data.aws_iam_policy_document.lambda-metrics-role.json
|
|
}
|