eoapi-cdk 6.0.2 → 7.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/.github/pull_request_template.md +2 -0
  2. package/.github/workflows/build.yaml +3 -3
  3. package/.github/workflows/{test.yaml → build_and_release.yaml} +1 -1
  4. package/.github/workflows/deploy.yaml +75 -0
  5. package/.github/workflows/distribute.yaml +2 -1
  6. package/.jsii +91 -78
  7. package/CHANGELOG.md +57 -0
  8. package/README.md +3 -0
  9. package/integration_tests/cdk/README.md +55 -0
  10. package/integration_tests/cdk/app.py +17 -0
  11. package/integration_tests/cdk/cdk.json +32 -0
  12. package/integration_tests/cdk/config.py +58 -0
  13. package/integration_tests/cdk/eoapi_template/__init__.py +0 -0
  14. package/integration_tests/cdk/eoapi_template/pgStacInfra.py +71 -0
  15. package/integration_tests/cdk/eoapi_template/vpc.py +49 -0
  16. package/integration_tests/cdk/package-lock.json +42 -0
  17. package/integration_tests/cdk/package.json +8 -0
  18. package/integration_tests/cdk/requirements.txt +7 -0
  19. package/lib/bastion-host/index.js +1 -1
  20. package/lib/database/bootstrapper_runtime/handler.py +7 -1
  21. package/lib/database/index.d.ts +1 -1
  22. package/lib/database/index.js +6 -7
  23. package/lib/ingestor-api/index.d.ts +2 -2
  24. package/lib/ingestor-api/index.js +11 -13
  25. package/lib/ingestor-api/runtime/dev_requirements.txt +1 -1
  26. package/lib/ingestor-api/runtime/src/loader.py +1 -0
  27. package/lib/ingestor-api/runtime/src/services.py +1 -1
  28. package/lib/stac-api/index.d.ts +1 -1
  29. package/lib/stac-api/index.js +5 -6
  30. package/lib/stac-api/runtime/src/config.py +1 -0
  31. package/lib/stac-browser/index.d.ts +6 -1
  32. package/lib/stac-browser/index.js +19 -10
  33. package/lib/tipg-api/index.d.ts +1 -1
  34. package/lib/tipg-api/index.js +5 -6
  35. package/lib/titiler-pgstac-api/index.d.ts +1 -1
  36. package/lib/titiler-pgstac-api/index.js +5 -6
  37. package/package.json +1 -1
  38. package/tox.ini +2 -2
  39. package/tsconfig.tsbuildinfo +6 -6
@@ -0,0 +1,2 @@
1
+ ## :warning: Checklist if your PR is changing anything else than documentation
2
+ - [ ] The manual deployment workflow ran successfully
@@ -12,7 +12,7 @@ on:
12
12
  required: false
13
13
  DS_RELEASE_BOT_PRIVATE_KEY:
14
14
  required: false
15
-
15
+
16
16
  jobs:
17
17
  build_and_package:
18
18
  name: Build and package
@@ -22,7 +22,7 @@ jobs:
22
22
 
23
23
  - uses: actions/setup-node@v3
24
24
  with:
25
- node-version: 16
25
+ node-version: 18
26
26
  cache: "npm"
27
27
 
28
28
  - name: Install Dependencies
@@ -66,7 +66,7 @@ jobs:
66
66
  private_key: ${{ secrets.DS_RELEASE_BOT_PRIVATE_KEY }}
67
67
 
68
68
  - name: Maybe Release 🚀
69
- if: ${{ inputs.release }}
69
+ if: "${{ inputs.release }}"
70
70
  run: |
71
71
  npm run semantic-release
72
72
  env:
@@ -1,4 +1,4 @@
1
- name: Test & Build
1
+ name: Build & try to release
2
2
 
3
3
  on:
4
4
  push:
@@ -0,0 +1,75 @@
1
+ name: Deployment
2
+
3
+ on:
4
+ workflow_dispatch:
5
+
6
+ jobs:
7
+ build_package_and_deploy:
8
+ name: Build, package and deploy
9
+ runs-on: ubuntu-latest
10
+ timeout-minutes: 60
11
+ env:
12
+ AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION_DEPLOY }}
13
+ AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID_DEPLOY }}
14
+ AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY_DEPLOY }}
15
+ AWS_DEFAULT_ACCOUNT: ${{ secrets.AWS_ACCOUNT_ID }}
16
+ steps:
17
+ - uses: actions/checkout@v3
18
+
19
+ - uses: actions/setup-node@v3
20
+ with:
21
+ node-version: 18
22
+ cache: "npm"
23
+
24
+ - name: Install Dependencies
25
+ run: npm ci
26
+
27
+ - name: Compile project
28
+ run: npm run build
29
+
30
+ - name: Generate distribution packages
31
+ run: npm run package
32
+
33
+
34
+ - name: Install deployment environment
35
+ id: install_deploy_env
36
+ run: |
37
+ # install deployment environment with eoapi-cdk from build
38
+ python -m venv .deployment_venv
39
+ source .deployment_venv/bin/activate
40
+ pip install dist/python/*.gz
41
+ cd integration_tests/cdk
42
+ pip install -r requirements.txt
43
+ npm install
44
+ deactivate
45
+ cd -
46
+
47
+
48
+ - name: Deploy test stack
49
+ id: deploy_step
50
+ run: |
51
+ source .deployment_venv/bin/activate
52
+
53
+ # synthesize the stack
54
+ cd integration_tests/cdk
55
+ npx cdk synth --debug --all --require-approval never
56
+
57
+ # deploy the stack
58
+ npx cdk deploy --ci --all --require-approval never
59
+ deactivate
60
+ cd -
61
+
62
+ - name: Tear down any infrastructure
63
+ if: always()
64
+ run: |
65
+ cd integration_tests/cdk
66
+ # run this only if we find a 'cdk.out' directory, which means there might be things to tear down
67
+ if [ -d "cdk.out" ]; then
68
+ cd -
69
+ source .deployment_venv/bin/activate
70
+ cd integration_tests/cdk
71
+ # see https://github.com/aws/aws-cdk/issues/24946
72
+ # this didn't work : rm -f cdk.out/synth.lock
73
+ # so we just duplicate the cdk output to cdk-destroy.out
74
+ npx cdk destroy --output cdk-destroy.out --ci --all --force
75
+ fi
@@ -13,11 +13,12 @@ jobs:
13
13
  runs-on: ubuntu-latest
14
14
  needs: package
15
15
  steps:
16
+
16
17
  - uses: actions/download-artifact@v3
17
18
  with:
18
19
  name: python
19
20
  path: dist
20
-
21
+
21
22
  - run: pip install twine
22
23
 
23
24
  - run: twine upload dist/*