Skip to content

(feat) set stack outputs as action outputs #23

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 1, 2020

Conversation

clareliguori
Copy link
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

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
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.

None yet

2 participants