Skip to content

Commit c87bdda

Browse files
committed
Fix review comments
1 parent 0dfc014 commit c87bdda

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

Management-Utilities/ec2-user-data-iscsi-create-and-mount/EC2-cloud_formation.yaml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,13 @@ Metadata:
1111
- InstanceType
1212
- InstanceName
1313
- KeyName
14-
- ImageId
1514
- VpcId
1615
- SubnetId
16+
- Label:
17+
default: "AMI Configuration"
18+
Parameters:
19+
- LatestLinuxAMI
20+
- LatestWindowsAMI
1721
- Label:
1822
default: "FSxN Configuration"
1923
Parameters:
@@ -42,8 +46,6 @@ Metadata:
4246
default: "Instance Name"
4347
KeyName:
4448
default: "Key Pair Name"
45-
ImageId:
46-
default: "AMI ID"
4749
VpcId:
4850
default: "VPC ID"
4951
SubnetId:
@@ -68,6 +70,10 @@ Metadata:
6870
default: "Linux User Data Script URL"
6971
WindowsUserDataUrl:
7072
default: "Windows User Data Script URL"
73+
LatestLinuxAMI:
74+
default: "Linux AMI"
75+
LatestWindowsAMI:
76+
default: "Windows AMI"
7177

7278
Parameters:
7379
OperationSystem:
@@ -128,11 +134,11 @@ Parameters:
128134
LatestLinuxAMI:
129135
Type: 'AWS::SSM::Parameter::Value<AWS::EC2::Image::Id>'
130136
Default: '/aws/service/ami-amazon-linux-latest/al2023-ami-kernel-6.1-x86_64'
131-
Description: 'The latest Amazon Linux 2 AMI ID'
137+
Description: 'Linux AMI to use for the EC2 instance (default is the latest Amazon Linux 2023)'
132138
LatestWindowsAMI:
133139
Type: 'AWS::SSM::Parameter::Value<AWS::EC2::Image::Id>'
134140
Default: '/aws/service/ami-windows-latest/TPM-Windows_Server-2025-English-Full-Base'
135-
Description: 'The latest Windows Server AMI ID'
141+
Description: 'Windows AMI to use for the EC2 instance (default is the latest Windows Server 2025)'
136142

137143
Conditions:
138144
IsLinux: !Equals [ !Ref OperationSystem, "Linux" ]

0 commit comments

Comments
 (0)