Setting up a code deployment pipeline using CDK and AWS CodePipeline
In this recipe, you will create a CDK project that defines a deployment pipeline and a service infrastructure stack with a simple Glue Shell job as an example. This recipe uses Python for both the Glue Shell script and the CDK script.
The pipeline will monitor the CodeCommit repository to automatically deploy both changes to the pipeline itself and the solution (the Glue job in this case).
Getting ready
For this recipe, you’ll require the AWS CLI, CDK, Python 3.8+, and Git to be installed in your system, as well as a command-line interface to invoke them. Check the Technical requirements section for indications and guidance on installing the CLI and CDK. You can install Python and Git from their respective websites (www.python.org and git-scm.com). On Windows, make sure that when you install Python, you enable the option to add it to PATH
so that it can be easily run from the command line. You can...