cloudposse / github-action-atmos-affected-stacks

A composite workflow that runs the atmos describe affected command
https://cloudposse.com/accelerate
Apache License 2.0
2 stars 3 forks source link

Missing dependencies for atmos stack lookups #41

Closed mtb-xt closed 3 months ago

mtb-xt commented 4 months ago

Describe the Bug

If we're using a lookup in our atmos stacks, they run terraform output and nodejs under the hood. Such a stack will fail to work on this action, because terraform was removed.

Expected Behavior

Expected Action to work.

Steps to Reproduce

Steps to reproduce the behavior:

  1. Use a lookup in your atmos stack:
    instance_profile: '{{ (atmos.Component "iam-role/azure-agent" .stack).outputs.role.instance_profile }}'
  2. Wait for workflow 'Atmos Terraform Plan' to run.
  3. See error for terraform:

    template: describe-stacks-all-sections:158:24: executing "describe-stacks-all-sections" at <atmos.Component>: error calling Component: 
    exec: "terraform": executable file not found in $PATH
    
    Error: Process completed with exit code 1.
  4. See error for nodejs:
    BASE: 2ed8c1c34949c843ce6dc2402478e3006c3aa25d refs/heads/main
    template: describe-stacks-all-sections:80:30: executing "describe-stacks-all-sections" at <atmos.Component>: error calling 
    Component: exit status 127
    /usr/bin/env: 'node': No such file or directory
    Error: Process completed with exit code 127.

Screenshots

If applicable, add screenshots or logs to help explain your problem.

Environment (please complete the following information):

Anything that will help us triage the bug will help. Here are some ideas:

on: pull_request: types:

permissions: id-token: write contents: read

jobs: atmos-affected: if: ${{ !contains( github.event.pull_request.labels.*.name, 'no-plan') }} name: Determine Affected Stacks runs-on: ["self-hosted", "terraform"] steps:

Additional Context

Add any other context about the problem here.

mtb-xt commented 4 months ago

And nodejs seems to be required too -_-

/usr/bin/env: 'node': No such file or directory
mtb-xt commented 3 months ago

Seems to be resolved by the latest version