Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ clusterName="cluster-$RANDOM"
atlas streams instances create "${instanceName}" --projectId "${projectId}" --region VIRGINIA_USA --provider ${cloudProvider}
echo -e "Created StreamInstance \"${instanceName}\""

atlas clusters create "${clusterName}" --projectId "${projectId}" --backup --provider AWS --region US_EAST_1 --members 3 --tier M10 --mdbVersion 6.0 --diskSizeGB 10 --output=json
atlas clusters create "${clusterName}" --projectId "${projectId}" --backup --provider AWS --region US_EAST_1 --members 3 --tier M10 --diskSizeGB 10 --output=json
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you also check if any other scripts have this?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A couple more have mdbVersion but none with 6.0. Should look into removing those as well.

atlas clusters watch "${clusterName}" --projectId "${projectId}"
echo -e "Created Cluster \"${clusterName}\""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ function usage {
}

projectId=$(jq -r '.ProjectId' ./inputs/inputs_1_create.json)

clusterName=$(jq -r '.ClusterName' ./inputs/inputs_1_create.json)
instanceName=$(jq -r '.InstanceName' ./inputs/inputs_1_create.json)

if atlas cluster delete "${clusterName}" --projectId "${projectId}" --force; then
echo "deleting cluster with name ${clusterName}"
Expand All @@ -25,6 +25,13 @@ if [ "$status" -eq 0 ]; then
echo "Cluster '${clusterName}' has been successfully watched until deletion."
fi

#delete stream instance
if atlas streams instances delete "${instanceName}" --projectId "${projectId}" --force; then
echo "deleting stream instance with name ${instanceName}"
else
echo "failed to delete the stream instance with name ${instanceName}"
fi

#delete project
if atlas projects delete "$projectId" --force; then
echo "$projectId project deletion OK"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"ConnectionName": "ConnectionNameCluster",
"Type": "Cluster",
"DbRoleToExecute": {
"Role": "readWrite",
"Role": "readWriteAnyDatabase",
"Type": "BUILT_IN"
}
}
Loading