Skip to content

Commit

Permalink
docs: update aws.md for loop
Browse files Browse the repository at this point in the history
Simplify it a bit.

Signed-off-by: Roman Ivanov <me@roivanov.com>
Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
  • Loading branch information
roivanov authored and smira committed Aug 5, 2024
1 parent e02bd20 commit 33a3163
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,7 @@ worker.yaml is valid for cloud mode
#### Create the Control Plane Nodes

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

Expand Down

0 comments on commit 33a3163

Please sign in to comment.