Reputation: 917
trying to run an aws cli rds command to run a bit of sql to update a DB. Using the following:
aws rds-data execute-statement \
--resource-arn "arn:aws:rds:us-east-1:myaccountnumber:cluster:mysql-database" \
--database "myDBname" \
--sql "select * from configurations where configuration = 'mydb' and propertykey = 'environment';"
--secret-arn "arn:aws:secretsmanager:us-west-2:123456789012:secret:mysecret"
I'm struggling to work out what the secret ARN is?
I get that it's something stored in secrets manager but do not know what this is from the RDS instance.
How do i set this on the instance or is it something like the user password?
Thanks in advance
Upvotes: 7
Views: 5635