(feat) set stack outputs as action outputs by clareliguori · Pull Request #23 · aws-actions/aws-cloudformation-github-deploy · GitHub
Skip to content

(feat) set stack outputs as action outputs#23

Merged
katallaxie merged 1 commit into
aws-actions:masterfrom
clareliguori:stack-outputs
Jun 1, 2020
Merged

(feat) set stack outputs as action outputs#23
katallaxie merged 1 commit into
aws-actions:masterfrom
clareliguori:stack-outputs

Conversation

@clareliguori

Copy link
Copy Markdown
Contributor

Any stack outputs will be set as action outputs

Example:

    - name: Deploy ECS Service with CloudFormation
      id: service-stack
      uses: aws-actions/aws-cloudformation-github-deploy@v1
      with:
        name: github-actions-service
        template: cloudformation-templates/service-fargate-public-subnet-public-lb.yml
        parameter-overrides: >-
          ImageUrl=nginx
    - name: Print service stack outputs
      env:
        OUTPUTS: ${{ toJson(steps.service-stack.outputs) }}
      run: echo "$OUTPUTS"

My CFN template has an output "ServiceURL", so this is the sample output:

{
  "stack-id": "arn:aws:cloudformation:***:***:stack/github-actions-service/53a97cb0-a2dd-11ea-b6d3-0608930970a0",
  "ServiceURL": "http://clare-Publi-E3GRD5LG86GN-138111391.us-east-1.elb.amazonaws.com"
}

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@katallaxie katallaxie merged commit f32e97a into aws-actions:master Jun 1, 2020
mergify Bot pushed a commit to cdklabs/cdk-pipelines-github that referenced this pull request Jun 5, 2023
Upgrade to `aws-actions/aws-cloudformation-github-deploy@1.2.0` which exposes stack outputs to actions (and fixes some non-relevant issues).

aws-actions/aws-cloudformation-github-deploy#23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants