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

SSH warnings during module download #179

Open
david-frost-ons opened this issue Aug 3, 2022 · 1 comment
Open

SSH warnings during module download #179

david-frost-ons opened this issue Aug 3, 2022 · 1 comment

Comments

@david-frost-ons
Copy link

Hi, great work on the terraform resource! generally its worked great. Im having one issue that i thought it worth bringing to you.

Im using the private_key parameter to access some organisation internal repos. This generally works but im getting some ssh erros reported which im concerned that my config isnt quite right.

Note that we are using a GitHub oauth for cloning repositories using git, this is a problem of terraform downloading modules.

The ssh errors reported are:

2022/08/03 12:54:01 agent 27: ssh: parse error in message type 27
2022/08/03 12:54:04 agent 27: ssh: parse error in message type 27
2022/08/03 12:54:05 agent 27: ssh: parse error in message type 27

I thought this might mean that i have some trailing garbage on the private_key after putting it into a yaml vars file but ive been unable to locate the private key on the nodes running the terraform so ive been unable to compare what it should be with whats being used.

@ljfranklin
Copy link
Owner

We don't write the private key to disk, we add it directly to the SSH agent here. YAML has a couple different ways of specifying multiline strings, maybe try messing with those: https://yaml-multiline.info/. Or you can add some logging to stderr in the resource and build a custom resource as described here.

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

No branches or pull requests

2 participants