This docker image contains deployment tools for AWS.
deploy:
stage: deploy
image: sourceboat/aws-deploy:latest
variables:
DEFAULT_LAUNCH_TYPE: FARGATE
REGION: eu-central-1
PROJECT_NAME: production
CLUSTER: my-ecs-clustername
TARGET_GROUP_ARN: arn:aws:...
CONTAINER_NAME: app
CONTAINER_PORT: 8080
TIMEOUT: 20
script:
- ecs-cli configure --cluster $CLUSTER --default-launch-type $DEFAULT_LAUNCH_TYPE --region $REGION --config-name default-cluster
- ecs-cli configure default --config-name default-cluster
- ecs-cli compose --project-name $PROJECT_NAME service up --target-group-arn $TARGET_GROUP_ARN --container-name $CONTAINER_NAME --container-port $CONTAINER_PORT
Don't forget to provide $AWS_ACCESS_KEY_ID
and $AWS_SECRET_ACCESS_KEY
via GitLab CI/CD variable.
Check releases for all notable changes.
The MIT License (MIT). Please see License File for more information.