Get output value from Pulumi application for defined inputs
Required The name of the Pulumi organization, in lowercase and with hyphens.
Required The name of the Pulumi project, in lowercase and with hyphens.
Required The stack of the Pulumi project.
The name of the Pulumi resource whose output you wish to get. Conditions for this input:
- if
resourceis defined,resourcesis ignored - if both
resourceandresourcesare not defined, all available resources are returned.
Line-end separated list of names of the Pulumi resource whose output you wish to get. Conditions for this input:
- if
resourceis defined, this input is ignored - if both
resourceandresourcesare not defined, all available resources are returned.
example yml-input:
resources: |
endpointUrl
anotherRequired Pulumi access token.
Outputs are dynamically named after the resource names defined in resources input. If resource input is defined, the output is named resource-output.
String output of the requested resource. Has a non-zero lenght value only if resource input is defined.
Get resources:
- name: Get Pulumi resource output
id: action-id
uses: Virtual-Finland-Development/pulumi-outputs-action@v1
with:
organization: organization-name
project: project-name
stack: dev
resources: |
endpointUrl
another
access-token: ${{ secrets.PULUMI_ACCESS_TOKEN }}
- name: Get the outputs
run: |
echo 'The endpointUrl output was ${{ steps.action-id.outputs.endpointUrl }}'
echo 'The another output was ${{ steps.action-id.outputs.another }}'Get a single resource:
- name: Get Pulumi resource output
id: action-id
uses: Virtual-Finland-Development/pulumi-outputs-action@v1
with:
organization: organization-name
project: project-name
stack: dev
resource: endpointUrl
access-token: ${{ secrets.PULUMI_ACCESS_TOKEN }}
- name: Get the output
run: |
echo 'The endpointUrl output was: ${{ steps.action-id.outputs.endpointUrl }}'
echo 'Backwards compatibilite syntax for endpointUrl output: resource-output=${{ steps.action-id.outputs.resource-output }}'