duo-labs / cloudmapper

CloudMapper helps you analyze your Amazon Web Services (AWS) environments.
BSD 3-Clause "New" or "Revised" License
5.96k stars 800 forks source link

s3control still go to default account 123456789012 #750

Closed ozbillwang closed 4 years ago

ozbillwang commented 4 years ago

I have set the accound id

root@efda484df963:/apps# cat config.json
{  "accounts":
    [
        {"id": "345164678857", "name": "demo", "default": true}
    ],
    "cidrs":
    {
        "172.20.0.0/16": {"name": "test"}
    }
}

but after run the collect, it still report to accountid of 123456789012

--------------------------------------------------------------------
Summary: 312 APIs called. 11 errors
Failures:
  s3control.get_public_access_block({'AccountId': '123456789012'}): An error occurred (AccessDenied) when calling the GetPublicAccessBlock operation: Access Denied
  s3.get_bucket_logging({'Bucket': 'cloudmapper_demo'}): An error occurred (NoSuchBucket) when calling the GetBucketLogging operation: The specified bucket does not exist
ozbillwang commented 4 years ago

Ok, I found the problem.

I can't re-use demo as the account name, because there are samples using it already.