Ryan Green
01/31/2023, 7:02 PMMitchell Hynes
01/31/2023, 7:10 PMresource "aws_cloudformation_stack" "dagster-agent" {
name = "${var.profile}-dagster-agent"
parameters = {
DagsterOrganization = var.dagster_org,
DagsterDeployment = "prod",
EnableBranchDeployments = false,
AgentToken = var.dagster_agent_token,
ExistingVPC = aws_vpc.vpc.id,
ExistingSubnets = join(",", aws_subnet.private_subnet.*.id)
ExistingCluster = ""
TaskSecurityGroup = aws_security_group.dagster_task_sg.id
AgentSecurityGroup = aws_security_group.dagster_agent_sg.id
}
capabilities = ["CAPABILITY_IAM"]
template_body = file("${path.module}/dagster-agent.yml")
}