Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ross-humphrey/8ccaeb597f5a126ab1c844f23310cf6d to your computer and use it in GitHub Desktop.
Save ross-humphrey/8ccaeb597f5a126ab1c844f23310cf6d to your computer and use it in GitHub Desktop.
Some commands to create secrets in secrets manager
#RDS Secret Creation
aws secretsmanager create-secret --name "name-of-secret" --description "description-of-secret" --secret-string "{\"username\":\"db-username\",\"password\":\"db-password\",\"engine\":\"db-engine\",\"host\":\"db-host\",\"port\":db-port-number,\"dbClusterIdentifier\":\"db-cluster-id\"}"
# Generic Secrets Creation
aws secretsmanager create-secret --name "name-of-secret" --description "description-of-secret" --secret-string "{\"username\":\"username”\",\"password\":\"password\"}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment