Skip to content

Commit 7cc185d

Browse files
authored
Merge pull request #65600 from mburke5678/winc-replace-aws-image
Replace AWS image used to create Windows Machines in AWS
2 parents f474d54 + f982a7d commit 7cc185d

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

windows_containers/creating_windows_machinesets/creating-windows-machineset-aws.adoc

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,27 @@ You can create a Windows `MachineSet` object to serve a specific purpose in your
1414
* You installed the Windows Machine Config Operator (WMCO) using Operator Lifecycle Manager (OLM).
1515
* You are using a supported Windows Server as the operating system image.
1616
+
17-
Use the following `aws` command to query valid AMI images:
17+
Use one of the the following `aws` commands, as appropriate for your Windows Server release, to query valid AMI images:
18+
+
19+
.Example Windows Server 2022 command
20+
+
21+
[source,terminal]
22+
----
23+
$ aws ec2 describe-images --region <aws_region_name> --filters "Name=name,Values=Windows_Server-2022*English*Core*Base*" "Name=is-public,Values=true" --query "reverse(sort_by(Images, &CreationDate))[*].{name: Name, id: ImageId}" --output table
24+
----
25+
+
26+
.Example Windows Server 2019 command
1827
+
1928
[source,terminal]
2029
----
21-
$ aws ec2 describe-images --region <aws region name> --filters "Name=name,Values=Windows_Server-2019*English*Full*Containers*" "Name=is-public,Values=true" --query "reverse(sort_by(Images, &CreationDate))[*].{name: Name, id: ImageId}" --output table
30+
$ aws ec2 describe-images --region <aws_region_name> --filters "Name=name,Values=Windows_Server-2019*English*Core*Base*" "Name=is-public,Values=true" --query "reverse(sort_by(Images, &CreationDate))[*].{name: Name, id: ImageId}" --output table
2231
----
32+
+
33+
--
34+
where:
35+
36+
<aws_region_name>:: Specifies the name of your AWS region.
37+
--
2338

2439
include::modules/machine-api-overview.adoc[leveloffset=+1]
2540
include::modules/windows-machineset-aws.adoc[leveloffset=+1]

0 commit comments

Comments
 (0)