openshift-provision icon indicating copy to clipboard operation
openshift-provision copied to clipboard

Default AWS regions configured for inventory plugin causes issues

Open jaredhocutt opened this issue 6 years ago • 3 comments

The AWS inventory plugin configuration does not support the use of variables. Therefore, the list of regions to search must be hard-coded.

Currently, it is hard-coded to:

https://github.com/jaredhocutt/openshift-provision/blob/27786c325787acb480b3046172a3459a4a8dcc26/inventory/inventory.aws_ec2.yml#L5-L8

This should be documented in the README file.

An even better solution would be to have the op.py script read the region from the variable file and automatically modify the file for the user.

jaredhocutt avatar Nov 14 '18 23:11 jaredhocutt

Have we tried this in govcloud?

dudash avatar May 29 '19 15:05 dudash

Thanks for creating an issue for this :) I've known about this issue for a while but since most people tend to use one of those regions it hasn't caused a lot of headache, but is something I need to solve.

Your proposed solution is the best I can also think of since the inventory file doesn't support using variables and would need to be modified by something else.

Have we tried this in govcloud?

It currently has a reliance on Route53, so it doesn't work in GovCloud. Another DNS solution would need to be implemented in order to work in GovCloud. Other than that, it should work but I cannot verify until a DNS solution is implemented.

jaredhocutt avatar May 29 '19 15:05 jaredhocutt

Ask and 'ye shall receive. ;)

https://aws.amazon.com/about-aws/whats-new/2019/05/amazon-route-53-launches-private-dns-and-health-checks-in-the-aws-govcloud-us-west-region/

dudash avatar May 30 '19 15:05 dudash