Complete the code to create a secret in AWS Secrets Manager using AWS CLI.
aws secretsmanager create-secret --name MySecret --secret-string [1]The secret-string must be a JSON string containing the credentials, like username and password.
Complete the code to retrieve the secret value using AWS CLI.
aws secretsmanager get-secret-value --secret-id MySecret --query [1] --output textThe key to get the secret string from the response is 'SecretString'.
Fix the error in the AWS CLI command to update a secret's value.
aws secretsmanager update-secret --secret-id MySecret --secret-string [1]The secret-string must be a properly escaped JSON string with double quotes inside double quotes.
Fill both blanks to create a secret with a description and tags.
aws secretsmanager create-secret --name MySecret --secret-string [1] --description [2]
The secret-string must be a properly escaped JSON string, and the description is a plain string describing the secret.
Fill all three blanks to tag a secret with environment and project tags.
aws secretsmanager tag-resource --secret-id MySecret --tags Key=[1],Value=[2] Key=[3],Value=ProjectX
The tag keys and values must be strings. Here, the first tag key is 'Environment' with value 'Production', and the second tag key is 'Env' with value 'ProjectX'.