lloesche / aws-user-report Goto Github PK
View Code? Open in Web Editor NEWGenerate an IAM User Report
License: Apache License 2.0
Generate an IAM User Report
License: Apache License 2.0
First, thank you very much for this contribution. I am attempting to execute your script and get an error: "Unable to locate credentials". I attempted to follow the code (I am a Python novice) and could not find a solution. Is this looking for my AWS login credentials, or the credentials for the account it is gathering info for?
Here is my traceback:
2019-06-21 09:47:13,811 - INFO - Generating Report "AWS Account"
Traceback (most recent call last):
File "", line 1, in
runfile('C:/Users/xxxxxxxx/Documents/Python Code/AWS_IAM_User_Report.py', wdir='C:/Users/xxxxxxxx/Documents/Python Code')
File "C:\ProgramData\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 786, in runfile
execfile(filename, namespace)
File "C:\ProgramData\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 110, in execfile
exec(compile(f.read(), filename, 'exec'), namespace)
File "C:/Users/xxxxxxxx/Documents/Python Code/AWS_IAM_User_Report.py", line 488, in
main(sys.argv[1:])
File "C:/Users/xxxxxxxx/Documents/Python Code/AWS_IAM_User_Report.py", line 45, in main
reports = get_reports()
File "C:/Users/xxxxxxxx/Documents/Python Code/AWS_IAM_User_Report.py", line 121, in get_reports
reports.append(ur.report())
File "C:/Users/xxxxxxxx/Documents/Python Code/AWS_IAM_User_Report.py", line 366, in report
resp = iam.generate_credential_report()
File "C:\ProgramData\Anaconda3\lib\site-packages\botocore\client.py", line 357, in _api_call
return self._make_api_call(operation_name, kwargs)
File "C:\ProgramData\Anaconda3\lib\site-packages\botocore\client.py", line 648, in _make_api_call
operation_model, request_dict, request_context)
File "C:\ProgramData\Anaconda3\lib\site-packages\botocore\client.py", line 667, in _make_request
return self._endpoint.make_request(operation_model, request_dict)
File "C:\ProgramData\Anaconda3\lib\site-packages\botocore\endpoint.py", line 102, in make_request
return self._send_request(request_dict, operation_model)
File "C:\ProgramData\Anaconda3\lib\site-packages\botocore\endpoint.py", line 132, in _send_request
request = self.create_request(request_dict, operation_model)
File "C:\ProgramData\Anaconda3\lib\site-packages\botocore\endpoint.py", line 116, in create_request
operation_name=operation_model.name)
File "C:\ProgramData\Anaconda3\lib\site-packages\botocore\hooks.py", line 356, in emit
return self._emitter.emit(aliased_event_name, **kwargs)
File "C:\ProgramData\Anaconda3\lib\site-packages\botocore\hooks.py", line 228, in emit
return self._emit(event_name, kwargs)
File "C:\ProgramData\Anaconda3\lib\site-packages\botocore\hooks.py", line 211, in _emit
response = handler(**kwargs)
File "C:\ProgramData\Anaconda3\lib\site-packages\botocore\signers.py", line 90, in handler
return self.sign(operation_name, request)
File "C:\ProgramData\Anaconda3\lib\site-packages\botocore\signers.py", line 157, in sign
auth.add_auth(request)
File "C:\ProgramData\Anaconda3\lib\site-packages\botocore\auth.py", line 357, in add_auth
raise NoCredentialsError
NoCredentialsError: Unable to locate credentials
Hi, do you have plans to add a column with MFA/2factor authentication information?
Hi lloesche,
I am very impressed with your coding and this script.
Can you please help me to run this in AWS Lambda which store user report in S3 bucket in CSV file.
Waiting for your response.
Thanks in advance
Navneet Kumar
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.