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

AWS config issue #55

Closed
jayeshagwan1 opened this issue Jan 28, 2020 · 10 comments
Closed

AWS config issue #55

jayeshagwan1 opened this issue Jan 28, 2020 · 10 comments
Assignees

Comments

@jayeshagwan1
Copy link

I have created AWS config file as mentioned in docs and trying command piicatcher --config awsconfig.ini aws similar to db one.

piicatcher --config dbconfig.ini db works fine.

Getting below error:

image

Below is my config file :

[aws]
access_key="XXXXXX"
secret_key="XXXXX"
staging_dir=""
region="XXXXX"
output_format="glue"
scan_type="deep"
output="XXXXXX"
list_all=True

@vrajat vrajat self-assigned this Jan 28, 2020
@vrajat
Copy link
Member

vrajat commented Jan 28, 2020

I cannot see what is wrong with you ini file. It looks fine to me. However, the following worked for me:

[aws]
access_key="AAAA"
list_all=True
output_format="json"
region="us-east"
scan_type="deep"
secret_key="SSSS"
staging_dir="s3://dir"

I dont see a valid difference. Can you make sure you have the latest version ?

@jayeshagwan1
Copy link
Author

Sorry my bad. Mistake from my side. Was having -(hyphen) instead of _(underscore) in params.

@vrajat vrajat closed this as completed Jan 28, 2020
@jayeshagwan1
Copy link
Author

Getting error while trying to connect :

image

@vrajat
Copy link
Member

vrajat commented Jan 29, 2020 via email

@jayeshagwan1
Copy link
Author

Apart from above parms, do we need to add any specific params for permission or access ?

@vrajat
Copy link
Member

vrajat commented Jan 29, 2020 via email

@jayeshagwan1
Copy link
Author

L44 query results

  table_schema table_name column_name
  table_schema table_name column_name
1 sampledb elb_logs request_timestamp
2 sampledb elb_logs elb_name
3 sampledb elb_logs request_ip
4 sampledb elb_logs backend_ip
5 sampledb elb_logs elb_response_code
6 sampledb elb_logs backend_response_code
7 sampledb elb_logs request_verb
8 sampledb elb_logs url
9 sampledb elb_logs protocol
10 sampledb elb_logs user_agent
11 sampledb elb_logs ssl_cipher
12 sampledb elb_logs ssl_protocol
13 temp pii_data phone
14 temp pii_data email
15 temp pii_data credit_card
16 temp pii_data address
17 temp pii_data person
18 temp pii_data location
19 temp pii_data gender
20 temp pii_data nationality
21 temp pii_data ip_address
22 temp pii_data ssn
23 testdb test5 tst6
24 testdb test6 tst7
25 testdb test8 tst2
26 testdb test9 tst11

@vrajat
Copy link
Member

vrajat commented Jan 29, 2020 via email

@jayeshagwan1
Copy link
Author

Athena is working for shallow type scan. For deep scan it throws below error:
HIVE_UNKNOWN_ERROR: All access to this object has been disabled (Service: Amazon S3; Status Code: 403; Error Code: AllAccessDisabled; Request ID:

Is there any parameter in config where we can pass specific DB to scan ?

@vrajat
Copy link
Member

vrajat commented Feb 5, 2020

I've filed #56. I'll check the best way to support filters and add it.

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

2 participants