Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ resource "aws_cloudformation_stack" "default" {
# When disable_rollback is false, use the value of var.on_failure
on_failure = var.disable_rollback ? null : var.on_failure
disable_rollback = var.disable_rollback
iam_role_arn = var.iam_role_arn
timeout_in_minutes = var.timeout_in_minutes

policy_body = var.policy_body
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ variable "on_failure" {
description = "Action to be taken if stack creation fails. This must be one of: `DO_NOTHING`, `ROLLBACK`, or `DELETE`"
}

variable "iam_role_arn" {
type = string
default = null
description = "The ARN of an IAM role that AWS CloudFormation assumes to create the stack. If you don't specify a value, AWS CloudFormation uses the role that was previously associated with the stack. If no role is available, AWS CloudFormation uses a temporary session that is generated from your user credentials"
}

variable "timeout_in_minutes" {
type = number
default = 30
Expand Down
Loading