How to set a binary secret value from the CLI for AWS Secrets Manager
Solution 1:
Found it:
aws secretsmanager put-secret-value --secret-id xxx --secret-binary fileb://mykeystore.jks
Solution 2:
The self-authored answer from OP covers how to set the value of an existing secret to a file binary. I wanted to add the way to use a file binary when creating an entirely new secret:
aws secretsmanager create-secret --name xxx --secret-binary fileb://mykeystore.jks