action-aws-ssm-to-dotenv
action-aws-ssm-to-dotenv copied to clipboard
Added 4 features.
format:
description: >+
Examples:
`dotenv` will add the values to the file like `key=value`
`shell` will add the values to the file like `export key=value`
`yaml` will add the values to the file like `key: value`
`JSON` will add the values to the file like `{"key": "value"}`
prefix-paths:
required: false
default: "false"
description: >+
If "true" the relative path from the ssm-paths value to the parameter is prefixed on the key.
So if the key full path is /envs/dev/mysql_user then if this is true and ssm-paths value was
"/env/" the key presented would be "dev_mysql_user"'
set-as-env:
description: "Sets the values as environment variables for this GitHub Actions Job"
default: "true"
required: false
set-case:
description: 'Transform the keys to "upper", "lower", or "none" for unchanged'
default: "none"
required: false
Nice additions!
I am not a JS developer, but I will try to add the option to export to a plain file without a key/value structure. I am using this to download a ssh key which I have stored in SSM as a secure string. Maybe I can call this plain
or raw
.