Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
aws
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
aws
Commits
0f34d2d9
Commit
0f34d2d9
authored
Nov 07, 2024
by
Ahmad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
inikt
parent
8c2d82db
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
create.js
create.js
+2
-2
No files found.
create.js
View file @
0f34d2d9
...
@@ -109,8 +109,8 @@ async function main() {
...
@@ -109,8 +109,8 @@ async function main() {
if
(
!
exists
)
{
if
(
!
exists
)
{
console
.
log
(
`Instance
${
instanceName
}
does not exist in region
${
region
}
, creating...`
);
console
.
log
(
`Instance
${
instanceName
}
does not exist in region
${
region
}
, creating...`
);
await
createLightsailInstance
(
lightsail
,
region
,
instanceName
);
await
createLightsailInstance
(
lightsail
,
region
,
instanceName
);
console
.
log
(
`Waiting
3
0 seconds before creating the next instance...`
);
console
.
log
(
`Waiting
6
0 seconds before creating the next instance...`
);
await
sleep
(
3
0000
);
// Wait for 60 seconds to avoid hitting rate limits
await
sleep
(
6
0000
);
// Wait for 60 seconds to avoid hitting rate limits
}
else
{
}
else
{
console
.
log
(
`Instance
${
instanceName
}
already exists in region
${
region
}
, skipping creation.`
);
console
.
log
(
`Instance
${
instanceName
}
already exists in region
${
region
}
, skipping creation.`
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment