Skip to content

Commit b60dd72

Browse files
authored
Merge pull request #1283 from bradleyayers/patch-1
Allow specifiyng Iops for gp3
2 parents c0dcb9a + 19c8ab1 commit b60dd72

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

templates/aws-stack.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -731,10 +731,11 @@ Conditions:
731731
IsRootVolumeIsGp3:
732732
!Equals [ !Ref RootVolumeType, "gp3" ]
733733

734-
IsRootVolumeIsIo1OrIo2:
734+
IsRootVolumeIsIo1OrIo2OrGp3:
735735
!Or
736736
- !Equals [ !Ref RootVolumeType, "io1" ]
737737
- !Equals [ !Ref RootVolumeType, "io2" ]
738+
- !Equals [ !Ref RootVolumeType, "gp3" ]
738739

739740
Mappings:
740741
ECRManagedPolicy:
@@ -1165,7 +1166,7 @@ Resources:
11651166
VolumeType: !Ref RootVolumeType
11661167
Encrypted: !Ref RootVolumeEncrypted
11671168
Throughput: !If [ IsRootVolumeIsGp3, !Ref RootVolumeThroughput, !Ref "AWS::NoValue" ]
1168-
Iops: !If [ IsRootVolumeIsIo1OrIo2, !Ref RootVolumeIops, !Ref "AWS::NoValue" ]
1169+
Iops: !If [ IsRootVolumeIsIo1OrIo2OrGp3, !Ref RootVolumeIops, !Ref "AWS::NoValue" ]
11691170
TagSpecifications:
11701171
- ResourceType: instance
11711172
Tags:

0 commit comments

Comments
 (0)