This repo servers as an entry-point containing documentation and IAM policies required to prepare Codepipeline, ECR registry with custom Haproxy image for NLB proxy automated configuration.
-
AWS accounts created with administrative role
-
git and ssh clients on your laptop/workstation
-
Access to BMW Bitbucket repository:
git clone https://160.48.66.47:7999/cloudhubmod/bmw-tf-nlb-proxy.git
(alternatively use web browser to download repo from BitBucket site)
-
Edit template or put own task definition for Fargate service in
/task-definitions/service.json
-
Currently HAproxy image is available with configuration for AWS Fargate
-
There is known limitation of ECS service, which can expose one port per service at ECS cluster (Fargate)
- Create CodeCommit repository and CodeBuild project to store and build proxy image .
- use CloudFormation template CodeCommit_Repository.yaml from
/cfn/
folder
- Upload Dockerfile and haproxy.cfg and trigger docker image build.
- use can you templates from the main folder
- Create CodePipeline which use invoke Terraform scripts to build containers with custom image.
- use CloudFormation template CodePipeline_HAproxy.yaml from
/cfn/
folder