One team has already written a cloudformation template as a .yml file that provisions a stack of resources.
Is it possible to leverage this file by executi
I can confirm that template_body with a file reference to a cloudformation template works. I assume template_url will also work great. Example
resource "aws_cloudformation_stack" "my-new-stack" {
name = "my-new-stack"
parameters {
Name="my-new-stack"
Port="22"
VpcId = "${var.vpc_id}"
}
template_body = "${file("${path.module}/mystack.yml")}"
}