I started to build an App using the serverless services of AWS and I am now on the point where I want to put it all into AWS CDK. I also want to create a CICD pipeline using CodePipeline to automatically deploy the infrastructure by changes.
To use the API gateway interfaces, I generated the SDK for Javascript from the AWS console, and included it into the website folder manually.
Is it possible to generate the SDK and include it in the project or maybe some random bucket automatically with CDK?
Are there some best practices regarding the provisioning of such a Infrastructure in an automated way using a CICD Pipeline?
Based on the documentation, you can generate the SDK two ways. Through the AWS console or using AWS CLI (Reference: https://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-generate-sdk.html)
You could write a script that generates the SDK using AWS CLI and upload it to the website folder or bucket.
This is a very general question. This article talks about Best practices using CDK (https://aws.amazon.com/blogs/devops/best-practices-for-developing-cloud-applications-with-aws-cdk/).
aws-samples Github repo is also useful and includes samples like this one: https://github.com/aws-samples/aws-serverless-app-sam-cdk