aws-cloudformation-github-deploy icon indicating copy to clipboard operation
aws-cloudformation-github-deploy copied to clipboard

Can you please give me an example of outputs?

Open eric-yi-dac opened this issue 4 years ago • 3 comments

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 avatar Apr 09 '21 09:04 eric-yi-dac

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 }}

liamgreig1 avatar Jun 23 '21 15:06 liamgreig1

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 avatar Nov 26 '23 02:11 jonathasrocha

A workaround thats worked is:

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

jonathasrocha avatar Nov 26 '23 03:11 jonathasrocha