Skip to content

poad/aws-cloudformation-stack-status-checker

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

GitHub Action to AWS CloudFormation Stack status checks

License PRs welcome! version

Usage

Retrives status of AWS CloudFormation Stack

    - name: 'Retrives status of AWS CloudFormation Stack'
      id: stack-status
      uses: poad/aws-cloudformation-stack-status-checker@v2.0.0
      with: 
        stack-name: 'test-stack'
  
    - name: 'Another example step'
      run: echo ${{ steps.stack-status.outputs.status }}

Credentials and region

Credential resolve follows the AWS SDK v3 for JavaScript specification. https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/setting-region.html

It is recommended to use aws-actions/configure-aws-credentials to configure credentials in advance.

cross regions

The default region can be set via credentials or the environment variable AWS_REGION.

To check the stack for a region other than the default region, specify region in the Action input as follows

    - name: 'Retrives status of AWS CloudFormation Stack'
      id: stack-status
      uses: poad/aws-cloudformation-stack-status-checker@v2.0.0
      with: 
        stack-name: 'test-stack'
        region: us-west-2

License

Any contributions made under this project will be governed by the MIT License