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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

No output when running golang cli which uses the AWS SDK #43

Open
ciaranevans opened this issue Dec 7, 2021 · 3 comments
Open

No output when running golang cli which uses the AWS SDK #43

ciaranevans opened this issue Dec 7, 2021 · 3 comments

Comments

@ciaranevans
Copy link

ciaranevans commented Dec 7, 2021

Hey there 馃槃 - Been here before with CDK related questions!

I've got a Golang CLI which makes calls with the Go AWS SDK...

With a terminal window with:

iamlive --set-ini

And another window with:

AWS_CSM_ENABLED=true AWS_CSM_PORT=31000 AWS_CSM_HOST=127.0.0.1 <my cli command>

I get no output from iamlive, I'm trying to figure out what I might be doing wrong?

@iann0036
Copy link
Owner

iann0036 commented Dec 8, 2021

Hey @ciaranevans,

In the window you intend to run the CLI command / Go app in, you likely need to execute the following immediately before execution:

export HTTP_PROXY=http://127.0.0.1:10080
export HTTPS_PROXY=http://127.0.0.1:10080
export AWS_CA_BUNDLE=~/.iamlive/ca.pem

Let me know if that helps.

@ciaranevans
Copy link
Author

Hey @iann0036 thanks for the response, unfortunately that then breaks my CLI command 馃槄 Because of the proxy env vars

@iann0036
Copy link
Owner

iann0036 commented Dec 9, 2021

Hey @ciaranevans,

I believe the Go SDK specifically doesn't respect the CSM properties, so the proxy is the only working mode.

To use the proxy mode, you'll need to use the above exports in the window running the Go application, and run iamlive with the -mode proxy option. If you have a corporate proxy or similar, you should set the upstream proxy details in the window running iamlive (though this hasn't been thoroughly tested).

Hope that helps!

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