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
21 changes: 13 additions & 8 deletions .github/workflows/cfn-nag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,20 @@ jobs:
npm install -g aws-cdk
cdk --version
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
python-version: 3.11
- name: Install Requirements
run: |
cd test_infra
python -m pip install --upgrade pip
python -m pip install poetry
poetry env use python
poetry env info
source $(poetry env info --path)/bin/activate
poetry install -vvv
- name: Set up cdk.json
run: |
cd test_infra
cat <<EOT >> cdk.context.json
Expand All @@ -61,12 +70,8 @@ jobs:
]
}
EOT
python -m pip install --upgrade pip
python -m pip install poetry
poetry env use python
poetry env info
source $(poetry env info --path)/bin/activate
poetry install -vvv
cat cdk.json | jq -r '.context.databases.neptune = true' | jq -r '.context.databases.oracle = true' | jq -r '.context.databases.sqlserver = true' > overwrite.cdk.json
rm cdk.json && mv overwrite.cdk.json cdk.json
- name: CDK Synth
run: |
cd test_infra
Expand Down
22 changes: 20 additions & 2 deletions test_infra/poetry.lock

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

1 change: 1 addition & 0 deletions test_infra/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ license = "Apache License 2.0"
python = ">=3.8, <4.0"
"aws-cdk-lib" = "^2.128.0"
"aws-cdk.aws-glue-alpha" = "^2.128.0a0"
"aws-cdk.aws-neptune-alpha" = "^2.128.0a0"
"aws-cdk.aws-redshift-alpha" = "^2.128.0a0"
2 changes: 1 addition & 1 deletion test_infra/stacks/databases_stack.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from aws_cdk import aws_glue_alpha as glue
from aws_cdk import aws_iam as iam
from aws_cdk import aws_kms as kms
from aws_cdk import aws_neptune as neptune
from aws_cdk import aws_neptune_alpha as neptune
from aws_cdk import aws_rds as rds
from aws_cdk import aws_redshift_alpha as redshift
from aws_cdk import aws_redshiftserverless as redshiftserverless
Expand Down