rancher / terraform-aws-rke2

Terraform module to manage an RKE2 node from AWS
GNU General Public License v3.0
1 stars 4 forks source link

terraform apply erro #139

Closed ddias00 closed 4 months ago

ddias00 commented 6 months ago

image

matttrach commented 6 months ago

It looks like you are attempting to use and image that requires a subscription. There are a few of those in the server types, most are free to subscribe (I think the CIS image is an exception), I would try following that link and subscribing to the image then try running it again.

matttrach commented 6 months ago

The main idea of setting images in the server/image types is so that users are on a very similar image than what we test on. This avoids some confusion and helps us reproduce errors.

matttrach commented 6 months ago

Not all images we test on are free, and some require subscription even though they are free. Unfortunately, there is no automated way that I have found to subscribe to AWS marketplace products, it is a one time setup that you have to do manually in the browser.

matttrach commented 6 months ago

here is a link to the documentation for the subscription: https://docs.aws.amazon.com/m2/latest/userguide/mf-runtime-setup-ami.html

Here is the link to subscribe to the images:

From all that I can tell the other images don't require subscription.

matttrach commented 6 months ago

@ddias00 please let me know if this helped or if there is any way I can further assist

matttrach commented 5 months ago

OMG, I am so sorry!! I found the bug you are describing and I am working on a resolution.

It appears that in some regions the ubuntu 22 image search is pulling up a random other software. To prevent this I am updating the search filters on all the images, getting them approved by out QA team, and adding a step in the pre-release workflow to validate that the images being pulled are the appropriate ones.

It seems like if the search query is not valid for some reason AWS will ignore filters and return all software. I am not sure how this query which has been working is suddenly not valid, but I am going to refine it further and add tests to ensure that I am aware when things break.

@ddias00 I am so sorry! I will have a resolution to this by the end of the week. Thank you so much for your time, I understand now that my previous responses must have been very frustrating. I will work to make sure it doesn't happen again.

matttrach commented 5 months ago

Here is the fix: https://github.com/rancher/terraform-aws-server/pull/57

matttrach commented 5 months ago

this is resolved in v0.1.22