Modifying machines in environments to support AWS autoscaling

dm.chapman's Avatar

dm.chapman

02 Sep, 2014 06:01 AM

Hi there

I'm currently trialing Octopus deploy in an AWS EC2 auto-scaling environment (not Elastic Beanstalk or CloudFormation). For the most part it's working well, but the fact that we use autoscaling means that the machines in a given environment will vary over time.

To support this, my project has two build steps:
1. Refresh AWS instances
2. Deploy site

The first build step in the deploy queries AWS for the current instances in the specified environment. It will create a new machine in Octopus for any new instances, and delete any machines whose AWS counterpart is no longer there.
All of that is fine, but the annoying part is that the changes to the machines in the environment during build step 1 are not reflected in build step 2 where the nuget package is deployed. That build step still attempts to deploy to the machines that were originally there. This causes the deployment to fail if one of machines no longer exists.

I'd like to use the powershell cmdlets to modify the current DeploymentResource to include the new/exclude the old machines, but there is no Modify option on $repository.Deployments

Does anyone have any other suggestions of how this can be acheived without having two separate Projects?

Thanks very much

  1. Support Staff 1 Posted by Vanessa Love on 03 Sep, 2014 02:02 AM

    Vanessa Love's Avatar

    Hi,

    Thanks for getting in touch! Unfortunately when we start a deployment, at that point the machines to deploy to are set. They cannot be modified after a deployment has been created to start.
    Placing this in it's own Project may be the only way forward for such a scenario currently.

    We do have the following UserVoice suggestion which you should vote and comment on as it may help in your scenario. Also as we will need to understand features people need, building apon this suggestion will help us to determine how to best build AWS features.
    http://octopusdeploy.uservoice.com/forums/170787-general/suggestion...

    Vanessa

  2. 2 Posted by jasonweimann on 24 Feb, 2016 07:31 PM

    jasonweimann's Avatar

    I released a long post that may be helpful yesterday.
    It covers how to add / auto deploy to your systems as they come up in an AWS Auto scaling group, and how to remove/deregister them from octopus when they go down. Once it's in place, it makes everything very simple, seamless, and automatic.

    http://unity3d.college/2016/02/23/automatic-deployment-registration-and-deregistration-with-octopus-deploy-on-aws-ec2/

    Check it out and let me know if you have any questions :)

  3. Support Staff 3 Posted by Dalmiro Grañas on 25 Feb, 2016 03:57 PM

    Dalmiro Grañas's Avatar

    FYI to anyone that runs into this thread:

    We started working on a feature for this called "Multitenancy". More info about this over here:

    Part 1: https://octopus.com/blog/rfc-multitenancy
    Part 2: https://octopus.com/blog/rfc-multitenancy-take-two

  4. Paul Stovell closed this discussion on 04 Jan, 2017 06:41 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac