Project base created from very similar action, https://github.com/deptno/action-aws-ssm-to-dotenv.
create .env
or shell script via AWS Cloudformation outputs
- uses: afterthought/action-aws-cf-to-dotenv@v1
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} # required
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} # required
AWS_DEFAULT_REGION: ap-northeast-2 # required
with:
stack-names: stack1, stack2, stackN
format: shell
output: .env.development
prefix: CF_
Output parameter names are converted to UPPER_SNAKE_CASE.
action_aws_cf_to_dotenv
will append data to output file
Name of cloudformation stacks separated by commas.
Comma separated list of tag name:value pairs. I.e. env:prod,service:web1. Include only stacks with matching tag name/values.
optional, default=dotenv
- dotenv: KEY="value" (default)
- shell: export KEY="value"
- yaml: KEY: "value"
output filename
add prefix to exported variable name
eg) prefix: ACTION_
will export ACTION_ENV_VAR="value"
MIT