A Crystal shard for AWS System Manager.
Add this to your application's shard.yml
:
dependencies:
awscr-ssm:
github: y2k2mt/awscr-ssm
0.25+
require "aws-ssm"
# AWS credentials are automatically resolved from the environment variable 'AWS_ACCESS_KEY_ID' and 'AWS_SECRET_ACCESS_KEY'.
# You can also use SimpleCredentials manually.
# credential = Awscr::SimpleCredentials.new("AK...", "CUE...")
parameter = Awscr::SSM::Client.new("ap-northeast-1").get_parameter("/develop/redis/auth-token", true)