-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.tf
More file actions
35 lines (31 loc) · 1.09 KB
/
main.tf
File metadata and controls
35 lines (31 loc) · 1.09 KB
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
35
resource "aws_cloudformation_stack" "this" {
tags = merge(var.tags, { "elastio:resource" = true })
name = var.stack_name
template_url = var.template_url
capabilities = ["CAPABILITY_IAM", "CAPABILITY_NAMED_IAM"]
disable_rollback = var.disable_rollback
notification_arns = var.notification_arns
on_failure = var.on_failure
policy_body = var.policy_body
policy_url = var.policy_url
iam_role_arn = var.iam_role_arn
timeout_in_minutes = var.timeout_in_minutes
parameters = {
for key, value in {
iamResourceNamesPrefix = var.iam_resource_names_prefix
iamResourceNamesSuffix = var.iam_resource_names_suffix
encryptWithCmk = var.encrypt_with_cmk
lambdaTracing = var.lambda_tracing
} :
key => tostring(value)
}
# Ignore some internal parameter values
lifecycle {
ignore_changes = [
parameters["cloudConnectorAccountId"],
parameters["cloudConnectorRoleExternalId"],
parameters["deploymentNotificationToken"],
parameters["deploymentNotificationTopicArn"],
]
}
}