S3 access denied when inserting records into a new table created in Athena

0

I created a simple table with one column in Athena:

CREATE EXTERNAL TABLE IF NOT EXISTS all_event_types( event_subtype string) LOCATION 's3://table-data-location/'

Then insert records retrieved from another table: insert into all_event_types ( select distinct event_subtype from view_house_cs_conversions ) The view_house_cs_conversions has less than 20 unique values of event_subtype.

Athena reported the following error after running for more than a few minutes:

Access Denied (Service: Amazon S3; Status Code: 403; Error Code: AccessDenied; Request ID: MZAFPHBZPHMCPMKG; S3 Extended Request ID: PrYu9ZWEFToxZxX8vcxrxXuq+cBkOUiJnWdgelfyfPmYOnpbyCpoC6UvvQFo+VTPdWPGjnjQ2+I=; Proxy: null).

What causes this?

1개 답변
0
수락된 답변
답변함 일 년 전
  • It is about IAM: The default S3 bucket to store the table data (not schema) does not allow me to write data. I created a new bucket and can write data into the table now.

    Thanks a lot for pointing this out.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠