---
tags: ECS, Containers, AWS, Workshop
---
# ECS Workshop - CI/CD
 This workshop is aimed at software engineers and platform engineers who want to get hands-on experience with AWS CI/CD tools, and using them to build pipelines for ECS workloads.
The workshop consists of a number of lab modules, each designed to demonstrate a number of CI/CD concepts. It makes use of AWS services like AWS CodePipeline, AWS CodeCommit, AWS CodeBuild, AWS CloudFormation, and AWS CodeDeploy
## Clone the repository
Log into the Cloud9 environment and with an open Terminal window complete the following steps to setup the labs
```
cd ~/environment
git clone https://github.com/aws-samples/cicd-for-ecs-workshop-code.git
cd cicd-for-ecs-workshop-code
```
Install
```
sudo yum -y install jq gettext
```
This script defines a function that records a trail of all environment variables that are needed in the course of the workshop. This makes it easy to re-use environment variables across multiple terminal sessions in Cloud9.
```
cat <<EoF > ~/env-vars.sh
#!/bin/bash
save_var() {
if [ \$? -eq 0 ]; then
export \$1=\$2
echo export \$1=\$2 >> ~/env-vars.sh
fi
}
EoF
chmod +x ~/env-vars.sh
source ~/env-vars.sh
echo "[[ -s ~/env-vars.sh ]] && source ~/env-vars.sh" >> ~/.bash_profile
```
Enable Cloudwatch Container Insights as follows
```
aws ecs put-account-setting-default --name containerInsights --value enabled
```
To verify that Container Insights has been enabled, use:
```
aws ecs list-account-settings --effective-settings --name containerInsights
```
Continue with the workshop via the following link
https://catalog.us-east-1.prod.workshops.aws/workshops/869f7eee-d3a2-490b-bf9a-ac90a8fb2d36/en-US/3-setup/02-setup-environments