Skip to content

This docker image contains deployments tools for AWS.

License

Notifications You must be signed in to change notification settings

sourceboat/aws-deploy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.