Using Console
Using CLI
my-secret
with the name of the secret you want to create, and my-secret-value
with the value of the secret. You can also use the --secret-file
option to specify a file containing the secret value.
aws secretsmanager get-secret-value
command to retrieve the secret value, so the IAM policy should include the secretsmanager:GetSecretValue
action for the relevant resource.
Using Python