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
|`production`| Live production |`app.example.com` or `app.production.example.com`|
38
39
39
40
:::tip Start with QA
40
41
For your first deployment, we recommend creating a `qa` environment. This lets you learn the process before deploying production.
41
42
:::
42
43
43
44
---
44
45
45
-
## Step 3.1: Bootstrap CDK
46
+
## Step 3.1: Select Your AWS Region
47
+
48
+
Before bootstrapping, make sure the correct AWS region is set in your `.env` file. The `AWS_DEFAULT_REGION` variable controls which region your infrastructure will be deployed to.
49
+
50
+
Open your `.env` file and update the region:
51
+
52
+
```bash
53
+
# .env
54
+
AWS_DEFAULT_REGION=eu-west-1 # Replace with your desired region (e.g. us-east-1, ap-southeast-1)
55
+
```
56
+
57
+
:::caution Choose Before Bootstrapping
58
+
CDK bootstrap is region-specific. If you change `AWS_DEFAULT_REGION` after bootstrapping, you will need to bootstrap again in the new region. Pick the right region before proceeding.
59
+
:::
60
+
61
+
---
62
+
63
+
## Step 3.2: Bootstrap CDK
46
64
47
65
AWS CDK needs to prepare your account with resources it uses for deployments (S3 buckets, IAM roles, etc.). This only needs to be done once per AWS account/region.
48
66
@@ -67,7 +85,7 @@ If you see a message saying bootstrap was already run, that's fine. Each AWS acc
67
85
68
86
---
69
87
70
-
## Step 3.2: Set Your Environment Context
88
+
## Step 3.3: Set Your Environment Context
71
89
72
90
Switch to the environment stage you want to configure:
73
91
@@ -87,7 +105,7 @@ This environment context only applies to the current terminal. If you open a new
87
105
88
106
---
89
107
90
-
## Step 3.3: Set Required Configuration Variables
108
+
## Step 3.4: Set Required Configuration Variables
91
109
92
110
Now configure the environment variables that define your deployment. These are stored securely in AWS Systems Manager Parameter Store.
0 commit comments