autok3s icon indicating copy to clipboard operation
autok3s copied to clipboard

[Feature Request] Better Support for AWS AMI selection

Open orangedeng opened this issue 2 years ago • 3 comments

Maybe we can support AMI selection like the UI in AWS.

截屏2022-08-29 15 50 07

Better to have AMI grouped by OS provider, volume type and arch. Also shows the verified OS image first.

orangedeng avatar Aug 29 '22 07:08 orangedeng

The current AWS image interface returns limited information about the image data, so we need to think about how to display it. Some images have some missing attributes,for example: ImageOwnerAlias the following is the data structure returned by the image list interface

image

ly5156 avatar Sep 06 '22 07:09 ly5156

  1. Support for secondary filtering of results image

ly5156 avatar Sep 07 '22 07:09 ly5156

We need to redesign this page, will discuss with you in detail later

Jason-ZW avatar Sep 07 '22 08:09 Jason-ZW

aws quick start page:parameters used to load the image via js sdk

      {
      ubuntu: {
        ownerIds: [
          '099720109477'
          // '898082745236', // Deep Learning AMI
          // '652529143229' // with SQL Server
        ],
        namePrefix: ['ubuntu/images/hvm-ssd/ubuntu-']
      },
      amazonLinux: {
        ownerIds: [
          '137112412989'
          // '690405935483', // 1. .NET, Mono, PowerShell, and MATE DE pre-installed; 2. with SQL Server
          // '898082745236' // Deep Learning AMI
        ],
        namePrefix: ['amzn2-ami-kernel-']
      },
      redHat: {
        ownerIds: [
          '309956199498'
          // '199830906635' // with SQL Server
        ],
        namePrefix: ['RHEL-', 'RHEL_HA']
      },
      suseLinux: {
        ownerIds: ['013907871322'],
        namePrefix: ['suse-sles-']
      },
      debian: {
        ownerIds: ['136693071363'],
        namePrefix: ['debian-']
      }
    }

ly5156 avatar Nov 25 '22 01:11 ly5156

ui demo: aws-image-select

ly5156 avatar Nov 28 '22 01:11 ly5156

Validate in v0.7.0-rc1

Validation target

  • Filtering the selected ami in the autok3s AWS AMI selection UI can be found in the aws ami directory

Verification steps

  1. Select ap-northeast-1 for region, install the following conditional filtering, and finally select ami-0e2bf1ada70fd3f33 image
  2. Select ap-northeast-1 in the aws ami directory area region of aws, and enter ami-0e2bf1ada70fd3f33 in the input search box to finally display the ami image
  3. In the same process, Amazon Linux, Red Hat, Suse Linux and Debian are verified and passed

TangStone avatar Jan 04 '23 08:01 TangStone