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: docs/govcloud-deployment.md
+7-20Lines changed: 7 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,35 +52,22 @@ You need to have the following packages installed on your computer:
52
52
7. A local Docker daemon
53
53
8. Python packages for the IDP CLI and SDK. Run `make setup-venv` from the project root to create a `.venv` and install all required packages (idp-cli, idp-sdk, idp_common). Activate with `source .venv/bin/activate`.
54
54
55
-
### Step 1: Build and Generate Headless Template
55
+
### Deploy to GovCloud
56
56
57
-
First, build and generate the GovCloud-compatible headless template using `idp-cli publish --headless`. This runs the standard build process to create all Lambda functions and artifacts, and then creates a stripped-down version for GovCloud:
58
-
59
-
```bash
60
-
# Build for GovCloud region with headless template
> **Note**: The CLI will create an S3 bucket automatically. You can customize the bucket name with `--bucket-basename` and the prefix with `--prefix`. The `--headless` flag generates a template with UI, AppSync, Cognito, and WAF resources removed.
68
-
69
-
> **Legacy**: The `scripts/generate_govcloud_template.py` script is deprecated. Use `idp-cli publish --headless` instead.
70
-
71
-
### Step 2: Deploy to GovCloud
72
-
73
-
Deploy the generated template to GovCloud using `idp-cli deploy` with the `--template-file` flag:
57
+
Build and deploy to GovCloud with a single command. The `--from-code .` flag builds from your local source code (required for GovCloud since public templates are not published for GovCloud regions), and `--headless` strips UI, AppSync, Cognito, and WAF resources:
74
58
75
59
```bash
76
60
idp-cli deploy \
77
61
--stack-name my-idp-headless-stack \
78
-
--template-file .aws-sam/idp-govcloud.yaml \
79
62
--region us-gov-west-1 \
63
+
--from-code . \
64
+
--headless \
80
65
--wait
81
66
```
82
67
83
-
Alternatively, deploy using the AWS CloudFormation console by uploading the generated template file.
68
+
> **Note**: The CLI creates an S3 bucket automatically. Customize with `--bucket-basename` and `--prefix`.
69
+
70
+
> **Legacy**: The `scripts/generate_govcloud_template.py` script is deprecated. Use `idp-cli deploy --headless --from-code .` instead.
0 commit comments