Skip to content

Conversation

@DavidS-ovm
Copy link
Contributor

@DavidS-ovm DavidS-ovm commented Nov 18, 2024

This PR adds printing the errors from parsing terraform providers to allow customers to better understand what is going wrong.

Fixes #673

On manual testing, I could verify that access keys do work, but reproducing more of the customer's issue revealed some missing diagnostic output that would have indicated the underlying issue.

Example output:

vscode ➜ /workspace/deploy (dev) $ overmind terraform apply
DEBU sentry configured                            
 ✔︎  Connected to Overmind
 ✔︎  Stdlib source engine started
 ✗  Failed to initialize AWS source engine
Skipping AWS provider in main.tf with error decoding terraform file: (main.tf) main.tf:2,15-22: Unsupported attribute; This object does not
have an attribute named "REGION"., and 1 other diagnostic(s).
Error: error starting sources: failed to initialize AWS source engine: No configs specified
vscode ➜ /workspace/deploy (dev) $

@DavidS-ovm DavidS-ovm self-assigned this Nov 18, 2024
@DavidS-ovm DavidS-ovm enabled auto-merge November 18, 2024 20:10
@DavidS-ovm DavidS-ovm merged commit a8c9a50 into main Nov 18, 2024
8 checks passed
@DavidS-ovm DavidS-ovm deleted the aws-provider-parsing branch November 18, 2024 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Connecting to an AWS Source using access keys fails

2 participants