Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions integration_tests/cdk/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
cdk.context.json
33 changes: 14 additions & 19 deletions integration_tests/cdk/README.md
Original file line number Diff line number Diff line change
@@ -1,55 +1,50 @@

# Deployment CDK code for eoapi-cdk deployment tests

This is a wrapper CDK code that is used to test a deployment of the `eoapi-cdk` constructs.

## Requirements

- python
- [uv](https://docs.astral.sh/uv/getting-started/installation/)
- docker
- node
- AWS credentials environment variables configured to point to an account.

## Installation

Install python dependencies with
From the top level of this repository, install **eoapi-cdk**:

```
python -m venv .venv
```sh
npm run install:all
npm run build
npm run package
uv sync --group deploy
uv pip install dist/python/*.gz
source .venv/bin/activate
python -m pip install -r requirements.txt
```

Install the latest `eoapi-cdk` either from PyPI:

```
pip install eoapi-cdk
```

Or alternatively, compile and package from the root of this repository to get the python version of the constructs locally.
Then, go to the integration deploy directory:

Also install node dependencies with

```
```sh
cd integration_tests/cdk
npm install
```

Verify that the `cdk` CLI is available. Since `aws-cdk` is installed as a local dependency, you can use the `npx` node package runner tool, that comes with `npm`.

```
```sh
npx cdk --version
```

## Deployment

First, synthesize the app

```
```sh
npx cdk synth --all
```

Then, deploy

```
```sh
npx cdk deploy --all --require-approval never
```
21 changes: 10 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading