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
Copy file name to clipboardExpand all lines: infrastructure/DEPLOYMENT.md
+31-14Lines changed: 31 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,37 +26,54 @@ The example commands here will deploy a CloudFormation stack called `eoAPI-stagi
26
26
npm --prefix infrastructure/aws install
27
27
```
28
28
29
-
3. Install CDK and connect to your AWS account. This step is only necessary once per AWS account. The environment variable `CDK_EOAPI_STAGE` determines the name of the stack
29
+
3. Update settings
30
+
31
+
Set environment variable or hard code in`infrastructure/aws/.env` file (e.g `CDK_EOAPI_DB_PGSTAC_VERSION=0.7.1`).
32
+
33
+
**Important**:
34
+
35
+
- `CDK_EOAPI_DB_PGSTAC_VERSION` is a required env (see https://github.com/stac-utils/pgstac/tags for the latest version)
36
+
37
+
- You can choose which functions to deploy by setting `CDK_EOAPI_FUNCTIONS` env (e.g `CDK_EOAPI_FUNCTIONS='["stac","raster","vector"]'`)
38
+
39
+
40
+
4. Install CDK and connect to your AWS account. This step is only necessary once per AWS account. The environment variable `CDK_EOAPI_STAGE` determines the name of the stack
30
41
(e.g. eoAPI-staging or eoAPI-production)
31
42
```bash
32
43
# Deploy the CDK toolkit stack into an AWS environment.
33
-
CDK_EOAPI_STAGE=staging CDK_EOAPI_DB_PGSTAC_VERSION=0.7.1 npm --prefix infrastructure/aws run cdk -- bootstrap
44
+
CDK_EOAPI_STAGE=staging \
45
+
CDK_EOAPI_DB_PGSTAC_VERSION=0.7.1 \
46
+
npm --prefix infrastructure/aws run cdk -- bootstrap
npm --prefix infrastructure/aws run cdk -- bootstrap
37
54
```
38
55
39
-
4. Update settings
40
-
41
-
Set environment variable or hard code in`infrastructure/aws/.env` file (e.g `CDK_EOAPI_DB_PGSTAC_VERSION=0.7.1`).
42
-
43
-
**Important**:
44
-
- `CDK_EOAPI_DB_PGSTAC_VERSION` is a required env
45
-
- You can choose which functions to deploy by setting `CDK_EOAPI_FUNCTIONS` env (e.g `CDK_EOAPI_FUNCTIONS='["stac","raster","vector"]'`)
46
-
47
56
5. Pre-Generate CFN template
48
57
49
58
```bash
50
-
CDK_EOAPI_STAGE=staging CDK_EOAPI_DB_PGSTAC_VERSION=0.7.1 npm --prefix infrastructure/aws run cdk -- synth # Synthesizes and prints the CloudFormation template for this stack
59
+
CDK_EOAPI_STAGE=staging \
60
+
CDK_EOAPI_DB_PGSTAC_VERSION=0.7.1 \
61
+
npm --prefix infrastructure/aws run cdk -- synth # Synthesizes and prints the CloudFormation template for this stack
51
62
```
52
63
53
64
6. Deploy
54
65
55
66
```bash
56
-
CDK_EOAPI_STAGE=staging CDK_EOAPI_DB_PGSTAC_VERSION=0.7.1 npm --prefix infrastructure/aws run cdk -- deploy eoAPI-${CDK_EOAPI_STAGE}
67
+
CDK_EOAPI_STAGE=staging \
68
+
CDK_EOAPI_DB_PGSTAC_VERSION=0.7.1 \
69
+
npm --prefix infrastructure/aws run cdk -- deploy eoAPI-staging
npm --prefix infrastructure/aws run cdk -- deploy eoapi-staging --profile {my-aws-profile}
60
77
```
61
78
62
79
If you get an error saying that the max VPC's has been reached, this means that you have hit the limit for the amount of VPCs per unique AWS account and region combination. You can change the AWS region to a region that has less VPCs and deploy again to fix this.
0 commit comments