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
Make sure you are logged into the [Defang CLI](/docs/concepts/authentication.md). Don't worry about the Pulumi CLI for now.
26
26
27
-
## Configure the Pulumi Backend
27
+
## Step 2 - Configure the Pulumi Backend
28
28
29
29
Navigate to your project directly. (If you don't have a project yet, try one of our [samples](https://defang.io/#samples))
30
30
@@ -39,7 +39,7 @@ pulumi login file://./
39
39
40
40
This will make the Pulumi CLI store the state of your infrastructure in the current directory.
41
41
42
-
## Initialize the Pulumi Project
42
+
## Step 3 - Initialize the Pulumi Project
43
43
44
44
Run the following command to set your encryption passphrase for this terminal session:
45
45
@@ -61,7 +61,7 @@ Run the following command to add to the `.gitignore` file:
61
61
echo".pulumi">> .gitignore
62
62
```
63
63
64
-
## Write Your Pulumi Code
64
+
## Step 4 - Write Your Pulumi Code
65
65
66
66
Create an `index.ts` file to contain your Pulumi code. This code will describe our services, our service's dependencies, and our service's configuration.
67
67
@@ -107,23 +107,23 @@ export const service = new defang.DefangService('minio', {
107
107
});
108
108
```
109
109
110
-
## Deploy to Defang
110
+
## Step 5 - Deploy to Defang
111
111
112
112
Now we're ready to deploy to Defang with Pulumi! Run the following command to deploy your service:
113
113
114
114
```bash
115
115
pulumi up --stack=dev
116
116
```
117
117
118
-
## Monitor the Deployment
118
+
## Step 6 - Monitor the Deployment
119
119
120
120
You can monitor the deployment by running the following command:
121
121
122
122
```bash
123
123
defang tail --name minio
124
124
```
125
125
126
-
## Logging Into Minio
126
+
###Logging Into Minio
127
127
128
128
The [Defang Playground](../concepts/defang-playground.md) will give you a domain, which you can obtain by running the following command:
129
129
@@ -133,14 +133,14 @@ defang ls | grep 'minio.*9001'
133
133
134
134
If you navigate to the domain in your browser, you will be prompted to log in. Use the username `minio` and the password `minio123`.
135
135
136
-
## Clean Up
136
+
###Clean Up
137
137
138
138
To clean up the deployment, run the following command:
139
139
140
140
```bash
141
141
pulumi destroy --stack=dev
142
142
```
143
143
144
-
## More Info
144
+
---
145
145
146
146
See the [Pulumi concept docs](/docs/concepts/pulumi) for more information about the Defang Pulumi Provider.
0 commit comments