Skip to content

Commit

Permalink
Add CDK test infrastructure
Browse files Browse the repository at this point in the history
Delete CFN template-based test infrastructure

Update docs
  • Loading branch information
kukushking committed May 20, 2021
1 parent b13fcd8 commit add0c61
Show file tree
Hide file tree
Showing 26 changed files with 819 additions and 931 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/static-checking.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -U -r requirements-dev.txt
- name: CloudFormation Lint - Base
run: cfn-lint -t cloudformation/base.yaml
- name: CloudFormation Lint - Databases
run: cfn-lint -t cloudformation/databases.yaml
- name: mypy check
run: mypy awswrangler
- name: Flake8 Lint
Expand Down
36 changes: 26 additions & 10 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,21 +137,29 @@ or

``pip install -r requirements-dev.txt``

* [OPTIONAL] Set AWS_DEFAULT_REGION to define the region the Data Lake Test envrioment will deploy into. You may want to choose a region which you don't currently use:
* Go to the ``test_infra`` directory

``cd test_infra``

* Install CDK dependencies:

``pip install -r requirements.txt``

* [OPTIONAL] Set AWS_DEFAULT_REGION to define the region the Data Lake Test environment will deploy into. You may want to choose a region which you don't currently use:

``export AWS_DEFAULT_REGION=ap-northeast-1``

* Go to the ``cloudformation`` directory
* Go to the ``scripts`` directory

``cd cloudformation``
``cd scripts``

* Deploy the Cloudformation template `base.yaml`

``./deploy-base.sh``

* Return to the project root directory

``cd ..``
``cd ../../``

* Run the validation script:

Expand All @@ -167,7 +175,7 @@ or

* [OPTIONAL] To remove the base test environment cloud formation stack post testing:

``./cloudformation/delete-base.sh``
``./test_infra/scripts/delete-base.sh``

### Full test environment

Expand All @@ -186,13 +194,21 @@ or

``pip install -r requirements-dev.txt``

* Go to the ``test_infra`` directory

``cd test_infra``

* Install CDK dependencies:

``pip install -r requirements.txt``

* [OPTIONAL] Set AWS_DEFAULT_REGION to define the region the Full Test envrioment will deploy into. You may want to choose a region which you don't currently use:

``export AWS_DEFAULT_REGION=ap-northeast-1``

* Go to the ``cloudformation`` directory
* Go to the ``scripts`` directory

``cd cloudformation``
``cd scripts``

* Deploy the Cloudformation templates `base.yaml` and `databases.yaml`. This step could take about 15 minutes to deploy.

Expand All @@ -212,7 +228,7 @@ or

* Return to the project root directory

``cd ..``
``cd ../../``

* [OPTIONAL] If you intend to run all test, you also need to make sure that you have Amazon QuickSight activated and your AWS user must be register on that.

Expand All @@ -234,9 +250,9 @@ or

* [OPTIONAL] To remove the base test environment cloud formation stack post testing:

``./cloudformation/delete-base.sh``
``./test_infra/scripts/delete-base.sh``

``./cloudformation/delete-databases.sh``
``./test_infra/scripts/delete-databases.sh``

## Recommended Visual Studio Code Recommended setting

Expand Down
284 changes: 0 additions & 284 deletions cloudformation/base.yaml

This file was deleted.

Loading

0 comments on commit add0c61

Please sign in to comment.