-
-
Notifications
You must be signed in to change notification settings - Fork 645
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
How do you specify region for aws fleet #759
Comments
Hey @rew1nter, so unfortunately aws does not automatically transfer the image to a region just because you requested the image in that region. The providers that currently support round robin, region distribution and automatic image transfer currently are: We didn’t have to add code for Linode or IBM since they transfer the image automatically azure is in the same boat as AWS, we need to add code the same way we did for DO to transfer the image. So for AWS, you'll need to manually transfer the image to the new region and hope you can still reference the image by name. If not, we’ll have to add code to the AWS providers function file https://github.com/pry0cc/axiom/blob/master/providers/aws-functions.sh If you want to figure out the cli commands to transfer an axiom image to the new region, I can try to integrate it. |
My knowledge of the cloud is very basic. So It'd be really great if you could add the code for AWS like DO. I appreciate your time and effort |
I've been looking into this myself, I've programmed a function that can return the get_image_id() {
region="$1"
images=$(aws ec2 describe-images --query 'Images[*]' --owners self --region $region)
name=$(echo $images| jq -r '.[].Name' | tail -n 1)
id=$(echo $image | jq -r ".[] | select(.Name==\"$name\") | .ImageId")
echo $id
} but it still isn't working correctly, I still get the following error:
I think it's because it's looking for the original |
Apparently, something like this doesn't work
axiom-fleet named -r ap-south-1,ap-south-2,ap-southeast-1
The text was updated successfully, but these errors were encountered: