-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcapic_cloudformation.tf
More file actions
41 lines (36 loc) · 1.04 KB
/
capic_cloudformation.tf
File metadata and controls
41 lines (36 loc) · 1.04 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
36
37
38
39
40
41
terraform {
required_version = "~>1.1.0"
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 3.65.0"
}
}
}
provider "aws" {
region = var.aws_region
profile = var.aws_credential_profile
}
resource "aws_cloudformation_stack" "capic_stack" {
name = var.capic_stack_name
parameters = {
pFabricName = var.pFabricName
pInfraVPCPool = var.pInfraVPCPool
pAvailabilityZone = var.pAvailabilityZone
pInstanceType = var.pInstanceType
pPassword = var.pPassword
pConfirmPassword = var.pPassword
pKeyName = var.pKeyName
pExtNw = var.pExtNw
pAssignOOBIntfEIP = var.pAssignOOBIntfEIP
}
template_url = var.capic_template_url
# disable_rollback = false
# on_failure = "DO_NOTHING"
# iam_role_arn = ""
capabilities = ["CAPABILITY_NAMED_IAM"] # CAPABILITY_NAMED_IAM required for cAPIC Stack
}
output "stack_outputs" {
description = "Outputs from the Stack execution"
value = aws_cloudformation_stack.capic_stack.outputs
}