GitHub Action: atmos-get-setting
GitHub Action to retreive a setting from atmos configuration.
Introduction
GitHub Action to retreive a setting from atmos configuration.
Usage
# Example stacks/dev.yaml
components:
terraform:
foo:
settings:
secrets-arn: arn:aws:secretsmanager:us-east-1:000000000000:secret:MySecret-PlMes3
vars:
foo: bar
name: github-action-atmos-get-setting
on:
pull_request:
branches: [ 'main' ]
types: [opened, synchronize, reopened, closed, labeled, unlabeled]
jobs:
context:
runs-on: ubuntu-latest
steps:
- name: github-action-atmos-get-setting
uses: cloudposse/github-action-atmos-get-setting@main
id: example
with:
component: foo
stack: core-ue1-dev
settings-path: secrets-arn
- name: github-action-atmos-get-setting
uses: aws-actions/aws-secretsmanager-get-secrets@v1
with:
secret-ids: ${{ steps.example.outputs.value }}
Inputs
Name | Description | Default | Required |
---|---|---|---|
component | The atmos component extract the settings for. | N/A | true |
settings-path | The settings path using JSONPath expressions. | N/A | true |
stack | The atmos stack extract the settings for. | N/A | true |
Outputs
Name | Description |
---|---|
value | The value of the settings |