---
title: "Get Stack Deployment Config"
method: GET
path: "/api/v1/stack-deployment/config"
tags: ["stacks"]
---

# Get Stack Deployment Config

`GET /api/v1/stack-deployment/config`

Return the URL to deploy the ZenML stack to the specified cloud provider.

Args:
    request: The FastAPI request object.
    provider: The stack deployment provider.
    stack_name: The name of the stack.
    location: The location where the stack should be deployed.
    terraform: Whether the stack should be deployed using Terraform.
    auth_context: The authentication context.

Returns:
    The cloud provider console URL where the stack will be deployed and
    the configuration for the stack deployment.

## Query parameters

- `provider` 'aws' | 'gcp' | 'azure', required — All possible stack deployment providers.
- `stack_name` string, required
- `location` string, nullable
- `terraform` boolean

## Response `200`

Successful Response

- StackDeploymentConfig — Configuration about a stack deployment.
  - `deployment_url` string, required
  - `deployment_url_text` string, required
  - `configuration` string, nullable
  - `instructions` string, nullable

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `422` — Validation Error

---

[API](https://skmtc.net/zenml-io/apis/zenml-2.md) · [All operations](https://skmtc.net/zenml-io/apis/zenml-2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/zenml-io/zenml-2/versions/febb01b8bce3/schema)
