-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.tf
32 lines (27 loc) · 1.17 KB
/
main.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
terraform {
backend "s3" {
encrypt = true
bucket = ""
region = "us-west-2"
key = "indent/terraform.tfstate"
}
}
# Indent + AWS IAM Integration
# Details: https://github.com/indentapis/integrations/tree/ca6221edd8775dca90cc9bfed7851ec683acc645/packages/beta/indent-integration-aws-iam
# Last Change: https://github.com/indentapis/integrations/commit/ca6221edd8775dca90cc9bfed7851ec683acc645
module "idt-aws-iam-webhook" {
source = "git::https://github.com/indentapis/integrations//terraform/modules/indent_runtime_aws_lambda"
name = "idt-aws-iam-webhook"
indent_webhook_secret = var.indent_webhook_secret
artifact = {
bucket = "indent-artifacts-us-west-2"
function_key = "webhooks/aws/lambda/aws-iam-ca6221edd8775dca90cc9bfed7851ec683acc645-function.zip"
deps_key = "webhooks/aws/lambda/aws-iam-ca6221edd8775dca90cc9bfed7851ec683acc645-deps.zip"
}
env = {
DEFAULT_USER_PW = var.default_user_pw
INDENT_AWS_DIRECT_ASSIGNMENT = var.indent_aws_direct_assignment
AWS_STS_ASSUME_ROLE = var.aws_sts_assume_role
AWS_STS_EXTERNAL_ID = var.aws_sts_external_id
}
}