Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

!terraform.output output parsing #62

Open
raman-rohau-eskill opened this issue Jan 27, 2025 · 0 comments
Open

!terraform.output output parsing #62

raman-rohau-eskill opened this issue Jan 27, 2025 · 0 comments
Labels
bug 🐛 An issue with the system

Comments

@raman-rohau-eskill
Copy link

raman-rohau-eskill commented Jan 27, 2025

Describe the Bug

When using different GitHub actions (e.g., atmos plan, atmos apply, etc.) that rely on the cloudposse/github-action-atmos-get-setting and reference another component with !terraform.output, the process fails. This happens because, instead of receiving the expected JSON output from the terraform output, it receives a message generated here:
terraform_outputs.go#L221.

This behavior is triggered during the execution of this command:
atmos.ts#L5.

Expected Behavior

When referencing another component with !terraform.output, the GitHub actions should receive a properly formatted JSON object containing the Terraform output values, not an error message.

Steps to Reproduce

  1. Use a GitHub workflow that includes cloudposse/github-action-atmos-get-setting.
  2. Reference another component output using !terraform.output in your atmos stack configuration.
  3. Run the workflow.
  4. Observe that the actions fail due to receiving a message instead of valid JSON.

Environment

OS: Linux (e.g., Ubuntu GitHub Actions runner)
Version: Atmos version v1.155.0
@raman-rohau-eskill raman-rohau-eskill added the bug 🐛 An issue with the system label Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 An issue with the system
Projects
None yet
Development

No branches or pull requests

1 participant