Hi there! I'm trying to execute an Atmos workflow ...
# atmos
k
Hi there! I'm trying to execute an Atmos workflow in Github Actions, but it hangs and never makes actual progress. The workflow itself is a short list of applies:
Copy code
workflows:
  my-deploy:
    steps:
      - command: terraform apply my-component -s my-stack/dev -auto-approve
      - [...]
But never makes progress through even the first command and produces no output that I can see in Actions logs. Running the same workflow locally has no issues, and I can't get any logs to spit out to give me an idea of what's going on in the Actions runner, if anything, even with
ATMOS_LOGS_LEVEL
and
ATMOS_LOGS_FILE
set. Has anyone else run into this? For reference, the command I'm running is:
Copy code
atmos workflow my-deploy -f workflow-my-deploy
g
@Andriy Knysh (Cloud Posse)
a
i'm not sure what could be the issue, but you can try the following:
• use
deploy
instead of
apply
:
command: terraform deploy my-component -s my-stack/dev
• in the workflow, use a shell step to confirm that it's working
Copy code
workflows:
  my-deploy:
    steps:
      - command: echo Command 1
        name: step1
        type: shell
you should see the echo
Command 1
if you don't see it, then the workflow is prob is not executed. to check it, just run some shell command in the GH action instead of
atmos workflow my-deploy -f workflow-my-deploy
e
There’s too many things that could go wrong. For example, locally you could have network connectivity to a cluster (e.g. via corporate networks or a vpn) but the GitHub actions do not
A step could be prompting for user input
You can use this GHA to debug your environment from inside the workflow job