resource "aws_cloudformation_stack" "VpcStack" {
  name = "tenant-${var.id}"
  template_body = "${file("${path.module}/amazon-eks-fully-private-vpc.yaml")}"
}

output "vpc_id" {
  value = "${aws_cloudformation_stack.VpcStack.outputs.VpcId}"
}

output "security_group_ids" {
  value = "${aws_cloudformation_stack.VpcStack.outputs.SecurityGroups}"
}

output "subnet_ids" {
  value = "${aws_cloudformation_stack.VpcStack.outputs.SubnetIds}"
}