This project provides a CDK stack for deploying Data Prepper AWS testing resources to a staging environment.
The cdk.json file tells the CDK Toolkit how to execute your app.
You must install CDK and Node.js first.
You must run all the following commands from the testing/aws-testing-cdk directory.
The first time you use the CDK, run:
npm install
You can run the following command to run the CDK tests.
npm run test
If you have made code changes, please run the linter to verify that your code is correctly formatted.
npm run lint
You must have an AWS account and administrator permissions to this account.
The following CDK commands all require defining context. The context variables are:
dataPrepperOrganization- The name of the GitHub organization which has thedata-prepperrepository. This allows you to create staging environments for forks. The default value isopensearch-project.
The following command will deploy all the CDK stack.
cdk deploy --all --context dataPrepperOrganization={data-prepper-organization-name}
npm run buildcompile typescript to jsnpm run watchwatch for changes and compilenpm run testperform the jest unit testscdk deploydeploy this stack to your default AWS account/regioncdk diffcompare deployed stack with current statecdk synthemits the synthesized CloudFormation template