As of 2022-11-14 this project is no longer maintained. If you plan to build your project based on this code, please, make sure it contains safe dependencies and that it is up-to-date with the latest best security practices.
An example AWS service build using Jenkins pipeline.
The service is packaged as a Docker image and published to AWS ECR repository. See service
folder.
The service is deployed to AWS ECS cluster as a Fargate task via AWS CDK. See cdk
folder.
- Create a new ECR repository
- You need to generate a credential pair for API access that needs to be used for Jenkins deployment
AWS_REGION
, e.g.eu-west-1
ECR_REPOSITORY
, e.g.111111111111.dkr.ecr.eu-west-1.amazonaws.com
jenkins-aws-secret-key-id
for AWS Secret Key IDjenkins-aws-secret-access-key
for AWS Secret Access Key
- Name:
AWS Service Build
- Multibranch pipeline
- Jenkinsfile:
Jenkinsfile
- Name:
AWS Service Deployment
- Pipeline
- Jenkinsfile:
deployment/Jenkinsfile
Apache License, Version 2.0. See LICENSE.txt for more details.
Copyright 2020 New Town Data Ltd, https://www.newtowndata.com/