Skip to content

Commit

Permalink
fix: utility scripts - add db snapshot identifier when calling descri…
Browse files Browse the repository at this point in the history
…be-db-cluster-snapshots
  • Loading branch information
RossMurr4y authored Jun 5, 2024
1 parent 05caf97 commit 0803e12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion execution/utility.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2483,7 +2483,7 @@ function check_rds_snapshot_username() {
info "Checking snapshot username matches expected username"

if [[ "${db_type}" == "cluster" ]]; then
snapshot_username="$( aws --region ${region} rds describe-db-cluster-snapshots --include-shared --include-public --db-cluster-snapshot-identifier --output text --query 'DBClusterSnapshots[0].MasterUsername || ``' || return $? )"
snapshot_username="$( aws --region ${region} rds describe-db-cluster-snapshots --include-shared --include-public --db-cluster-snapshot-identifier ${db_snapshot_identifier} --output text --query 'DBClusterSnapshots[0].MasterUsername || ``' || return $? )"
else
snapshot_username="$(aws --region ${region} rds describe-db-snapshots --include-shared --include-public --db-snapshot-identifier ${db_snapshot_identifier} --output text --query 'DBSnapshots[0].MasterUsername || ``' || return $? )"
fi
Expand Down

0 comments on commit 0803e12

Please sign in to comment.