Git Product home page Git Product logo

Comments (8)

rams3sh avatar rams3sh commented on May 27, 2024

Hey @Vitiate , thanks for notifying.
Can you please check if the iam-get-account-authorization-details.json has any content inside it ?

from aaia.

Vitiate avatar Vitiate commented on May 27, 2024

I -rw-r--r-- 1 jtirrell staff 533858 29 Jul 12:02 iam-get-account-authorization-details.json

It has a pretty substantial amount of stuff in it =-D

from aaia.

Vitiate avatar Vitiate commented on May 27, 2024

` ls -lartRh
total 0
drwxr-xr-x 3 jtirrell staff 96B 29 Jul 12:02 ..
drwxr-xr-x 13 jtirrell staff 416B 29 Jul 12:02 iam
drwxr-xr-x 4 jtirrell staff 128B 29 Jul 12:02 .
drwxr-xr-x 11 jtirrell staff 352B 29 Jul 12:02 organizations

./iam:
total 1248
-rw-r--r-- 1 jtirrell staff 521K 29 Jul 12:02 iam-get-account-authorization-details.json
-rw-r--r-- 1 jtirrell staff 1.7K 29 Jul 12:02 iam-list-users.json
drwxr-xr-x 2 jtirrell staff 64B 29 Jul 12:02 iam-get-user
-rw-r--r-- 1 jtirrell staff 566B 29 Jul 12:02 iam-list-groups.json
-rw-r--r-- 1 jtirrell staff 14K 29 Jul 12:02 iam-list-roles.json
drwxr-xr-x 2 jtirrell staff 64B 29 Jul 12:02 iam-get-role
drwxr-xr-x 2 jtirrell staff 64B 29 Jul 12:02 iam-get-policy
-rw-r--r-- 1 jtirrell staff 57B 29 Jul 12:02 iam-get-account-password-policy.json
-rw-r--r-- 1 jtirrell staff 121B 29 Jul 12:02 iam-get-account-summary.json
-rw-r--r-- 1 jtirrell staff 21B 29 Jul 12:02 iam-list-account-aliases.json
drwxr-xr-x 13 jtirrell staff 416B 29 Jul 12:02 .
-rw-r--r-- 1 jtirrell staff 5.0K 29 Jul 12:02 iam-get-credential-report.json
drwxr-xr-x 4 jtirrell staff 128B 29 Jul 12:02 ..

./iam/iam-get-user:
total 0
drwxr-xr-x 2 jtirrell staff 64B 29 Jul 12:02 .
drwxr-xr-x 13 jtirrell staff 416B 29 Jul 12:02 ..

./iam/iam-get-role:
total 0
drwxr-xr-x 2 jtirrell staff 64B 29 Jul 12:02 .
drwxr-xr-x 13 jtirrell staff 416B 29 Jul 12:02 ..

./iam/iam-get-policy:
total 0
drwxr-xr-x 2 jtirrell staff 64B 29 Jul 12:02 .
drwxr-xr-x 13 jtirrell staff 416B 29 Jul 12:02 ..

./organizations:
total 8
drwxr-xr-x 4 jtirrell staff 128B 29 Jul 12:02 ..
drwxr-xr-x 2 jtirrell staff 64B 29 Jul 12:02 ou_tree
-rw-r--r-- 1 jtirrell staff 259B 29 Jul 12:02 organizations-describe-organization.json
-rw-r--r-- 1 jtirrell staff 0B 29 Jul 12:02 organizations-list-roots.json
-rw-r--r-- 1 jtirrell staff 0B 29 Jul 12:02 organizations-list-accounts.json
drwxr-xr-x 2 jtirrell staff 64B 29 Jul 12:02 organizations-list-tags-for-resource
-rw-r--r-- 1 jtirrell staff 0B 29 Jul 12:02 organizations-list-policies.json
drwxr-xr-x 2 jtirrell staff 64B 29 Jul 12:02 organizations-list-targets-for-policy
drwxr-xr-x 2 jtirrell staff 64B 29 Jul 12:02 organizations-describe-policy
-rw-r--r-- 1 jtirrell staff 0B 29 Jul 12:02 organizations-list-aws-service-access-for-organization.json
drwxr-xr-x 11 jtirrell staff 352B 29 Jul 12:02 .

./organizations/ou_tree:
total 0
drwxr-xr-x 2 jtirrell staff 64B 29 Jul 12:02 .
drwxr-xr-x 11 jtirrell staff 352B 29 Jul 12:02 ..

./organizations/organizations-list-tags-for-resource:
total 0
drwxr-xr-x 2 jtirrell staff 64B 29 Jul 12:02 .
drwxr-xr-x 11 jtirrell staff 352B 29 Jul 12:02 ..

./organizations/organizations-list-targets-for-policy:
total 0
drwxr-xr-x 2 jtirrell staff 64B 29 Jul 12:02 .
drwxr-xr-x 11 jtirrell staff 352B 29 Jul 12:02 ..

./organizations/organizations-describe-policy:
total 0
drwxr-xr-x 2 jtirrell staff 64B 29 Jul 12:02 .
drwxr-xr-x 11 jtirrell staff 352B 29 Jul 12:02 ..`

from aaia.

rams3sh avatar rams3sh commented on May 27, 2024

Hey @Vitiate , I tried the setup as is in OSX Sierra . I am unable to replicate the same issue as yours.
From the error it seems like it is reading empty file.

Would be helpful if you could try printing the path of the file actions/aws/load_data/iam.py at line 29 that is being considered for reading the content

print(os.path.join(data_path,account_name,'iam','iam-get-account-authorization-details.json'))

and at the end of the with loop .

print (file_content)

Check out the path of the file by reading it using 'cat' in command line and let me know if there is any issue with content. Also check the path that it displays and the account authorization details file you are referring to are same.

I could'nt think of any other possibility.

If the issue is solved , please let me know.

from aaia.

Vitiate avatar Vitiate commented on May 27, 2024

I think I may know what the issue is. I am just verifying the fix.

from aaia.

Vitiate avatar Vitiate commented on May 27, 2024

add export AWS_DEFAULT_OUTPUT="json" to the top of the Aaia_aws_collector.sh to fix the issue.

from aaia.

rams3sh avatar rams3sh commented on May 27, 2024

@Vitiate . Thanks for the solution .

This is out the context of this issue. Looking at your folder structure , it seems like the users , roles and policies in get-user , get-roles and get-policy folder is not collected.

This may be probably because , you may not have jq installed in your base system . I had forgotten to update as part of readme. Have updated it now . Thought of letting you know.

Aaia_aws_collector.sh depends on jq command line tool. Install it and run it again to get the complete Aaia expected data.

from aaia.

Vitiate avatar Vitiate commented on May 27, 2024

I did find that in my poking around. and resolved that too. I am just experimenting with it now. Looks like it will be useful. Thanks!

from aaia.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.