-
Notifications
You must be signed in to change notification settings - Fork 0
/
data.tf
34 lines (27 loc) · 1.12 KB
/
data.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
32
33
34
# Update Alternate Contacts
data "aws_region" "aft_management_region" {}
data "aws_caller_identity" "aft_management_id" {}
data "aws_iam_policy" "AWSLambdaBasicExecutionRole" {
name = "AWSLambdaBasicExecutionRole"
}
data "aws_ssm_parameter" "aft_request_metadata_table_name" {
name = "/aft/resources/ddb/aft-request-metadata-table-name"
}
data "aws_dynamodb_table" "aft_request_metadata_table" {
name = data.aws_ssm_parameter.aft_request_metadata_table_name.value
}
data "archive_file" "aft_alternate_contacts_extract" {
type = "zip"
source_dir = "${path.module}/lambda/aft_alternate_contacts_extract"
output_path = "${path.module}/lambda/aft_alternate_contacts_extract.zip"
}
data "archive_file" "aft_alternate_contacts_add" {
type = "zip"
source_dir = "${path.module}/lambda/aft_alternate_contacts_add"
output_path = "${path.module}/lambda/aft_alternate_contacts_add.zip"
}
data "archive_file" "aft_alternate_contacts_validate" {
type = "zip"
source_dir = "${path.module}/lambda/aft_alternate_contacts_validate"
output_path = "${path.module}/lambda/aft_alternate_contacts_validate.zip"
}