Before we get started lets checkout the helper scripts used in this workshop.
Git client needs to be installed in the local machine, before running the following command. Follow this link to download and install git client
mkdir aws-ecs-anywhere-workshop-samples && cd aws-ecs-anywhere-workshop-samples
git clone https://github.com/aws-samples/aws-ecs-anywhere-workshop-samples .
Setup the environment variables required to build ECS-anywhere cluster and run workloads using the newly created cluster.
Change the name of the CLUSTER_NAME and SERVICE_NAME if desired, for running multiple tests.
export AWS_DEFAULT_REGION=us-east-1
export ROLE_NAME=ecsMithrilRole
export CLUSTER_NAME=test-ecs-anywhere
export SERVICE_NAME=test-ecs-anywhere-svc
Note: Change the value of
AWS_DEFAULT_REGIONto match the default AWS region.