Skip to content
This repository has been archived by the owner on Jul 30, 2019. It is now read-only.

How to specify/create a worker environment #60

Open
KidA001 opened this issue Sep 11, 2017 · 6 comments
Open

How to specify/create a worker environment #60

KidA001 opened this issue Sep 11, 2017 · 6 comments

Comments

@KidA001
Copy link

KidA001 commented Sep 11, 2017

I'd like to create a work environment. i can do this in the AWS console, but how do I specify that the environment is a worker environment in the eb.yml ?

develop-worker:
  options:
    aws:autoscaling:launchconfiguration:
      InstanceType: t2.small
  # what options specify worker?
@JeremiahChurch
Copy link

I believe the options value is tier: Worker

@KidA001
Copy link
Author

KidA001 commented Sep 11, 2017

@tongboy are there AWS docs that correspond to the values I can add into eb.yml or are there restrictions on what I can enter?

For instance, the next question I have is I want to call this environment develop-worker but have it use the rails env develop

@JeremiahChurch
Copy link

Yeah - in general most of that can be found under http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/customize-containers.html

rails env is just an environment variable - easy to keep separated from the environment name

@KidA001
Copy link
Author

KidA001 commented Sep 11, 2017

@tongboy thanks. Derp, I knew that was set by env variable 😬

This seems to be working so far, thank you.

develop-worker:
  Tier: Worker
  options:
    aws:autoscaling:launchconfiguration:
      InstanceType: t2.small

@KidA001
Copy link
Author

KidA001 commented Sep 11, 2017

@tongboy false positive, the environment deployed with that config, but it's not a worker instance.

@JeremiahChurch
Copy link

drat! I pulled it out of the eb_deployer test case - https://github.com/ThoughtWorksStudios/eb_deployer/blob/master/test/tier_setting_deploy_test.rb

I haven't personally spun up a worker tier yet to have a known good example - maybe someone else who has could chime in?

I'd expect it to be a lowercase tier - some of the AWS keys are case sensitive and others aren't (I don't know the rhyme or reason)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants