Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(release)!: remove cloudfront routes, improve tests and ingest validation, add nlcd colormap #434

Merged
merged 31 commits into from
Oct 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
cc74726
feat: remove cloudfront distribution from backend
botanical Aug 15, 2024
5e2705a
fix: lint
botanical Aug 15, 2024
4b18b20
feat: remove alternate domain support
botanical Aug 16, 2024
0cc613c
fix: remove unused imports
botanical Aug 16, 2024
4c0628d
feat: update readme to include veda-routes
botanical Aug 21, 2024
06b1372
fix: fix markdown formatting
botanical Aug 21, 2024
f0e0884
fix: fix base api url
botanical Aug 22, 2024
545070c
fix: formatting
botanical Aug 22, 2024
6352853
fix: create properties for stac and raster api url inference for ingest
botanical Aug 22, 2024
d5d307f
fix: typing
botanical Aug 22, 2024
8735f45
fix: fall back to using api gateway url
botanical Aug 23, 2024
d6aedd7
feat: remove cloudfront distribution and custom alternate domain from…
botanical Aug 23, 2024
66d8d2b
fix: update stac_api_url and raster_api_url properties to default to …
botanical Sep 24, 2024
343bf54
fix: lambda env config
botanical Sep 25, 2024
183bdd0
fix: update variable names
botanical Sep 25, 2024
6b7f75a
fix: remove stac and raster cloudfront url properties altogether
botanical Sep 25, 2024
e53f81b
test: Fix transaction unit tests (#425)
stephenkilbourn Sep 25, 2024
8ebddec
fix: update condition in veda_raster_api_cf_url to check for raster_r…
botanical Sep 27, 2024
675268b
fix: update stac_api_url and raster_api_url properties to check corre…
botanical Sep 27, 2024
1d21109
fix: check none enddate in temporal validator (#419)
smohiudd Sep 27, 2024
fd7eeb7
feat(raster-api): new colormap for NLCD data
anayeaye Oct 3, 2024
96f2830
feat(raster-api): new colormap for NLCD data (#433)
anayeaye Oct 3, 2024
1d98a35
remove automated deployment to staging from merge into main branch
anayeaye Oct 10, 2024
247fa9b
ci: use shared cdk-deploy action for dev branch deployment
anayeaye Oct 10, 2024
65a74da
Update .github/workflows/cicd.yml
anayeaye Oct 11, 2024
ad5d5e5
ci: remove automated deployment to staging from merge into main branc…
anayeaye Oct 14, 2024
abceb02
ci: fix cicd target branch name and return release workflow to follow…
anayeaye Oct 14, 2024
c3919f7
ci: fix cicd target branch name and fix release workflow (#439)
anayeaye Oct 14, 2024
0d74425
typo in define-environment
anayeaye Oct 14, 2024
93466b1
fix: typo in define-environment (#440)
anayeaye Oct 14, 2024
a226793
feat: add ecr endpoint to vpc (#432)
smohiudd Oct 15, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/cdk-deploy/action.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Pre-Production - Test, and Deploy Workflow from Veda-Deploy
name: Test and Deploy Workflow

inputs:
env_aws_secret_name:
Expand Down
55 changes: 55 additions & 0 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: CDK Deploy Dev Workflow 🚀

permissions:
id-token: write
contents: read

on:
push:
branches:
- develop

jobs:
define-environment:
name: Set ✨ environment ✨
runs-on: ubuntu-latest
steps:
- name: Set the environment based on the branch
id: define_environment
run: |
if [ "${{ github.ref }}" = "refs/heads/develop" ]; then
echo "env_name=dev" >> $GITHUB_OUTPUT
fi
- name: Print the environment
run: echo "The environment is ${{ steps.define_environment.outputs.env_name }}"

outputs:
env_name: ${{ steps.define_environment.outputs.env_name }}

deploy:

name: Deploy to ${{ needs.define-environment.outputs.env_name }} 🚀
runs-on: ubuntu-latest
if: ${{ needs.define-environment.outputs.env_name }}
needs: [define-environment]
environment: ${{ needs.define-environment.outputs.env_name }}
concurrency: ${{ needs.define-environment.outputs.env_name }}

steps:
- name: Checkout
uses: actions/checkout@v4
with:
lfs: "true"
submodules: "false"

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.DEPLOYMENT_ROLE_ARN }}
role-session-name: "veda-backend-github-${{ needs.define-environment.outputs.env_name }}-deployment"
aws-region: us-west-2

- name: Run veda-backend deployment
uses: "./.github/actions/cdk-deploy"
with:
env_aws_secret_name: ${{ vars.ENV_AWS_SECRET_NAME }}
143 changes: 0 additions & 143 deletions .github/workflows/develop.yml

This file was deleted.

144 changes: 0 additions & 144 deletions .github/workflows/main.yml

This file was deleted.

11 changes: 6 additions & 5 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,17 @@ jobs:
- name: Install reqs for ingest api
run: python -m pip install -r ingest_api/runtime/requirements_dev.txt

- name: Install reqs for stac api
run: python -m pip install stac_api/runtime/

- name: Install veda auth for ingest api
run: python -m pip install common/auth

- name: Ingest unit tests
run: NO_PYDANTIC_SSM_SETTINGS=1 python -m pytest ingest_api/runtime/tests/ -vv -s

# - name: Stac-api transactions unit tests
# run: python -m pytest stac_api/runtime/tests/ -vv -s
- name: Stac-api transactions unit tests
run: python -m pytest stac_api/runtime/tests/ --asyncio-mode=auto -vv -s

- name: Stop services
run: docker compose stop
Expand Down Expand Up @@ -133,9 +136,7 @@ jobs:

- name: Get environment configuration for target branch
run: |
if [ "${{ github.base_ref }}" == "main" ]; then
./scripts/get-env.sh "veda-backend-uah-staging-env"
elif [ "${{ github.base_ref }}" == "develop" ]; then
if [ "${{ github.base_ref }}" == "develop" ]; then
./scripts/get-env.sh "veda-backend-uah-dev-env"
else
echo "No environment associated with ${GITHUB_REF##*/} branch. Test changes against dev stack"
Expand Down
Loading