Skip to content
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

Can you please give me an example of outputs? #55

Open
eric-yi-dac opened this issue Apr 9, 2021 · 3 comments
Open

Can you please give me an example of outputs? #55

eric-yi-dac opened this issue Apr 9, 2021 · 3 comments

Comments

@eric-yi-dac
Copy link

eric-yi-dac commented Apr 9, 2021

outputs:
  stack-id:
    description: "The id of the deployed stack. In addition, any outputs declared in the deployed CloudFormation stack will also be set as outputs for the action, e.g. if the stack has a stack output named 'foo', this action will also have an output named 'foo'."

I am trying to get my outputs from my cloudformation stack. (Access Key & Secret Key)
I have searched for a while, but still cannot get it worked.

@eric-yi-dac eric-yi-dac changed the title Can you please give me an example of output? Can you please give me an example of outputs? Apr 9, 2021
@liamgreig1
Copy link

I am trying to get the output information from CloudFormation stack too.

When I add stack-id to outputs I get a warning of "Skip output 'stack-id' since it may contain secret."

I would like to see what is contained in the stack-id or if I can get a specific output from CloudFormation?

Example code:
outputs:
env-name: ${{ steps.env-name.outputs.environment }}
stack-id: ${{ steps.ecs.outputs.stack-id }}

@jonathasrocha
Copy link

I'm same problem my stack return the publicDnsName,
Example:

Outputs:
  instance:
    Description: id da ec2
    Value: !GetAtt myEC2Instance.PublicDnsName

On git action yaml, i was tried to get the output value but it is returning null

      - name: create_ec2
        id: ec2


      - run: echo ${{ steps.ec2.outputs.instance.value }}

Return

Run echo 
  echo 

@jonathasrocha
Copy link

A workaround thats worked is:

- run: echo ${{ steps.ec2.outputs['instance'] }}

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

No branches or pull requests

3 participants