Questions tagged [aws-secrets-manager]

4 questions
13
votes
2 answers

How to set a binary secret value from the CLI for AWS Secrets Manager

How do I set a binary value on a secret in AWS Secrets Manager using the CLI? The docs say: --secret-binary (blob) (Optional) Specifies binary data that you want to encrypt and store in the new version of the secret. To use this parameter in the…
Rich
  • 704
  • 14
  • 30
2
votes
1 answer

"access to kms is not allowed" error returned when trying to fetch secret from AWS Secrets Manager

An IAM user in our aws account is trying to fetch a particular secret from Secrets Manager via aws cli but they cannot do that although they should have required permissions: aws secretsmanager get-secret-value --secret-id "config/my/secret" This…
2
votes
2 answers

Create a role to read from AWS Secrets Manager

I use AWS Secrets Manager to store passwords which I need to read from services launched in my EC2 instances. In order to do that one solution that I thought about where creating a role which can access to Secrets Manager and attach it to instances…
1
vote
1 answer

How to retrieve binary file from aws secrets manager using aws cli

After uploading a binary secret using something like aws secretsmanager create-secret --name my-file-secret --secret-binary fileb://mysecret.file I'm having trouble retrieving the file using the CLI. How can I do this ?
maximede
  • 121
  • 1
  • 5