Skip to content
This repository was archived by the owner on Jul 16, 2024. It is now read-only.

Commit 61cf258

Browse files
vgkowskilmouhibAutomation
authored
feat: cdk best practices (#345)
* refactor: changes to IAM policies * refactor: adding the nag suppression * refactor: adding the nag suppression for emr on eks construct * refactor: moved the cdk-nag to unit test and added suppressions * refactor: introduce lambda boto3 layer * refactor: refactor requirements.txt to remove boto3 reference * refactor: fixed IAM policy to allow createlogstream and fix EKS to have logs enabled * fix: updated suppression for cdk-nag test with new cdk-nag finding upon cdk version upgrade * fix: test build with cdk-nag active * update the cdk-nag-github-action * fix: test build with cdk-nag active * add AraBucket * fix: issue when merged with boto3 lambda layer * fix: issue with emr-eks autoscaler IAM scoping * fix: issue with emr managed endpoint not deploying correctly * fix: added props for notebook-managed-endpoint.ts, added newer version of EMR and * fix: issue with how duplicate managed endpoint are handled * fixing issues * fix: update the requirements.txt for lambda layer * doc: updates in emr-eks-cluster.ts and notebook-platform.ts * fix: add the option to create or not the default nodegroups * fixing issues * refactor cdk * fix: modified data-lake-exporter.ts to pass e2e testing and modified notebook-platform.ts to use Singleton-Key construct * add doc * fix: delete the custom provider implementation and add on contributor to include Role with cloudwatch log permissions to provider when it is created. See synchronous-athena-query.ts for example. * fix: refactored synchronous-athena-query.ts * refactor: modify the encryption mode for data lake storage to KMS instead of KMS_MANAGED * refactor: grant lambda role access to stack default key * fix: changes to cdk-nag to take into account the use of L2 CDK Provider and not the L3 one * e2e test * fix: changes to have cdk-nag run with the unit test, move cdk-nag folder under unit test one * fix: change method in notebook-platform-helpers.ts for SecretValue not to use deprecated plainText. L222 * chore: self mutation * fix: remove the deprecated python runtime from pre-bundled-function.ts * fix: comment the cdk-nag test until we merge with the PR of flyway fix * fix image for cdk nag test * fix node version in cdk-nag workflow Co-authored-by: Lotfi Mouhib <[email protected]> Co-authored-by: lmouhib <[email protected]> Co-authored-by: Automation <[email protected]>
1 parent 3c46faa commit 61cf258

File tree

132 files changed

+12120
-4629
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

132 files changed

+12120
-4629
lines changed

.github/workflows/test-cdk-nag.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: NAG
2+
on:
3+
pull_request: {}
4+
workflow_dispatch: {}
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout
10+
uses: actions/checkout@v2
11+
with:
12+
ref: ${{ github.event.pull_request.head.ref }}
13+
repository: ${{ github.event.pull_request.head.repo.full_name }}
14+
- name: Setup Node 14
15+
uses: actions/setup-node@v2
16+
with:
17+
node-version: '14'
18+
- name: Setup Java 11
19+
uses: actions/setup-java@v2
20+
with:
21+
distribution: 'zulu' # OpenJDK
22+
java-version: '11'
23+
- name: Install dependencies
24+
run: cd core && yarn install --check-files --frozen-lockfile
25+
- name: Build
26+
run: cd core && npx projen build
27+
container:
28+
image: jsii/superchain:1-buster-slim-node14

0 commit comments

Comments
 (0)