Skip to content

Latest commit

 

History

History
53 lines (39 loc) · 2.29 KB

README.md

File metadata and controls

53 lines (39 loc) · 2.29 KB

sourceboat/aws-deploy

Docker Build Status Release Docker Pulls Image Size MicroBadger Layers

This docker image contains deployment tools for AWS.

What's included?

Usage

Simple ECS Deployment with ELB via GitLab CI

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.

Changelog

Check releases for all notable changes.

Credits

License

The MIT License (MIT). Please see License File for more information.