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:
parent
b6ed78ae10
commit
821ea9af67
@ -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.
|
||||
|
@ -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'])",
|
||||
|
Loading…
Reference in New Issue
Block a user