Skip to content

action deploys stack even if 'no-execute-changeset' is setΒ #135

@jvanmelckebeke

Description

@jvanmelckebeke

Steps to Reproduce

  1. Use the following GitHub Action configuration to deploy a CloudFormation stack:

    - name: deploy using CloudFormation
      uses: aws-actions/aws-cloudformation-github-deploy@master
      with:
        name: foobar
        template: template.yaml
        capabilities: ...
        no-execute-changeset: "1"
  2. Ensure the CloudFormation stack does not exist before running the action.

  3. The stack is deployed despite no-execute-changeset being set to "1".

Expected Behavior

A stack should be created, but with REVIEW_IN_PROGRESS.

Relevant Code

The issue appears to be in the deployStack function where the existence of the stack is checked. If the stack does not exist, a new stack is created without considering the no-execute-changeset flag. permalink

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions