capistrano-elbas icon indicating copy to clipboard operation
capistrano-elbas copied to clipboard

add filter ami creation to only deployed instances

Open jfcampos1 opened this issue 2 years ago • 0 comments

When you have a configuration file with multiple servers if you filter servers with roles like this ones:

autoscale 'app-autoscale-group', user: 'apps', roles: [:app, :web]
autoscale 'worker-autoscale-group', user: 'apps', roles: [:worker]

If you do in deploy: cap ROLES=worker production deploy

Will create a new AMI for all autoscaling groups in the configuration.

I've added this PR to fix it :smile: , selecting ami creation to only deployed servers.

jfcampos1 avatar Dec 20 '22 21:12 jfcampos1