Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure availability zone at runtime #926

Closed
hackdna opened this issue Mar 4, 2016 · 5 comments
Closed

Configure availability zone at runtime #926

hackdna opened this issue Mar 4, 2016 · 5 comments

Comments

@hackdna
Copy link
Member

hackdna commented Mar 4, 2016

Currently us-east-1b is hardcoded: https://github.com/parklab/refinery-platform/blob/develop/deployment/volume_cfn.py#L31

This AZ is not available in our AWS account:
screenshot 2016-03-04 12 34 56

This results in failure to create the volume stack:
screenshot 2016-03-04 12 50 22

@drj11
Copy link
Contributor

drj11 commented Mar 8, 2016

That's... entertaining. I knew that the actual availability zones are mapped to zone identifiers in a different way for each account (my us-east-1a is not your us-east-1a), but I didn't know the list of identifiers could be different.

But the documentation does indeed say that: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-availability-zones

We'll probably need to use the describe-availability-zones command: http://docs.aws.amazon.com/cli/latest/reference/ec2/describe-availability-zones.html

@hackdna
Copy link
Member Author

hackdna commented Mar 8, 2016

Should we also make this optionally user-configurable (like Cloud Launch does in advanced settings)?

@hackdna hackdna reopened this Mar 8, 2016
@drj11
Copy link
Contributor

drj11 commented Mar 8, 2016

yes probably. I don't think that is so urgent though.

@hackdna
Copy link
Member Author

hackdna commented Mar 8, 2016

I think we would need this for re-launching Refinery (given an existing EBS volume).

@drj11
Copy link
Contributor

drj11 commented Mar 8, 2016

We already take measures to make sure the EC2 instance is launched in the same availability zone as the volume. #881

@hackdna hackdna closed this as completed Mar 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants