Infrastructure project allows to create pipeline to build and push .NET Lambda Runtime Dockerfiles using CDK framework.
bootstrap.ps1 provisions resources the AWS CDK needs to perform the deployment and deploys generated CloudFormation template.
.\bootstrap.ps1 `
-PipelineAccountId "AccountId" `
-Region "AwsRegion" `
-GitHubTokenSecretName "SecretName" `
-GitHubTokenSecretKey "Key" `
-GitHubRepoOwner "GitHubOwner" `
-GitHubRepoName "GitHubRepo" `
-GitHubRepoBranch "GitHubBranch" `
-StageEcr "AccountId.dkr.ecr.us-west-2.amazonaws.com" `
-BetaEcrs "AccountId.dkr.ecr.us-west-2.amazonaws.com;AccountId.dkr.ecr.us-west-2.amazonaws.com" `
-ProdEcrs "AccountId.dkr.ecr.us-west-2.amazonaws.com;AccountId.dkr.ecr.us-west-2.amazonaws.com"- AWS Profiles used to execute
bootstrap.ps1must have administrator access. - All resources used to bootstrap the pipeline must already exist.
AccountIdis AWS AccountId used for deploying CDK App.
npx cdk bootstrap --cloudformation-execution-policies arn:aws:iam::aws:policy/AdministratorAccessbootstrap this appdotnet buildcompile this appcdk deploydeploy this stack to your default AWS account/regioncdk diffcompare deployed stack with current statecdk synthemits the synthesized CloudFormation template