1
0
mirror of synced 2024-11-28 15:56:01 +03:00

fix CentOS 7 AMI sorting constrain

`centos` is only username for CentOS Linux 7
Reference: https://centos.org/download/aws-images/
This commit is contained in:
Scottpedia 2023-07-21 17:02:18 +08:00
parent b6ed78ae10
commit 821ea9af67
2 changed files with 2 additions and 2 deletions

View File

@ -55,7 +55,7 @@ List of default usernames:
| --- | --- |
| Ubuntu | `ubuntu` |
| Debian | `admin` |
| CentOS | `centos` |
| CentOS (`CentOS Linux 7`) | `centos` |
| Amazon Linux 2 | `ec2-user` |
This template generates a key pair for you during deployment, and the private key will be available as text under the **Outputs** tab after the stack is successfully created.

View File

@ -374,7 +374,7 @@
" 'Debian10': 'debian-10-amd64-*',",
" 'Debian11': 'debian-11-amd64-*',",
" 'Debian12': 'debian-12-amd64-*',",
" 'CentOS7': 'CentOS 7.9.2009 x86_64',",
" 'CentOS7': 'CentOS Linux 7 x86_64 - *',",
" 'AmazonLinux2': 'amzn2-ami-hvm-*.*-x86_64-gp2',",
" }[distribution]",
" response = ec2.describe_images(Filters=[{'Name':'name', 'Values':[AMIName]}], Owners=['099720109477', '136693071363', '125523088429', 'amazon'])",