Using AWS Secrets Manager from inside a Container

aws
security

#1

I want a more secure way of storing SSH keys from a container and would like to use AWS Server Manager to do so. It looks like it’s designed to be invoked from Lambdas, what would be the best way of using it from inside a container? Is there a way to invoke a lambda or Secrets Manager itself directly from a container?


#2

You can use any type of AWS SDK for JS, Java etc. or just use aws-cli inside the docker container

aws --profile <YOUR PROFILE FROM ~/.aws/credentials> --region <REGION eg. us-east-1> secretsmanager get-secret-value --secret-id <YOUR SECRET NAME>