ssm-sync
This tool synchronizes files with SSM.
In case key exists in SSM it will download and overwrite file on disk.
In case key doesn't exist in SSM it will upload file to SSM.
Setup
Tool uses standard AWS profile mechanism - it should fallback to server role in case no profile / credential variables are provided.
Usage
Usage of ssm-sync:
-file string
File path on disk
-kmsKeyAlias string
KMS key alias name (would use alias/<name> in KMS)
-region string
AWS Region (default "eu-west-1")
-ssm string
SSM Key name
-verbose
Enable verbose output
Example usage
ssm-sync -ssm ${ENVIRONMENT}/ssh/${APPLICATION}/${KEY_NAME} -file ${KEY_PATH}/${KEY_NAME} -kmsKeyAlias ${ENVIRONMENT}