rootstrap/rails_api_base

View on GitHub
bin/format_aws_secrets.rb

Summary

Maintainability
A
0 mins
Test Coverage
#!/usr/bin/env ruby
require 'json'

data = JSON.parse(ARGV[0])

formatted_secrets = data.map do |param|
  param_name = param['Name'].split('/').last.upcase
"#{param_name}=#{param['ARN']}"
end.join('\n')

puts formatted_secrets