Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

introduce global region #139

Merged
merged 2 commits into from
Mar 21, 2018
Merged

introduce global region #139

merged 2 commits into from
Mar 21, 2018

Conversation

svenwltr
Copy link
Member

@svenwltr svenwltr commented Mar 14, 2018

Fixes #123

This is a breaking change and will cause a new major version.

@rebuy-de/prp-aws-nuke Please review.
/cc @tomvachon

@svenwltr svenwltr self-assigned this Mar 14, 2018
}

switch {
case c.HasProfile() && c.HasKeys():
Copy link
Contributor

@bethge bethge Mar 14, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of throwing an error if neither are present, you now only throw one if both are present. Is this intended?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No. Fixed.

@tomvachon
Copy link
Contributor

What's the breaking change @svenwltr ?

@svenwltr
Copy link
Member Author

@tomvachon That the user has to add global to the regions in the config. Otherwise the global resources don't get touched. I should enhance the README.

@tomvachon
Copy link
Contributor

@svenwltr agreed, I wonder could it be a boolean in the config and default it to "true"?

include_global_resources: true ?

@svenwltr
Copy link
Member Author

@tomvachon What is the benefit of introducing a new config flag over adding it to the region list?

@tomvachon
Copy link
Contributor

@svenwltr Either people will forget about it or more importantly, it shows its a "meta-region". Someone will stumble on this project and wonder why "global" is a region IMO

@svenwltr
Copy link
Member Author

@rebuy-de/prp-aws-nuke Your opinions on this?

@bjoernhaeuser
Copy link
Member

I would suggest to introduce the mentioned global region, seems to be much more consistent with how the AWS world thinks.

@tomvachon
Copy link
Contributor

tomvachon commented Mar 14, 2018

@svenwltr @bethge @bjoernhaeuser This may become more urgent, it seems like S3 buckets aren't working. I just noticed

@svenwltr
Copy link
Member Author

@tomvachon What to you mean by not working?

@tomvachon
Copy link
Contributor

tomvachon commented Mar 15, 2018 via email

@svenwltr
Copy link
Member Author

@tomvachon deleting S3Buckets works for me with this branch and with current master. Can you give more details about the error?

@tomvachon
Copy link
Contributor

@svenwltr Here is the full output

Thomass-MacBook-Pro:aws-nuke thv596$ ./aws-nuke  --profile its-sand1 --config ~/tmp/awsnuke.conf --target S3Bucket --target S3Object
aws-nuke version v1.4.0.101.gd7697a9 - Tue Mar 20 08:22:39 EDT 2018 - d7697a9c34842b60be8a9afe869d40a5027b5a74

Do you really want to nuke the account with the ID 999999999999 and the alias 'itsawsaccount-sandbox1'?
Do you want to continue? Enter account alias to continue.
> itsawsaccount-sandbox1

Scan complete: 0 total, 0 nukeable, 0 filtered.

No resource to delete.
Thomass-MacBook-Pro:aws-nuke thv596$ ./aws-nuke  --profile its-sand1 --config ~/tmp/awsnuke.conf --target S3Bucket --target S3Object -v
DEBU[0000] sending AWS request:
    > POST / HTTP/1.1
    > Host: sts.amazonaws.com
    > Authorization: <hidden>
    > Content-Length: 43
    > Content-Type: application/x-www-form-urlencoded; charset=utf-8
    > User-Agent: aws-sdk-go/1.13.8 (go1.10; darwin; amd64)
    > X-Amz-Date: 20180320T122335Z
    >
    > Action=GetCallerIdentity&Version=2011-06-15
DEBU[0000] received AWS response:
    < HTTP/1.1 200 OK
    < Content-Length: 405
    < Content-Type: text/xml
    < Date: Tue, 20 Mar 2018 12:23:35 GMT
    < X-Amzn-Requestid: 83104650-2c39-11e8-9eaa-6743ce895ce6
    <
    < <GetCallerIdentityResponse xmlns="https://sts.amazonaws.com/doc/2011-06-15/">
    <   <GetCallerIdentityResult>
    <     <Arn>arn:aws:iam::999999999999:user/aws-nuke</Arn>
    <     <UserId>AIDAJ7CMFRYEG3OOGFFOU</UserId>
    <     <Account>999999999999</Account>
    <   </GetCallerIdentityResult>
    <   <ResponseMetadata>
    <     <RequestId>83104650-2c39-11e8-9eaa-6743ce895ce6</RequestId>
    <   </ResponseMetadata>
    < </GetCallerIdentityResponse>
DEBU[0000] sending AWS request:
    > POST / HTTP/1.1
    > Host: iam.amazonaws.com
    > Authorization: <hidden>
    > Content-Length: 44
    > Content-Type: application/x-www-form-urlencoded; charset=utf-8
    > User-Agent: aws-sdk-go/1.13.8 (go1.10; darwin; amd64)
    > X-Amz-Date: 20180320T122335Z
    >
    > Action=ListAccountAliases&Version=2010-05-08
DEBU[0000] received AWS response:
    < HTTP/1.1 200 OK
    < Content-Length: 401
    < Content-Type: text/xml
    < Date: Tue, 20 Mar 2018 12:23:35 GMT
    < X-Amzn-Requestid: 831ca265-2c39-11e8-a2ff-71e11d7ef1cc
    <
    < <ListAccountAliasesResponse xmlns="https://iam.amazonaws.com/doc/2010-05-08/">
    <   <ListAccountAliasesResult>
    <     <IsTruncated>false</IsTruncated>
    <     <AccountAliases>
    <       <member>itsawsaccount-sandbox1</member>
    <     </AccountAliases>
    <   </ListAccountAliasesResult>
    <   <ResponseMetadata>
    <     <RequestId>831ca265-2c39-11e8-a2ff-71e11d7ef1cc</RequestId>
    <   </ResponseMetadata>
    < </ListAccountAliasesResponse>
aws-nuke version v1.4.0.101.gd7697a9 - Tue Mar 20 08:22:39 EDT 2018 - d7697a9c34842b60be8a9afe869d40a5027b5a74

Do you really want to nuke the account with the ID 999999999999 and the alias 'itsawsaccount-sandbox1'?
Do you want to continue? Enter account alias to continue.
> itsawsaccount-sandbox1

DEBU[0002] sending AWS request:
    > GET / HTTP/1.1
    > Host: s3.amazonaws.com
    > Authorization: <hidden>
    > User-Agent: aws-sdk-go/1.13.8 (go1.10; darwin; amd64)
    > X-Amz-Content-Sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
    > X-Amz-Date: 20180320T122338Z
DEBU[0002] received AWS response:
    < HTTP/1.1 200 OK
    < Transfer-Encoding: chunked
    < Content-Type: application/xml
    < Date: Tue, 20 Mar 2018 12:23:39 GMT
    < Server: AmazonS3
    < X-Amz-Id-2: CgqOcqmlkldNNKuoKWutIYggUQkmXevh7oGHEHN/Ar+kCS4vIKgm1iI3Gs/RueTfRVDLav3YYJQ=
    < X-Amz-Request-Id: 9D8D388BE90E263E
    <
    < 7c8
    < <?xml version="1.0" encoding="UTF-8"?>
    < <ListAllMyBucketsResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><Owner><ID>b9133dcb9156fa81f6820f1996e2a20bb8eb9658592c488a061f13d6742c3339</ID><DisplayName>huit-cloudops-awsaccounts+its-awsacct-sand1</DisplayName></Owner><Buckets><Bucket><Name>appstream2-36fb080bb8-us-east-1-999999999999</Name><CreationDate>2018-03-16T14:50:45.000Z</CreationDate></Bucket><Bucket><Name>aws-codestar-us-east-1-999999999999</Name><CreationDate>2018-03-05T18:52:04.000Z</CreationDate></Bucket><Bucket><Name>aws-codestar-us-east-1-999999999999-qefsefsdf-app</Name><CreationDate>2018-03-05T18:52:14.000Z</CreationDate></Bucket><Bucket><Name>aws-codestar-us-east-1-999999999999-qefsefsdf-pipe</Name><CreationDate>2018-03-05T18:52:14.000Z</CreationDate></Bucket><Bucket><Name>aws-glue-scripts-999999999999-us-east-1</Name><CreationDate>2018-03-06T13:51:33.000Z</CreationDate></Bucket><Bucket><Name>aws-glue-temporary-999999999999-us-east-1</Name><CreationDate>2018-03-06T13:51:33.000Z</CreationDate></Bucket><Bucket><Name>aws-logs-999999999999-us-east-1</Name><CreationDate>2018-03-09T16:16:56.000Z</CreationDate></Bucket><Bucket><Name>bgjhdfshjkasbfksgdfkgsadfjhbfdg</Name><CreationDate>2018-03-14T15:18:21.000Z</CreationDate></Bucket><Bucket><Name>cf-templates-mb4b6gt98xhb-us-east-1</Name><CreationDate>2018-03-01T13:12:30.000Z</CreationDate></Bucket><Bucket><Name>codepipeline-us-east-1-374141183811</Name><CreationDate>2018-03-02T18:10:54.000Z</CreationDate></Bucket><Bucket><Name>config-bucket-999999999999</Name><CreationDate>2018-03-05T19:02:48.000Z</CreationDate></Bucket><Bucket><Name>elasticbeanstalk-us-east-1-999999999999</Name><CreationDate>2018-03-09T17:20:09.000Z</CreationDate></Bucket><Bucket><Name>kjhbaskdjhfbkjahbfkhsjdf</Name><CreationDate>2018-03-16T11:15:01.000Z</CreationDate></Bucket><Bucket><Name>sdfsdfsdfsdfsdfsdaasdgasdjfgbkasdjfewa</Name><CreationDate>2018-03-09T18:11:57.000Z</CreationDate></Bucket></Buckets></ListAllMyBucketsResult>
    < 0
DEBU[0002] sending AWS request:
    > GET /appstream2-36fb080bb8-us-east-1-999999999999?location= HTTP/1.1
    > Host: s3.amazonaws.com
    > Authorization: <hidden>
    > User-Agent: aws-sdk-go/1.13.8 (go1.10; darwin; amd64)
    > X-Amz-Content-Sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
    > X-Amz-Date: 20180320T122338Z
DEBU[0002] received AWS response:
    < HTTP/1.1 200 OK
    < Transfer-Encoding: chunked
    < Content-Type: application/xml
    < Date: Tue, 20 Mar 2018 12:23:39 GMT
    < Server: AmazonS3
    < X-Amz-Id-2: 2FbZDRRtj8APr2kJ4tWahIs6jzkxFSE2BnakPJFjaDC1DAmkU+C5RgyZpOHVKMWaUVIpbSYA3Pg=
    < X-Amz-Request-Id: C051634BDB3C5AF2
    <
    < 6c
    < <?xml version="1.0" encoding="UTF-8"?>
    < <LocationConstraint xmlns="http://s3.amazonaws.com/doc/2006-03-01/"/>
    < 0
DEBU[0002] sending AWS request:
    > GET /aws-codestar-us-east-1-999999999999?location= HTTP/1.1
    > Host: s3.amazonaws.com
    > Authorization: <hidden>
    > User-Agent: aws-sdk-go/1.13.8 (go1.10; darwin; amd64)
    > X-Amz-Content-Sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
    > X-Amz-Date: 20180320T122338Z
DEBU[0002] received AWS response:
    < HTTP/1.1 200 OK
    < Transfer-Encoding: chunked
    < Content-Type: application/xml
    < Date: Tue, 20 Mar 2018 12:23:39 GMT
    < Server: AmazonS3
    < X-Amz-Id-2: XYLwS0MvXnvOIxX//tpjsw8iYt6MxjCHnfdeuv7CatV49OXhyYVfsKVg3eDdfQ7Ui5LIXtPACUs=
    < X-Amz-Request-Id: A8F60D4EAE46156A
    <
    < 6c
    < <?xml version="1.0" encoding="UTF-8"?>
    < <LocationConstraint xmlns="http://s3.amazonaws.com/doc/2006-03-01/"/>
    < 0
DEBU[0002] sending AWS request:
    > GET /aws-codestar-us-east-1-999999999999-qefsefsdf-app?location= HTTP/1.1
    > Host: s3.amazonaws.com
    > Authorization: <hidden>
    > User-Agent: aws-sdk-go/1.13.8 (go1.10; darwin; amd64)
    > X-Amz-Content-Sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
    > X-Amz-Date: 20180320T122338Z
DEBU[0002] received AWS response:
    < HTTP/1.1 200 OK
    < Transfer-Encoding: chunked
    < Content-Type: application/xml
    < Date: Tue, 20 Mar 2018 12:23:39 GMT
    < Server: AmazonS3
    < X-Amz-Id-2: y92FBUVWhsY4pJcxnBsCwmFJtI8FLxCIgrWiuTf43FFQoQx9M0p+LExiw21EaZmZpUB5MEuSk/w=
    < X-Amz-Request-Id: 85FF00B148782FF9
    <
    < 6c
    < <?xml version="1.0" encoding="UTF-8"?>
    < <LocationConstraint xmlns="http://s3.amazonaws.com/doc/2006-03-01/"/>
    < 0
DEBU[0002] sending AWS request:
    > GET /aws-codestar-us-east-1-999999999999-qefsefsdf-pipe?location= HTTP/1.1
    > Host: s3.amazonaws.com
    > Authorization: <hidden>
    > User-Agent: aws-sdk-go/1.13.8 (go1.10; darwin; amd64)
    > X-Amz-Content-Sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
    > X-Amz-Date: 20180320T122338Z
DEBU[0002] received AWS response:
    < HTTP/1.1 200 OK
    < Transfer-Encoding: chunked
    < Content-Type: application/xml
    < Date: Tue, 20 Mar 2018 12:23:39 GMT
    < Server: AmazonS3
    < X-Amz-Id-2: OKWSTgfWMYphWkxTwW75Np3/f4ISvB8C84q69X+68ezvkeO1BKnpaJkfTKzWxymJ4/z9R1MgF+8=
    < X-Amz-Request-Id: B43128B34F722B02
    <
    < 6c
    < <?xml version="1.0" encoding="UTF-8"?>
    < <LocationConstraint xmlns="http://s3.amazonaws.com/doc/2006-03-01/"/>
    < 0
DEBU[0002] sending AWS request:
    > GET /aws-glue-scripts-999999999999-us-east-1?location= HTTP/1.1
    > Host: s3.amazonaws.com
    > Authorization: <hidden>
    > User-Agent: aws-sdk-go/1.13.8 (go1.10; darwin; amd64)
    > X-Amz-Content-Sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
    > X-Amz-Date: 20180320T122338Z
DEBU[0002] received AWS response:
    < HTTP/1.1 200 OK
    < Transfer-Encoding: chunked
    < Content-Type: application/xml
    < Date: Tue, 20 Mar 2018 12:23:39 GMT
    < Server: AmazonS3
    < X-Amz-Id-2: jaGkpV02jsxCVmy9gak5sHhcL4XpDnpk1RK+tsqfRpeVip0Ssuy57ecE0WMK04uzD00TD9YFnu0=
    < X-Amz-Request-Id: BCB3474ED8ED9B73
    <
    < 6c
    < <?xml version="1.0" encoding="UTF-8"?>
    < <LocationConstraint xmlns="http://s3.amazonaws.com/doc/2006-03-01/"/>
    < 0
DEBU[0002] sending AWS request:
    > GET /aws-glue-temporary-999999999999-us-east-1?location= HTTP/1.1
    > Host: s3.amazonaws.com
    > Authorization: <hidden>
    > User-Agent: aws-sdk-go/1.13.8 (go1.10; darwin; amd64)
    > X-Amz-Content-Sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
    > X-Amz-Date: 20180320T122338Z
DEBU[0002] received AWS response:
    < HTTP/1.1 200 OK
    < Transfer-Encoding: chunked
    < Content-Type: application/xml
    < Date: Tue, 20 Mar 2018 12:23:39 GMT
    < Server: AmazonS3
    < X-Amz-Id-2: EOi93oF1IlkxTjspzdB9kmK3O9GNvSMFU5Kw3476wMvyuow44D9MNEkZTa5uDNpAYFe+7OMP4Hg=
    < X-Amz-Request-Id: 22AA30A0F29A61EC
    <
    < 6c
    < <?xml version="1.0" encoding="UTF-8"?>
    < <LocationConstraint xmlns="http://s3.amazonaws.com/doc/2006-03-01/"/>
    < 0
DEBU[0002] sending AWS request:
    > GET /aws-logs-999999999999-us-east-1?location= HTTP/1.1
    > Host: s3.amazonaws.com
    > Authorization: <hidden>
    > User-Agent: aws-sdk-go/1.13.8 (go1.10; darwin; amd64)
    > X-Amz-Content-Sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
    > X-Amz-Date: 20180320T122338Z
DEBU[0002] received AWS response:
    < HTTP/1.1 200 OK
    < Transfer-Encoding: chunked
    < Content-Type: application/xml
    < Date: Tue, 20 Mar 2018 12:23:39 GMT
    < Server: AmazonS3
    < X-Amz-Id-2: D2KpMTBoiTyhPtT+pJrg+G+x5qH7CO3kTQ71VRS7b0UV8/bqgtBv7yibeDVxnqb4fds5/CB1YqM=
    < X-Amz-Request-Id: 019142C8A45A4D8A
    <
    < 6c
    < <?xml version="1.0" encoding="UTF-8"?>
    < <LocationConstraint xmlns="http://s3.amazonaws.com/doc/2006-03-01/"/>
    < 0
DEBU[0002] sending AWS request:
    > GET /bgjhdfshjkasbfksgdfkgsadfjhbfdg?location= HTTP/1.1
    > Host: s3.amazonaws.com
    > Authorization: <hidden>
    > User-Agent: aws-sdk-go/1.13.8 (go1.10; darwin; amd64)
    > X-Amz-Content-Sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
    > X-Amz-Date: 20180320T122338Z
DEBU[0002] received AWS response:
    < HTTP/1.1 200 OK
    < Transfer-Encoding: chunked
    < Content-Type: application/xml
    < Date: Tue, 20 Mar 2018 12:23:39 GMT
    < Server: AmazonS3
    < X-Amz-Id-2: PpgPqKqinJZ7fHt166yYTm7u4PPndjZY/mDxNKcts8I/pK4o7CI9pzW0n9lfoMFTYCR8LDDq0Ok=
    < X-Amz-Request-Id: 52A471BF9BE37AD5
    <
    < 6c
    < <?xml version="1.0" encoding="UTF-8"?>
    < <LocationConstraint xmlns="http://s3.amazonaws.com/doc/2006-03-01/"/>
    < 0
DEBU[0002] sending AWS request:
    > GET /cf-templates-mb4b6gt98xhb-us-east-1?location= HTTP/1.1
    > Host: s3.amazonaws.com
    > Authorization: <hidden>
    > User-Agent: aws-sdk-go/1.13.8 (go1.10; darwin; amd64)
    > X-Amz-Content-Sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
    > X-Amz-Date: 20180320T122338Z
DEBU[0002] received AWS response:
    < HTTP/1.1 200 OK
    < Transfer-Encoding: chunked
    < Content-Type: application/xml
    < Date: Tue, 20 Mar 2018 12:23:39 GMT
    < Server: AmazonS3
    < X-Amz-Id-2: QSaJZe9YMaoFEGfH7p4DT26DV13D3rQPXBOcoOSBkctm3I4Wx6U26BSqiwkExsH3VvLRy67WLa4=
    < X-Amz-Request-Id: 10606B578A9DC8E6
    <
    < 6c
    < <?xml version="1.0" encoding="UTF-8"?>
    < <LocationConstraint xmlns="http://s3.amazonaws.com/doc/2006-03-01/"/>
    < 0
DEBU[0002] sending AWS request:
    > GET /codepipeline-us-east-1-374141183811?location= HTTP/1.1
    > Host: s3.amazonaws.com
    > Authorization: <hidden>
    > User-Agent: aws-sdk-go/1.13.8 (go1.10; darwin; amd64)
    > X-Amz-Content-Sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
    > X-Amz-Date: 20180320T122338Z
DEBU[0002] received AWS response:
    < HTTP/1.1 200 OK
    < Transfer-Encoding: chunked
    < Content-Type: application/xml
    < Date: Tue, 20 Mar 2018 12:23:39 GMT
    < Server: AmazonS3
    < X-Amz-Id-2: FonQPEuB70ZZYugneYLz+apOLZcYVqeb9LDI/kL5D/dVvdIvUhw6KrXWu3mBaTQkCqOToZNn6Y0=
    < X-Amz-Request-Id: 259C1540B4878A56
    <
    < 6c
    < <?xml version="1.0" encoding="UTF-8"?>
    < <LocationConstraint xmlns="http://s3.amazonaws.com/doc/2006-03-01/"/>
    < 0
DEBU[0002] sending AWS request:
    > GET /config-bucket-999999999999?location= HTTP/1.1
    > Host: s3.amazonaws.com
    > Authorization: <hidden>
    > User-Agent: aws-sdk-go/1.13.8 (go1.10; darwin; amd64)
    > X-Amz-Content-Sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
    > X-Amz-Date: 20180320T122338Z
DEBU[0002] received AWS response:
    < HTTP/1.1 200 OK
    < Transfer-Encoding: chunked
    < Content-Type: application/xml
    < Date: Tue, 20 Mar 2018 12:23:39 GMT
    < Server: AmazonS3
    < X-Amz-Id-2: b3DJsu9UhM2B6R8JM654Kl9t+RxhFMehfT7vX47kdOR2C01I969S7+QPVHp605voKSNdUxcRaUI=
    < X-Amz-Request-Id: DE4F22C43F518AEC
    <
    < 6c
    < <?xml version="1.0" encoding="UTF-8"?>
    < <LocationConstraint xmlns="http://s3.amazonaws.com/doc/2006-03-01/"/>
    < 0
DEBU[0002] sending AWS request:
    > GET /elasticbeanstalk-us-east-1-999999999999?location= HTTP/1.1
    > Host: s3.amazonaws.com
    > Authorization: <hidden>
    > User-Agent: aws-sdk-go/1.13.8 (go1.10; darwin; amd64)
    > X-Amz-Content-Sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
    > X-Amz-Date: 20180320T122338Z
DEBU[0002] received AWS response:
    < HTTP/1.1 200 OK
    < Transfer-Encoding: chunked
    < Content-Type: application/xml
    < Date: Tue, 20 Mar 2018 12:23:39 GMT
    < Server: AmazonS3
    < X-Amz-Id-2: BeuTKCFT2VhvRzopy24PSMb1lSZXVG0qCB8UEpfIz2S0kBO/VU7XMa0BU0bAknQ+Z1+sGuek0yY=
    < X-Amz-Request-Id: 10F92DD638E7EC3C
    <
    < 6c
    < <?xml version="1.0" encoding="UTF-8"?>
    < <LocationConstraint xmlns="http://s3.amazonaws.com/doc/2006-03-01/"/>
    < 0
DEBU[0002] sending AWS request:
    > GET /kjhbaskdjhfbkjahbfkhsjdf?location= HTTP/1.1
    > Host: s3.amazonaws.com
    > Authorization: <hidden>
    > User-Agent: aws-sdk-go/1.13.8 (go1.10; darwin; amd64)
    > X-Amz-Content-Sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
    > X-Amz-Date: 20180320T122338Z
DEBU[0003] received AWS response:
    < HTTP/1.1 200 OK
    < Transfer-Encoding: chunked
    < Content-Type: application/xml
    < Date: Tue, 20 Mar 2018 12:23:39 GMT
    < Server: AmazonS3
    < X-Amz-Id-2: 3j4RRWI/Z0sWz4zw5siAVA/Hyu1/F+fkz9hnqbW8Mk3Ckc0WngpwXEX9AsI+yYwUrpFyhBqSmq0=
    < X-Amz-Request-Id: AFE36C0C01933FB6
    <
    < 6c
    < <?xml version="1.0" encoding="UTF-8"?>
    < <LocationConstraint xmlns="http://s3.amazonaws.com/doc/2006-03-01/"/>
    < 0
DEBU[0003] sending AWS request:
    > GET /sdfsdfsdfsdfsdfsdaasdgasdjfgbkasdjfewa?location= HTTP/1.1
    > Host: s3.amazonaws.com
    > Authorization: <hidden>
    > User-Agent: aws-sdk-go/1.13.8 (go1.10; darwin; amd64)
    > X-Amz-Content-Sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
    > X-Amz-Date: 20180320T122338Z
DEBU[0003] received AWS response:
    < HTTP/1.1 200 OK
    < Transfer-Encoding: chunked
    < Content-Type: application/xml
    < Date: Tue, 20 Mar 2018 12:23:39 GMT
    < Server: AmazonS3
    < X-Amz-Id-2: wwkQZLrfG3oeEvvUzxTL1A6Asj90mnQBTbEgrTQJWRq7GvzqyJPf1EbeIVG+Jn5TVmv7iJwHm0w=
    < X-Amz-Request-Id: 6B40B9FE1ED0C52F
    <
    < 6c
    < <?xml version="1.0" encoding="UTF-8"?>
    < <LocationConstraint xmlns="http://s3.amazonaws.com/doc/2006-03-01/"/>
    < 0
DEBU[0003] sending AWS request:
    > GET / HTTP/1.1
    > Host: s3.amazonaws.com
    > Authorization: <hidden>
    > User-Agent: aws-sdk-go/1.13.8 (go1.10; darwin; amd64)
    > X-Amz-Content-Sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
    > X-Amz-Date: 20180320T122338Z
DEBU[0003] received AWS response:
    < HTTP/1.1 200 OK
    < Transfer-Encoding: chunked
    < Content-Type: application/xml
    < Date: Tue, 20 Mar 2018 12:23:39 GMT
    < Server: AmazonS3
    < X-Amz-Id-2: gXXi9VCEvx9QTDW+6p9AIrxbZidKYn2AKR62zNi/qQRBP9JkbLPMs4JHh6KKAGwFe+xPFKyneqM=
    < X-Amz-Request-Id: 5F1122895AE2D7AD
    <
    < 7c8
    < <?xml version="1.0" encoding="UTF-8"?>
    < <ListAllMyBucketsResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><Owner><ID>b9133dcb9156fa81f6820f1996e2a20bb8eb9658592c488a061f13d6742c3339</ID><DisplayName>huit-cloudops-awsaccounts+its-awsacct-sand1</DisplayName></Owner><Buckets><Bucket><Name>appstream2-36fb080bb8-us-east-1-999999999999</Name><CreationDate>2018-03-16T14:50:45.000Z</CreationDate></Bucket><Bucket><Name>aws-codestar-us-east-1-999999999999</Name><CreationDate>2018-03-05T18:52:04.000Z</CreationDate></Bucket><Bucket><Name>aws-codestar-us-east-1-999999999999-qefsefsdf-app</Name><CreationDate>2018-03-05T18:52:14.000Z</CreationDate></Bucket><Bucket><Name>aws-codestar-us-east-1-999999999999-qefsefsdf-pipe</Name><CreationDate>2018-03-05T18:52:14.000Z</CreationDate></Bucket><Bucket><Name>aws-glue-scripts-999999999999-us-east-1</Name><CreationDate>2018-03-06T13:51:33.000Z</CreationDate></Bucket><Bucket><Name>aws-glue-temporary-999999999999-us-east-1</Name><CreationDate>2018-03-06T13:51:33.000Z</CreationDate></Bucket><Bucket><Name>aws-logs-999999999999-us-east-1</Name><CreationDate>2018-03-09T16:16:56.000Z</CreationDate></Bucket><Bucket><Name>bgjhdfshjkasbfksgdfkgsadfjhbfdg</Name><CreationDate>2018-03-14T15:18:21.000Z</CreationDate></Bucket><Bucket><Name>cf-templates-mb4b6gt98xhb-us-east-1</Name><CreationDate>2018-03-01T13:12:30.000Z</CreationDate></Bucket><Bucket><Name>codepipeline-us-east-1-374141183811</Name><CreationDate>2018-03-02T18:10:54.000Z</CreationDate></Bucket><Bucket><Name>config-bucket-999999999999</Name><CreationDate>2018-03-05T19:02:48.000Z</CreationDate></Bucket><Bucket><Name>elasticbeanstalk-us-east-1-999999999999</Name><CreationDate>2018-03-09T17:20:09.000Z</CreationDate></Bucket><Bucket><Name>kjhbaskdjhfbkjahbfkhsjdf</Name><CreationDate>2018-03-16T11:15:01.000Z</CreationDate></Bucket><Bucket><Name>sdfsdfsdfsdfsdfsdaasdgasdjfgbkasdjfewa</Name><CreationDate>2018-03-09T18:11:57.000Z</CreationDate></Bucket></Buckets></ListAllMyBucketsResult>
    < 0
DEBU[0003] sending AWS request:
    > GET /appstream2-36fb080bb8-us-east-1-999999999999?location= HTTP/1.1
    > Host: s3.amazonaws.com
    > Authorization: <hidden>
    > User-Agent: aws-sdk-go/1.13.8 (go1.10; darwin; amd64)
    > X-Amz-Content-Sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
    > X-Amz-Date: 20180320T122338Z
DEBU[0003] received AWS response:
    < HTTP/1.1 200 OK
    < Transfer-Encoding: chunked
    < Content-Type: application/xml
    < Date: Tue, 20 Mar 2018 12:23:39 GMT
    < Server: AmazonS3
    < X-Amz-Id-2: bRwBKE5leIgwfa/COEQUpRokxjcd5LqTGvKXXJAHOzd7AVKqpl0Dom6T5sy8xCW3F+SzsNhY2x0=
    < X-Amz-Request-Id: 881332E9496083F2
    <
    < 6c
    < <?xml version="1.0" encoding="UTF-8"?>
    < <LocationConstraint xmlns="http://s3.amazonaws.com/doc/2006-03-01/"/>
    < 0
DEBU[0003] sending AWS request:
    > GET /aws-codestar-us-east-1-999999999999?location= HTTP/1.1
    > Host: s3.amazonaws.com
    > Authorization: <hidden>
    > User-Agent: aws-sdk-go/1.13.8 (go1.10; darwin; amd64)
    > X-Amz-Content-Sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
    > X-Amz-Date: 20180320T122338Z
DEBU[0003] received AWS response:
    < HTTP/1.1 200 OK
    < Transfer-Encoding: chunked
    < Content-Type: application/xml
    < Date: Tue, 20 Mar 2018 12:23:39 GMT
    < Server: AmazonS3
    < X-Amz-Id-2: HMCcXQe1+npp7gw4YP0kEdWSTWoz8anZUZOfmahuNoUtBrOMOWAo6gGhQEyi14oqlaWynsWEAfY=
    < X-Amz-Request-Id: 9366651A7BDE5FC0
    <
    < 6c
    < <?xml version="1.0" encoding="UTF-8"?>
    < <LocationConstraint xmlns="http://s3.amazonaws.com/doc/2006-03-01/"/>
    < 0
DEBU[0003] sending AWS request:
    > GET /aws-codestar-us-east-1-999999999999-qefsefsdf-app?location= HTTP/1.1
    > Host: s3.amazonaws.com
    > Authorization: <hidden>
    > User-Agent: aws-sdk-go/1.13.8 (go1.10; darwin; amd64)
    > X-Amz-Content-Sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
    > X-Amz-Date: 20180320T122338Z
DEBU[0003] received AWS response:
    < HTTP/1.1 200 OK
    < Transfer-Encoding: chunked
    < Content-Type: application/xml
    < Date: Tue, 20 Mar 2018 12:23:39 GMT
    < Server: AmazonS3
    < X-Amz-Id-2: 0AVojuH8sURr1RTV7aertHyKLAUFERLzOF5h1U9FlkbXulG7wSXF6+i30lkEkho3fb2umhLF3IA=
    < X-Amz-Request-Id: 20AA07AE0F23233E
    <
    < 6c
    < <?xml version="1.0" encoding="UTF-8"?>
    < <LocationConstraint xmlns="http://s3.amazonaws.com/doc/2006-03-01/"/>
    < 0
DEBU[0003] sending AWS request:
    > GET /aws-codestar-us-east-1-999999999999-qefsefsdf-pipe?location= HTTP/1.1
    > Host: s3.amazonaws.com
    > Authorization: <hidden>
    > User-Agent: aws-sdk-go/1.13.8 (go1.10; darwin; amd64)
    > X-Amz-Content-Sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
    > X-Amz-Date: 20180320T122338Z
DEBU[0003] received AWS response:
    < HTTP/1.1 200 OK
    < Transfer-Encoding: chunked
    < Content-Type: application/xml
    < Date: Tue, 20 Mar 2018 12:23:39 GMT
    < Server: AmazonS3
    < X-Amz-Id-2: tFd4zW95cRM9m5ma38Uu6A/lGhcMuoNpeiKu3nbkqbHLp5Xadgz7sXjKbWxilzlY4JJsH6TEIOY=
    < X-Amz-Request-Id: 3F59D625C8FBC89D
    <
    < 6c
    < <?xml version="1.0" encoding="UTF-8"?>
    < <LocationConstraint xmlns="http://s3.amazonaws.com/doc/2006-03-01/"/>
    < 0
DEBU[0003] sending AWS request:
    > GET /aws-glue-scripts-999999999999-us-east-1?location= HTTP/1.1
    > Host: s3.amazonaws.com
    > Authorization: <hidden>
    > User-Agent: aws-sdk-go/1.13.8 (go1.10; darwin; amd64)
    > X-Amz-Content-Sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
    > X-Amz-Date: 20180320T122338Z
DEBU[0003] received AWS response:
    < HTTP/1.1 200 OK
    < Transfer-Encoding: chunked
    < Content-Type: application/xml
    < Date: Tue, 20 Mar 2018 12:23:39 GMT
    < Server: AmazonS3
    < X-Amz-Id-2: EWtoeCeNbFK9mOaLgCMpv6vYhy2NQ4gzbxPnEyBUHD/T6QoyfmCiIh3sIQANvKoEtFXAvvW2unQ=
    < X-Amz-Request-Id: 7971C5820561A88C
    <
    < 6c
    < <?xml version="1.0" encoding="UTF-8"?>
    < <LocationConstraint xmlns="http://s3.amazonaws.com/doc/2006-03-01/"/>
    < 0
DEBU[0003] sending AWS request:
    > GET /aws-glue-temporary-999999999999-us-east-1?location= HTTP/1.1
    > Host: s3.amazonaws.com
    > Authorization: <hidden>
    > User-Agent: aws-sdk-go/1.13.8 (go1.10; darwin; amd64)
    > X-Amz-Content-Sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
    > X-Amz-Date: 20180320T122338Z
DEBU[0003] received AWS response:
    < HTTP/1.1 200 OK
    < Transfer-Encoding: chunked
    < Content-Type: application/xml
    < Date: Tue, 20 Mar 2018 12:23:39 GMT
    < Server: AmazonS3
    < X-Amz-Id-2: X8P1KX807mUpDHLJsE/ykvmt/tYmEGl3KdV5ku3f/yoU3nXQdpOxf18ecU7KSlzOpDkph99RT20=
    < X-Amz-Request-Id: B652A21806538010
    <
    < 6c
    < <?xml version="1.0" encoding="UTF-8"?>
    < <LocationConstraint xmlns="http://s3.amazonaws.com/doc/2006-03-01/"/>
    < 0
DEBU[0003] sending AWS request:
    > GET /aws-logs-999999999999-us-east-1?location= HTTP/1.1
    > Host: s3.amazonaws.com
    > Authorization: <hidden>
    > User-Agent: aws-sdk-go/1.13.8 (go1.10; darwin; amd64)
    > X-Amz-Content-Sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
    > X-Amz-Date: 20180320T122338Z
DEBU[0003] received AWS response:
    < HTTP/1.1 200 OK
    < Transfer-Encoding: chunked
    < Content-Type: application/xml
    < Date: Tue, 20 Mar 2018 12:23:39 GMT
    < Server: AmazonS3
    < X-Amz-Id-2: Ac4TJTO4kVHcUg4sHlqhkDnX8DumL62fuifZyZJsHVAW3C7gQPsJXox0mrWVS/mAC5SmdpzddXg=
    < X-Amz-Request-Id: C0DEA381C985ADCF
    <
    < 6c
    < <?xml version="1.0" encoding="UTF-8"?>
    < <LocationConstraint xmlns="http://s3.amazonaws.com/doc/2006-03-01/"/>
    < 0
DEBU[0003] sending AWS request:
    > GET /bgjhdfshjkasbfksgdfkgsadfjhbfdg?location= HTTP/1.1
    > Host: s3.amazonaws.com
    > Authorization: <hidden>
    > User-Agent: aws-sdk-go/1.13.8 (go1.10; darwin; amd64)
    > X-Amz-Content-Sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
    > X-Amz-Date: 20180320T122338Z
DEBU[0003] received AWS response:
    < HTTP/1.1 200 OK
    < Transfer-Encoding: chunked
    < Content-Type: application/xml
    < Date: Tue, 20 Mar 2018 12:23:39 GMT
    < Server: AmazonS3
    < X-Amz-Id-2: hK7+YefikxpQBi3h/7Rp1T/eSf7cMESX12d04yl+O7egNXbjBhzyzhGC4MGDHthhtKvQDp3LJXI=
    < X-Amz-Request-Id: 3ADF83F056F47EB8
    <
    < 6c
    < <?xml version="1.0" encoding="UTF-8"?>
    < <LocationConstraint xmlns="http://s3.amazonaws.com/doc/2006-03-01/"/>
    < 0
DEBU[0003] sending AWS request:
    > GET /cf-templates-mb4b6gt98xhb-us-east-1?location= HTTP/1.1
    > Host: s3.amazonaws.com
    > Authorization: <hidden>
    > User-Agent: aws-sdk-go/1.13.8 (go1.10; darwin; amd64)
    > X-Amz-Content-Sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
    > X-Amz-Date: 20180320T122338Z
DEBU[0003] received AWS response:
    < HTTP/1.1 200 OK
    < Transfer-Encoding: chunked
    < Content-Type: application/xml
    < Date: Tue, 20 Mar 2018 12:23:39 GMT
    < Server: AmazonS3
    < X-Amz-Id-2: trBzAul3d3JRA0PfGYLBzSb8ppDSc5M2rVZsI+3LItguQMX/Yg6dSsx2lQVycpLiRBCIanLyRNA=
    < X-Amz-Request-Id: 6DCBF4E77EBA2DCF
    <
    < 6c
    < <?xml version="1.0" encoding="UTF-8"?>
    < <LocationConstraint xmlns="http://s3.amazonaws.com/doc/2006-03-01/"/>
    < 0
DEBU[0003] sending AWS request:
    > GET /codepipeline-us-east-1-374141183811?location= HTTP/1.1
    > Host: s3.amazonaws.com
    > Authorization: <hidden>
    > User-Agent: aws-sdk-go/1.13.8 (go1.10; darwin; amd64)
    > X-Amz-Content-Sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
    > X-Amz-Date: 20180320T122338Z
DEBU[0003] received AWS response:
    < HTTP/1.1 200 OK
    < Transfer-Encoding: chunked
    < Content-Type: application/xml
    < Date: Tue, 20 Mar 2018 12:23:39 GMT
    < Server: AmazonS3
    < X-Amz-Id-2: uUpIwUb36SpgjFqdVvaqyT6o1p2a4fm4OBOaQoC2Gp48qVjPa9s2KzJR8VUvhchhIkQnS919x8k=
    < X-Amz-Request-Id: 821144F7DE2B7741
    <
    < 6c
    < <?xml version="1.0" encoding="UTF-8"?>
    < <LocationConstraint xmlns="http://s3.amazonaws.com/doc/2006-03-01/"/>
    < 0
DEBU[0003] sending AWS request:
    > GET /config-bucket-999999999999?location= HTTP/1.1
    > Host: s3.amazonaws.com
    > Authorization: <hidden>
    > User-Agent: aws-sdk-go/1.13.8 (go1.10; darwin; amd64)
    > X-Amz-Content-Sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
    > X-Amz-Date: 20180320T122338Z
DEBU[0003] received AWS response:
    < HTTP/1.1 200 OK
    < Transfer-Encoding: chunked
    < Content-Type: application/xml
    < Date: Tue, 20 Mar 2018 12:23:39 GMT
    < Server: AmazonS3
    < X-Amz-Id-2: vfOod2l+K7lr995oKHms+CV2WNwKGTUspX1cTcK9kW6JZkP3TAT0P5FWPJ5z8S6DdNaX1xxZ8FA=
    < X-Amz-Request-Id: 2718594AB4E1066C
    <
    < 6c
    < <?xml version="1.0" encoding="UTF-8"?>
    < <LocationConstraint xmlns="http://s3.amazonaws.com/doc/2006-03-01/"/>
    < 0
DEBU[0003] sending AWS request:
    > GET /elasticbeanstalk-us-east-1-999999999999?location= HTTP/1.1
    > Host: s3.amazonaws.com
    > Authorization: <hidden>
    > User-Agent: aws-sdk-go/1.13.8 (go1.10; darwin; amd64)
    > X-Amz-Content-Sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
    > X-Amz-Date: 20180320T122338Z
DEBU[0003] received AWS response:
    < HTTP/1.1 200 OK
    < Transfer-Encoding: chunked
    < Content-Type: application/xml
    < Date: Tue, 20 Mar 2018 12:23:39 GMT
    < Server: AmazonS3
    < X-Amz-Id-2: gsuA2XkwMzKCrKc/CXl89U4qzAOG9S69rEdhCEoRZ0JAKLuXFteQdUKnmLOfeH9LZNZSdzjWJIY=
    < X-Amz-Request-Id: 97E7AC703AB93C77
    <
    < 6c
    < <?xml version="1.0" encoding="UTF-8"?>
    < <LocationConstraint xmlns="http://s3.amazonaws.com/doc/2006-03-01/"/>
    < 0
DEBU[0003] sending AWS request:
    > GET /kjhbaskdjhfbkjahbfkhsjdf?location= HTTP/1.1
    > Host: s3.amazonaws.com
    > Authorization: <hidden>
    > User-Agent: aws-sdk-go/1.13.8 (go1.10; darwin; amd64)
    > X-Amz-Content-Sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
    > X-Amz-Date: 20180320T122338Z
DEBU[0003] received AWS response:
    < HTTP/1.1 200 OK
    < Transfer-Encoding: chunked
    < Content-Type: application/xml
    < Date: Tue, 20 Mar 2018 12:23:39 GMT
    < Server: AmazonS3
    < X-Amz-Id-2: HkOs7FL6wvy3KKIhDXRv2Ckf/oFT47RW/y0LR7X/5Dv9y/tXTh0gLlBKDBmHuqJkXnpfz+sfIC4=
    < X-Amz-Request-Id: ECA125BDF125E3CD
    <
    < 6c
    < <?xml version="1.0" encoding="UTF-8"?>
    < <LocationConstraint xmlns="http://s3.amazonaws.com/doc/2006-03-01/"/>
    < 0
DEBU[0003] sending AWS request:
    > GET /sdfsdfsdfsdfsdfsdaasdgasdjfgbkasdjfewa?location= HTTP/1.1
    > Host: s3.amazonaws.com
    > Authorization: <hidden>
    > User-Agent: aws-sdk-go/1.13.8 (go1.10; darwin; amd64)
    > X-Amz-Content-Sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
    > X-Amz-Date: 20180320T122338Z
DEBU[0003] received AWS response:
    < HTTP/1.1 200 OK
    < Transfer-Encoding: chunked
    < Content-Type: application/xml
    < Date: Tue, 20 Mar 2018 12:23:39 GMT
    < Server: AmazonS3
    < X-Amz-Id-2: 6QXp18/glVe+fi7myG6zg2acVn3biUBmXyHvx1E7+zPlCvW3cIepppaSJYuE+r/+A2DESPVMCrA=
    < X-Amz-Request-Id: DE47F4696E4F3644
    <
    < 6c
    < <?xml version="1.0" encoding="UTF-8"?>
    < <LocationConstraint xmlns="http://s3.amazonaws.com/doc/2006-03-01/"/>
    < 0
Scan complete: 0 total, 0 nukeable, 0 filtered.

No resource to delete.

Here is the list-buckets

Thomass-MacBook-Pro:aws-nuke thv596$ aws --profile its-sand1 s3api list-buckets
{
    "Buckets": [
        {
            "Name": "appstream2-36fb080bb8-us-east-1-999999999999",
            "CreationDate": "2018-03-16T14:50:45.000Z"
        },
        {
            "Name": "aws-codestar-us-east-1-999999999999",
            "CreationDate": "2018-03-05T18:52:04.000Z"
        },
        {
            "Name": "aws-codestar-us-east-1-999999999999-qefsefsdf-app",
            "CreationDate": "2018-03-05T18:52:14.000Z"
        },
        {
            "Name": "aws-codestar-us-east-1-999999999999-qefsefsdf-pipe",
            "CreationDate": "2018-03-05T18:52:14.000Z"
        },
        {
            "Name": "aws-glue-scripts-999999999999-us-east-1",
            "CreationDate": "2018-03-06T13:51:33.000Z"
        },
        {
            "Name": "aws-glue-temporary-999999999999-us-east-1",
            "CreationDate": "2018-03-06T13:51:33.000Z"
        },
        {
            "Name": "aws-logs-999999999999-us-east-1",
            "CreationDate": "2018-03-09T16:16:56.000Z"
        },
        {
            "Name": "bgjhdfshjkasbfksgdfkgsadfjhbfdg",
            "CreationDate": "2018-03-14T15:18:21.000Z"
        },
        {
            "Name": "cf-templates-mb4b6gt98xhb-us-east-1",
            "CreationDate": "2018-03-01T13:12:30.000Z"
        },
        {
            "Name": "codepipeline-us-east-1-374141183811",
            "CreationDate": "2018-03-02T18:10:54.000Z"
        },
        {
            "Name": "config-bucket-999999999999",
            "CreationDate": "2018-03-05T19:02:48.000Z"
        },
        {
            "Name": "elasticbeanstalk-us-east-1-999999999999",
            "CreationDate": "2018-03-09T17:20:09.000Z"
        },
        {
            "Name": "kjhbaskdjhfbkjahbfkhsjdf",
            "CreationDate": "2018-03-16T11:15:01.000Z"
        },
        {
            "Name": "sdfsdfsdfsdfsdfsdaasdgasdjfgbkasdjfewa",
            "CreationDate": "2018-03-09T18:11:57.000Z"
        }
    ],
    "Owner": {
        "DisplayName": "REDADCTED",
        "ID": "b9133dcb9156fa81f6820f1996e2a20bb8eb9658592c488a061f13d6742c3339"
    }
}

@svenwltr
Copy link
Member Author

Ok, this is, because the bucket location somehow is empty. Not sure how this happened. I though buckets always have a location. I will add a handling for that case.

@svenwltr
Copy link
Member Author

See also aws s3api get-bucket-location --bucket my-bucket.

@tomvachon
Copy link
Contributor

tomvachon commented Mar 20, 2018

@svenwltr ok, these were made a variety of ways, including API, Console, and Wizards

Ah, I found the cause @svenwltr https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketGETlocation.html#RESTBucketGETlocation-responses-response-elements

TL;DR: "When the bucket's region is US East (N. Virginia), Amazon S3 returns an empty string for the bucket's region"

@svenwltr
Copy link
Member Author

I will fix this in another PR, since it is unrelated to global regions.

@svenwltr svenwltr merged commit d8409ed into master Mar 21, 2018
@svenwltr svenwltr deleted the global-region branch March 21, 2018 07:17
@svenwltr svenwltr mentioned this pull request Mar 21, 2018
@svenwltr svenwltr added the kind/enhancement New core feature or improvement of existing ones. label Mar 29, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/enhancement New core feature or improvement of existing ones.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants