redhat-developer / mapt

Multi Architecture Provisioning Tool
Apache License 2.0
9 stars 7 forks source link

[Bug] Fixed regions are not honored #76

Closed adrianriobo closed 11 months ago

adrianriobo commented 1 year 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

It is required a logic for picking the target region from the env and pick a random Az

adrianriobo commented 11 months ago

Partially fixed by #150