Questions tagged [aws-secrets-manager]

5 questions
9
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
  • 626
  • 11
  • 28
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

"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…
0
votes
0 answers

Does the AWS SDK for Java support credentials injected as environment variables?

I would like to get JMX metrics from an ECS instance. I understand that I need to provide AWS SDK with credentials to report metrics from an ECS instance. However, the documentation mentions that I need an AWS credentials file for this. Does the AWS…
sbrattla
  • 1,456
  • 3
  • 26
  • 48
0
votes
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
  • 101
  • 2