Skip to content

[AWS] Fail to search the Windows Server AMI #224

@pepesan

Description

@pepesan

Issue: I've tried to use the last version of the rancher quickstart with aws support.
And, almost my region, eu-west-3, the script can´t find an AMI with the name "Windows_Server-2019-English-Full-ContainersLatest-*".
Output:

╷
│ Error: Your query returned no results. Please change your search criteria and try again.
│ 
│   with data.aws_ami.windows,
│   on data.tf line 32, in data "aws_ami" "windows":
│   32: data "aws_ami" "windows" {
│ 
╵

It seams that kind of AMI isn't more supported in AWS: https://aws.amazon.com/marketplace/pp/prodview-iehgssex6veoi
The text says "This version has been removed and is no longer available to new customers."
So we need to find another AMI to use in our deployments.
As a workaround we can substitute the search, for non Windows deployments, in the rancher/aws/data.tf into the aws_ami windows datasource search change:

    values = ["Windows_Server-2019-English-Full-ContainersLatest-*"]

for

    values = ["Windows_Server-2019-*"]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions