Skip to content
This repository was archived by the owner on Jul 21, 2025. It is now read-only.

Commit 64be990

Browse files
authored
refactor: deploy to us-west-2 (#63)
After merging, we'll need to: - Manually deploy to check - Tear down the old stack Closes #56
1 parent f782512 commit 64be990

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
STACK_RATE_LIMIT: 10
4848
environment:
4949
name: development
50-
url: https://a0d353yb39.execute-api.us-east-1.amazonaws.com/
50+
url: ${{ steps.deploy.outputs.api_url }}
5151
defaults:
5252
run:
5353
working-directory: infrastructure/aws
@@ -57,7 +57,7 @@ jobs:
5757
with:
5858
role-to-assume: arn:aws:iam::390960605471:role/labs-375-stac-fastapi-geoparquet-github-actions
5959
role-session-name: stac-fastapi-geoparquet-deploy
60-
aws-region: us-east-1
60+
aws-region: us-west-2
6161
- uses: actions/setup-node@v2
6262
with:
6363
node-version: 22
@@ -69,8 +69,10 @@ jobs:
6969
- name: CDK Synth
7070
run: uv run --only-group deploy npm run cdk -- synth
7171
- name: CDK Deploy
72+
id: deploy
7273
run: |
7374
uv run --only-group deploy npm run cdk -- deploy --require-approval never
7475
aws s3 cp ../../data/naip.parquet s3://${STACK_BUCKET_NAME}/${STACK_GEOPARQUET_KEY}
7576
API_URL=$(aws cloudformation describe-stacks --stack-name ${STACK_NAME}-${STACK_STAGE} --query 'Stacks[0].Outputs[?OutputKey==`ApiURL`].OutputValue' --output text)
7677
echo "::notice title=API URL::${API_URL}"
78+
echo api_url=$API_URL >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)