You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1.[Deploy using Pulumi](/docs/tutorials/deploy-using-pulumi)
111
111
112
112
Choose the direction that seems the most interesting. If you have any questions, join the [Defang Discord](https://discord.gg/defang) and we'll be happy to help you out.
Copy file name to clipboardExpand all lines: docs/providers/digitalocean/digitalocean.md
+21-5Lines changed: 21 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,17 +13,33 @@ This feature is available for Public Preview as of October 2024. This page will
13
13
Why should you use Defang with DigitalOcean? Defang allows you to easily create and manage full, scalable applications with DigitalOcean. Defang aims to make it easier to deploy your services to the cloud. DigitalOcean is one of the most popular cloud providers in the world and with Defang, you dont have to waste your time understanding the complexities and challenges of the DigitalOcean platform. Let Defang do it for you and spend more time working on whats important to you!
14
14
15
15
## Getting Started
16
-
To get started with the Defang BYOC DigitalOcean Provider, first [install the latest version of the Defang CLI](../getting-started#authenticate-with-defang). Next make sure you have signed up for a [DigitalOcean account](https://try.digitalocean.com/freetrialoffer/).
17
16
18
-
After signing up for your account, be sure to setup your [personal access token](https://docs.digitalocean.com/reference/api/create-personal-access-token/) as well as your [Spaces access key](https://docs.digitalocean.com/products/spaces/how-to/manage-access/). Next, save these values as environment variables with the names `DIGITALOCEAN_TOKEN`, `SPACES_ACCESS_KEY_ID`, and `SPACES_SECRET_ACCESS_KEY`.
17
+
### Install Defang
18
+
19
+
To get started with the Defang BYOC DigitalOcean Provider, first [install the latest version of the Defang CLI](../getting-started#authenticate-with-defang).
20
+
21
+
### Sign up for DigitalOcean
22
+
Next make sure you have signed up for a [DigitalOcean account](https://try.digitalocean.com/freetrialoffer/).
23
+
24
+
### Authenticate with DigitalOcean
25
+
After signing up for your account, be sure to setup your [personal access token](https://docs.digitalocean.com/reference/api/create-personal-access-token/). Defang will need to find this value in your shell as the `DIGITALOCEAN_TOKEN` environment variable.
26
+
27
+
### Authenticate with DigitalOcean Spaces
28
+
You will also need a [Digital Ocean Spaces access key](https://docs.digitalocean.com/products/spaces/how-to/manage-access/). Defang will need to find this value in your shell as the `SPACES_ACCESS_KEY_ID`, and `SPACES_SECRET_ACCESS_KEY` environment variables.
29
+
30
+
### Configure your shell environment
19
31
20
32
```bash
21
33
export DIGITALOCEAN_TOKEN=<your-token>
22
34
export SPACES_ACCESS_KEY_ID=<your-key-id>
23
35
export SPACES_SECRET_ACCESS_KEY=<your-key>
24
36
```
25
37
26
-
The Defang CLI will automatically check if they are set before running. Once you are ready to go, add the `--provider=digitalocean` to your command to tell the Defang CLI to use the DigitalOcean provider.
38
+
The Defang CLI will automatically check if these envinonment variables are set before running.
39
+
40
+
### Deploy your project to DigitalOcean
41
+
42
+
Once you are ready to go, add the `--provider=digitalocean` to your command to tell the Defang CLI to use the DigitalOcean provider.
The Defang BYOC DigitalOcean Provider will use the region specified in the `REGION` environment variable. For a list of regions available in DigitalOcean, see the [region documentation](https://docs.digitalocean.com/platform/regional-availability/#app-platform-availability).
52
+
The Defang BYOC DigitalOcean Provider will use the region specified in the `REGION` environment variable. For a list of regions available in DigitalOcean, see the [region documentation](https://docs.digitalocean.com/platform/regional-availability/#app-platform-availability).
37
53
38
54
## Architecture
39
55
@@ -45,7 +61,7 @@ To deploy your services, the Defang CLI packages your code and uploads it to a [
45
61
46
62
### Runtime
47
63
48
-
The Provider runs your workloads using the [DigitalOcean App Platform](https://docs.digitalocean.com/products/app-platform/).
64
+
The Provider runs your workloads using the [DigitalOcean App Platform](https://docs.digitalocean.com/products/app-platform/).
1. Navigate to the directory where your project is located:
21
+
```bash
22
+
$ cd path/to/your/project
23
+
```
24
+
25
+
2. Authenticate Defang to use your AWS Account
26
+
27
+
Defang will look for your AWS credentials in your shell environment.
28
+
29
+
Defang will expect to find one of the following credential sets:
30
+
* the `AWS_PROFILE` environment variable
31
+
* or, the `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY` environment variables
32
+
33
+
3. Deploy
34
+
35
+
Invoke the `defang up` CLI command with the `--provider=aws` flag or set the `DEFANG_PROVIDER=aws` environment variable.
36
+
37
+
For example:
38
+
39
+
```bash
40
+
$ defang up --provider=aws
41
+
```
42
+
43
+
4. Inspect your deployment
44
+
45
+
Defang will provision resources in your AWS account and deploy your services. You can inspect the resources created in your AWS dashboard.
46
+
47
+
***
48
+
49
+
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](./providers/aws/aws.md).
1. Navigate to the directory where your project is located:
22
+
```bash
23
+
$ cd path/to/your/project
24
+
```
25
+
26
+
2. Authenticate Defang to use your Digital Ocean Account
27
+
28
+
Defang will look for your Digital Ocean credentials in your shell environment.
29
+
30
+
Defang will expect to find the following credentials:
31
+
* the `DIGITALOCEAN_TOKEN` environment variable
32
+
* and, the `SPACES_ACCESS_KEY_ID` and `SPACES_SECRET_ACCESS_KEY` environment variables
33
+
34
+
3. Deploy
35
+
36
+
Invoke the `defang up` CLI command with the `--provider=do` flag or set the `DEFANG_PROVIDER=do` environment variable.
37
+
38
+
For example:
39
+
40
+
```bash
41
+
$ defang up --provider=do
42
+
```
43
+
44
+
4. Inspect your deployment
45
+
46
+
Defang will provision resources in your Digital Ocean account and deploy your services. You can inspect the resources created in your Digital Ocean dashboard.
47
+
48
+
***
49
+
50
+
For a deeper discussion of the Defang Digital Ocean Architecture, see our [Digital Ocean Provider docs](./providers/digitalocean/digitalocean.md).
A Compose file is a YAML file that describes the services, networks, and volumes that make up your application. Defang uses this file to deploy your services.
0 commit comments