aws-cloudformation-github-deploy
aws-cloudformation-github-deploy copied to clipboard
Can you please give me an example of outputs?
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.
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 }}
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
A workaround thats worked is:
- run: echo ${{ steps.ec2.outputs['instance'] }}