Closed adrianriobo closed 11 months ago
There is no specific parameter to set the target region for a host https://github.com/adrianriobo/qenvs/blob/7515ce8647e1c19d591a53474dc28e86813d8734/cmd/cmd/aws/host/host.go#L32
That value should be inherit from AWS_DEFAULT_REGION env variable but that is not the case when an instance without spot feature is created a default region and default az is picked: https://github.com/adrianriobo/qenvs/blob/7515ce8647e1c19d591a53474dc28e86813d8734/pkg/provider/aws/modules/environment/api.go#L96
AWS_DEFAULT_REGION
It is required a logic for picking the target region from the env and pick a random Az
Partially fixed by #150
There is no specific parameter to set the target region for a host https://github.com/adrianriobo/qenvs/blob/7515ce8647e1c19d591a53474dc28e86813d8734/cmd/cmd/aws/host/host.go#L32
That value should be inherit from
AWS_DEFAULT_REGION
env variable but that is not the case when an instance without spot feature is created a default region and default az is picked: https://github.com/adrianriobo/qenvs/blob/7515ce8647e1c19d591a53474dc28e86813d8734/pkg/provider/aws/modules/environment/api.go#L96It is required a logic for picking the target region from the env and pick a random Az