Skip to content

Commit 703aa4a

Browse files
author
Himani Anil Deshpande
committed
[AD] Increasing the attempt and sleep time when we create AD Domain
* using bigger instance
1 parent 123590a commit 703aa4a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cloudformation/ad/ad-integration.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ Resources:
416416
IamInstanceProfile:
417417
Ref: JoinProfile
418418
ImageId: !Ref AdminNodeAmiId
419-
InstanceType: t3.micro
419+
InstanceType: t3.xlarge
420420
KeyName: !Ref Keypair
421421
LaunchTemplate:
422422
LaunchTemplateId: !Ref 'DisableImdsv1LaunchTemplate'
@@ -451,14 +451,14 @@ Resources:
451451
ADMIN_PW="${AdminPassword}"
452452
453453
attempt=0
454-
max_attempts=5
454+
max_attempts=8
455455
until [ $attempt -ge $max_attempts ]; do
456456
attempt=$((attempt+1))
457457
echo "[DEBUG] Checking domain name resolution for ${DirectoryDomain} ..."
458458
dig ${DirectoryDomain}
459459
echo "Joining domain (attempt $attempt/$max_attempts) ..."
460460
echo "$ADMIN_PW" | sudo realm join -U "${Admin}" "${DirectoryDomain}" --verbose && echo "Domain joined" && break
461-
sleep 10
461+
sleep 12
462462
done
463463
464464
sleep 10

0 commit comments

Comments
 (0)