Skip to content

Add terraform output to action output #215

@jdraymon

Description

@jdraymon

Description

In order to make programmatic decisions based on the terraform plan, it would be helpful to add the results of the cdktf-cli script as an output on the action. Presently the output only goes into a generated comment, so is unavailable for the next step in a pipeline.

Concrete example:
I want to set up an action pipeline where:

  1. A plan is generated
  2. IF there are changes to a stack, run a apply job
  3. ELSE do nothing

To solve this I'd like to parse the terraform output and detect if any changes were part of the diff/plan

References

No response

Help Wanted

  • I'm interested in contributing a fix myself

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestnewA new issue or feature request that has not yet been triaged by maintainers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions