I have a shell script that contains this command:
SNAPSHOT_ID=$(bash <<-EOF
aws rds create-db-snapshot
--db-instance-identifier $RDS_INSTANCE_ID
--db-snapshot-identifier $RDS_INSTANCE_ID-manual-$NOW_DATE
--query 'DBSnapshot.[DBSnapshotIdentifier]' --output text
EOF
)
But I'm receiving this error:
line 191: unexpected EOF while looking for matching `)'
How can I fix this?