aws-eb-deploy

Deploys the WAR file generated by the war command to a target Elastic Beanstalk environment. The target environment is the configured environment name.

aws-eb-delete-old-versions

Deletes the oldest application versions while keeping a specified number of latest versions.

AWS Elastic Beanstalk imposes a global 500 application version limit across all applications under the same account. When doing frequent deployments to Elastic Beanstalk such as from a CI server (such as Jenkins), it’s easy to hit this limit. Any deployments will fail with a TooManyVersionsException from the AWS API, after which you have to manually delete versions to be able to upload any new versions.

This script helps to manage this limitation by keeping the maximum number of versions for the target application to a certain threshold.

The target application is the configured application name.

options: versions-threshold - number of latest versions to keep delete-s3-archive - delete the version from S3 (enabled by default) TODO allow this to be configured from Grails config

future: global - delete oldest versions across all applications

aws-eb-stop

Alias for aws-eb-terminate-environment

aws-eb-terminate-environment

Terminates a running Elastic Beanstalk environment. The target environment is the configured environment name.