Skip to content

Commit 33a3163

Browse files
roivanovsmira
authored andcommitted
docs: update aws.md for loop
Simplify it a bit. Signed-off-by: Roman Ivanov <me@roivanov.com> Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
1 parent e02bd20 commit 33a3163

File tree

1 file changed

+1
-3
lines changed
  • website/content/v1.8/talos-guides/install/cloud-platforms

1 file changed

+1
-3
lines changed

website/content/v1.8/talos-guides/install/cloud-platforms/aws.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,7 @@ worker.yaml is valid for cloud mode
240240
#### Create the Control Plane Nodes
241241

242242
```bash
243-
CP_COUNT=1
244-
while [[ "$CP_COUNT" -lt 4 ]]; do
243+
for CP_COUNT in {1..3}; do
245244
aws ec2 run-instances \
246245
--region $REGION \
247246
--image-id $AMI \
@@ -252,7 +251,6 @@ while [[ "$CP_COUNT" -lt 4 ]]; do
252251
--security-group-ids $SECURITY_GROUP \
253252
--associate-public-ip-address \
254253
--tag-specifications "ResourceType=instance,Tags=[{Key=Name,Value=talos-aws-tutorial-cp-$CP_COUNT}]"
255-
((CP_COUNT++))
256254
done
257255
```
258256

0 commit comments

Comments
 (0)