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

Use AWS Profile on the local development environment rather than key/secret? #26

Open
EdsonF opened this issue Mar 1, 2017 · 6 comments

Comments

@EdsonF
Copy link

EdsonF commented Mar 1, 2017

Is it possible to use AWS Profile on the local development environment rather than key/secret?

Thanks for your help

@idlem1nd
Copy link

I'd also like to know if this is possible... the readme hints that this is possible:

Note In the above example credentials is in clear text and this is not the Amazon recommended way of doing things. See Configuring Credentials and End Point.

But that section is empty...

@idlem1nd
Copy link

But then again, based on this maybe it works just by leaving accessKey and secret empty?

@camitz
Copy link
Owner

camitz commented Jun 22, 2017 via email

@idlem1nd
Copy link

Thanks if you could help - I can only get it to work by specifying the accessKey and secret. If I miss those out, the XmlConfigurator.Configure method in log4net throws a CloudWatchAppenderException at startup, "Couldn't create Amazon client"

   at CloudWatchAppender.Services.CloudWatchClientWrapperBase`1.SetupClient(ClientConfig clientConfig) in c:\projects\cloudwatchappender\CloudWatchAppender\Services\CloudWatchClientWrapperBase.cs:line 105
   at CloudWatchAppender.Services.CloudWatchClientWrapperBase`1..ctor(String endPoint, String accessKey, String secret, ClientConfig clientConfig) in c:\projects\cloudwatchappender\CloudWatchAppender\Services\CloudWatchClientWrapperBase.cs:line 32
   at CloudWatchAppender.Services.CloudWatchLogsClientWrapper..ctor(String endPoint, String accessKey, String secret, ClientConfig clientConfig) in c:\projects\cloudwatchappender\CloudWatchAppender\Services\CloudWatchLogsClientWrapper.cs:line 18
   at CloudWatchAppender.BufferingCloudWatchLogsAppender.ActivateOptions() in c:\projects\cloudwatchappender\CloudWatchAppender\BufferingCloudWatchLogsAppender.cs:line 130
   at log4net.Repository.Hierarchy.XmlHierarchyConfigurator.ParseAppender(XmlElement appenderElement)

@camitz
Copy link
Owner

camitz commented Jul 18, 2017

You seem to be using an old version. What version are you using?

@idlem1nd
Copy link

@camitz I'm using the latest version from NuGet - 4.7.0.6

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

3 participants