Skip to content

Commit 465901e

Browse files
committed
more detail in BYOC prompts
1 parent 6152603 commit 465901e

10 files changed

+74
-41
lines changed

docs/tutorials/deploy-to-aws.mdx

Lines changed: 44 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7,31 +7,35 @@ description: Defang allows you deploy to your own Amazon Web Services (AWS) acco
77

88
This tutorial will show you how to deploy your services to your own AWS account using Defang.
99

10-
## Pre-requisites
11-
* [A Dockerfile in your project](https://docs.docker.com/get-started/docker-concepts/building-images/writing-a-dockerfile/)
12-
* [A `compose.yaml` file in your project](https://docs.docker.com/compose/gettingstarted/)
13-
* [A Defang Account](/docs/concepts/authentication)
14-
* [The Defang CLI](/docs/getting-started#install-the-defang-cli)
15-
* [AWS Account Credentials](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-authentication.html)
16-
17-
:::warning["MCP Pre-requisite"]
10+
## Prerequisites
11+
12+
- [The Defang CLI](/docs/getting-started#install-the-defang-cli)
13+
- [A Defang Account](/docs/concepts/authentication)
14+
- [AWS Account Credentials](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-authentication.html)
15+
- [A `compose.yaml` file in your project](https://docs.docker.com/compose/gettingstarted/)
16+
- [A Dockerfile in your project](https://docs.docker.com/get-started/docker-concepts/building-images/writing-a-dockerfile/) or use [Railpack](../concepts/railpack.md)
17+
18+
:::warning["MCP prerequisite"]
1819
If you would like to deploy using [MCP](https://modelcontextprotocol.io/), you like need to setup the [Defang MCP Server](../concepts/mcp.md) with the IDE of your choice.
1920
:::
2021

2122
## CLI
2223

2324
### Step 1 - Navigate to your project directory
25+
2426
Head to the folder where your project is located.
27+
2528
```bash
2629
$ cd path/to/your/project
2730
```
2831

29-
### Step 2 - Authenticate Defang to use your AWS Account
32+
### Step 2 - Configure your AWS credentials
3033

31-
There are many ways to authenticate your [AWS account](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-authentication.html).
34+
There are many ways to authenticate with your [AWS account](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-authentication.html).
3235
Once you've done that, Defang will look for your AWS credentials in your shell environment and expect to find one of the following credential sets:
33-
* the `AWS_PROFILE` environment variable
34-
* or, the `AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY`, and `AWS_REGION` environment variables
36+
37+
- the `AWS_PROFILE` environment variable, and optionally the `AWS_REGION` environment variable
38+
- or, the `AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY`, and `AWS_REGION` environment variables
3539

3640
:::tip
3741
If you have the AWS CLI installed (which is not required in order to use the Defang CLI), you can verify that you've authenticated to AWS by running `aws sts get-caller-identity` and see your account ID.
@@ -56,29 +60,50 @@ Defang will provision resources in your AWS account and deploy your services. Yo
5660
## MCP
5761

5862
### Step 1 - Navigate to your project directory with your IDE
63+
5964
Navigate to your project directory and open it in an IDE that has the [Defang MCP Server](../concepts/mcp.md) installed.
6065

6166
:::tip
6267
If the Defang MCP server doesn’t start automatically, try starting or restarting it from your IDE settings.
6368
![VS Code](/img/prompts/start-server.png)
6469
:::
6570

66-
### Step 2 - Setting your provider
67-
In your chat window, type `/mcp.defang.AWS_Setup` or select the corresponding prompt from your IDE’s options.
71+
### Step 2 - Configure your AWS credentials
72+
73+
There are many ways to authenticate with your [AWS account](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-authentication.html).
74+
75+
:::tip
76+
If you have the AWS CLI installed (which is not required in order to use the Defang CLI), you can verify that you've authenticated to AWS by running `aws sts get-caller-identity` and see your account ID.
77+
:::
78+
79+
Once you’ve set up your `AWS_PROFILE` or retrieved your `AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY`, and `AWS_REGION`, you’re ready to continue. Open your chat window and type /defang.AWS_Setup, or select the corresponding prompt from your IDE’s options.
6880

6981
![Trigger Prompt](/img/prompts/aws-prompt.png)
7082

7183
The [MCP prompt](https://modelcontextprotocol.io/specification/2025-06-18/server/prompts) accepts two types of credentials:
72-
* the AWS Profile arguement (skip the rest of the prompts after entering the AWS Profile)
73-
* or, the AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, and AWS_REGION arguments
84+
85+
1. Method 1 - Using an AWS Profile:
86+
The following prompt will have three arguments and only the first argument is required:
87+
88+
- AWS Credential - REQUIRED : The name of the AWS profile you want to use (e.g., "default" or "my-profile"). ![AWS Profile argument](/img/prompts/aws-profile-arg.png)
89+
- AWS_SECRET_ACCESS_KEY - IGNORE : Leave this argument blank and press Enter. ![Ignore AWS Secret Access Key argument](/img/prompts/aws-ignore_secret.png)
90+
- AWS_REGION - OPTIONAL : The AWS region where you want to deploy your services (e.g., "us-west-2"). ![AWS Region argument Optional](/img/prompts/aws-optional-region.png)
91+
92+
2. Method 2 - Using Access Keys:
93+
The following prompt will have three arguments and all three arguments are required:
94+
95+
- AWS Credential - REQUIRED : The AWS Access Key ID (e.g., "AKIAIOSFODNN7EXAMPLE"). ![AWS Access Key ID argument](/img/prompts/aws-access-key-arg.png)
96+
- AWS_SECRET_ACCESS_KEY - REQUIRED : The AWS Secret Access Key. (e.g., "wJalrXUtnFEMI/K7MDENG/bPExampleSecretKey").![AWS Secret Access Key argument](/img/prompts/aws-secret-key-arg.png)
97+
- AWS_REGION - REQUIRED : The AWS region where you want to deploy your services (e.g., "us-west-2"). ![AWS Region argument](/img/prompts/require-aws-region-arg.png)
7498

7599
### Step 3 - Deploy
76-
Once the prompt completes without errors, your chat input will be automatically populated with the deployment command for the LLM to execute.
100+
101+
Once the prompt completes without errors, your chat input will be automatically populated with the deployment command for the IDE to execute.
77102

78103
### Step 4 - Inspect your deployment
79-
You can check the status of your depolyment by using the [Defang Services tool](../concepts/mcp#services) or you can inspect the resources created in your AWS Dashboard.
80104

105+
You can check the status of your deployment by using the [Defang Services tool](../concepts/mcp#services) or you can inspect the resources created in your AWS Dashboard.
81106

82-
***
107+
---
83108

84109
For a deeper discussion of the Defang AWS Architecture, including a list of the resources we provision in your account, see our [AWS Provider docs](/docs/providers/aws).

docs/tutorials/deploy-to-gcp.mdx

Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,27 +7,30 @@ description: Defang allows you deploy to your own Google Cloud Platform (GCP) ac
77

88
This tutorial will show you how to deploy your services to your own GCP project using Defang.
99

10-
## Pre-requisites
11-
* [A Dockerfile in your project](https://docs.docker.com/get-started/docker-concepts/building-images/writing-a-dockerfile/)
12-
* [A `compose.yaml` file in your project](https://docs.docker.com/compose/gettingstarted/)
13-
* [A Defang Account](/docs/concepts/authentication)
14-
* [The Defang CLI](/docs/getting-started#install-the-defang-cli)
15-
* [gcloud CLI](https://cloud.google.com/sdk/docs/install)
16-
* [GCP Account Credentials](https://cloud.google.com/docs/authentication/set-up-adc-local-dev-environment)
17-
18-
:::warning["MCP Pre-requisite"]
10+
## Prerequisites
11+
12+
- [The Defang CLI](/docs/getting-started#install-the-defang-cli)
13+
- [A Defang Account](/docs/concepts/authentication)
14+
- [gcloud CLI](https://cloud.google.com/sdk/docs/install)
15+
- [GCP Application Default Credentials](https://cloud.google.com/docs/authentication/set-up-adc-local-dev-environment)
16+
- [A `compose.yaml` file in your project](https://docs.docker.com/compose/gettingstarted/)
17+
- [A Dockerfile in your project](https://docs.docker.com/get-started/docker-concepts/building-images/writing-a-dockerfile/) or use [Railpack](../concepts/railpack.md)
18+
19+
:::warning["MCP prerequisite"]
1920
If you would like to deploy using [MCP](https://modelcontextprotocol.io/), you like need to setup the [Defang MCP Server](../concepts/mcp.md) with the IDE of your choice.
2021
:::
2122

2223
## CLI
2324

2425
### Step 1 - Navigate to your project directory
26+
2527
Head to the folder where your project is located.
28+
2629
```bash
2730
$ cd path/to/your/project
2831
```
2932

30-
### Step 2 - Authenticate Defang to use your GCP Account
33+
### Step 2 - Configure your GCP credentials
3134

3235
After signing in to your GCP account, select an existing project or [create a new project](https://developers.google.com/workspace/guides/create-project). Make sure [billing is enabled](https://cloud.google.com/billing/docs/how-to/modify-project). Then, note down the project ID and set it as environment variable `GCP_PROJECT_ID`.
3336

@@ -50,30 +53,35 @@ Defang will provision resources in your GCP account and deploy your services. Yo
5053
## MCP
5154

5255
### Step 1 - Navigate to your project directory with your IDE
56+
5357
Navigate to your project directory and open it in an IDE that has the [Defang MCP Server](../concepts/mcp.md) installed.
5458

5559
:::tip
5660
If the Defang MCP server doesn’t start automatically, try starting or restarting it from your IDE settings.
5761
![VS Code](/img/prompts/start-server.png)
5862
:::
5963

60-
### Step 2 - Authenticate Defang to use your GCP Account
64+
### Step 2 - Configure your GCP credentials
6165

6266
After signing in to your GCP account, select an existing project or [create a new project](https://developers.google.com/workspace/guides/create-project). Make sure [billing is enabled](https://cloud.google.com/billing/docs/how-to/modify-project). Then, note down the project ID for the next step.
6367

6468
### Step 2 - Setting your provider
65-
In your chat window, type `/mcp.defang.GCP_Setup` or select the corresponding prompt from your IDE’s options.
69+
70+
In your chat window, type `/defang.GCP_Setup` or select the corresponding prompt from your IDE’s options.
6671

6772
![Trigger Prompt](/img/prompts/gcp-prompt.png)
6873

69-
The [MCP prompt](https://modelcontextprotocol.io/specification/2025-06-18/server/prompts) will require your GCP project ID you created in [Step 2](#step-2---authenticate-defang-to-use-your-gcp-account-1).
74+
The [MCP argument](https://modelcontextprotocol.io/specification/2025-06-18/server/prompts) will require your GCP project ID you created in [Step 2](#step-2---authenticate-defang-to-use-your-gcp-account-1).
75+
![GCP Project ID](/img/prompts/gcp-project-id.png)
7076

7177
### Step 3 - Deploy
72-
Once the prompt completes without errors, your chat input will be automatically populated with the deployment command for the LLM to execute.
78+
79+
Once the prompt completes without errors, your chat input will be automatically populated with the deployment command for the IDE to execute.
7380

7481
### Step 4 - Inspect your deployment
82+
7583
You can check the status of your depolyment by using the [Defang Services tool](../concepts/mcp#services) or you can inspect the resources created in your GCP Dashboard.
7684

77-
***
85+
---
7886

7987
For a deeper discussion of the Defang GCP Architecture, see our [GCP docs](/docs/providers/gcp).

docs/tutorials/deploy-to-playground.mdx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ description: Deploy to the free Defang Playground.
77

88
This tutorial will show you how to deploy your project to the free [Defang Playground](/docs/concepts/defang-playground).
99

10-
## Pre-requisites
10+
## Prerequisites
1111

12-
- [A Dockerfile in your project](https://docs.docker.com/get-started/docker-concepts/building-images/writing-a-dockerfile/)
13-
- [A `compose.yaml` file in your project](https://docs.docker.com/compose/gettingstarted/)
14-
- [A Defang Account](/docs/concepts/authentication)
1512
- [The Defang CLI](/docs/getting-started#install-the-defang-cli)
13+
- [A Defang Account](/docs/concepts/authentication)
14+
- [A `compose.yaml` file in your project](https://docs.docker.com/compose/gettingstarted/)
15+
- [A Dockerfile in your project](https://docs.docker.com/get-started/docker-concepts/building-images/writing-a-dockerfile/) or use [Railpack](../concepts/railpack.md)
1616

17-
:::warning["MCP Pre-requisite"]
17+
:::warning["MCP prerequisite"]
1818
If you would like to deploy using [MCP](https://modelcontextprotocol.io/), you like need to setup the [Defang MCP Server](../concepts/mcp.md) with the IDE of your choice.
1919
:::
2020

@@ -79,11 +79,11 @@ If the Defang MCP server doesn’t start automatically, try starting or restarti
7979

8080
### Step 2 - Setting your provider
8181

82-
In your chat window, type `/mcp.defang.Playground_Setup` or select the corresponding prompt from your IDE’s options.
82+
In your chat window, type `/defang.Playground_Setup` or select the corresponding prompt from your IDE’s options.
8383

8484
![Trigger Prompt](/img/prompts/playground-prompt.png)
8585

86-
There are no arguements to this prompt.
86+
There are no arguments to this prompt.
8787

8888
### Step 3 - Deploy
8989

37 KB
Loading
39.7 KB
Loading
36.4 KB
Loading
36.2 KB
Loading
41.8 KB
Loading
34.5 KB
Loading
33.3 KB
Loading

0 commit comments

Comments
 (0)