Setup:
s3://datacontract-iceberg-demo
s3://entropy-data-demo-athena-results-dfhsiuya
In Athena run:
CREATE DATABASE icebergdemodb
In Athena run:
CREATE TABLE athena_iceberg_table_partitioned (
color string,
date string,
name string,
price bigint,
product string,
ts timestamp)
PARTITIONED BY (day(ts))
LOCATION 's3://datacontract-iceberg-demo/ice_warehouse/iceberg_db/athena_iceberg_table/'
TBLPROPERTIES (
'table_type' ='ICEBERG'
)
In Athena run:
INSERT INTO "icebergdemodb"."athena_iceberg_table_partitioned" VALUES (
'red', '222022-07-19T03:47:29', 'PersonNew', 178, 'Tuna', now()
)
No permissions needed
E.g. datacontract-cli-unittests
Use type other
Save them in .env file
DATACONTRACT_S3_ACCESS_KEY_ID=AKIA...
DATACONTRACT_S3_SECRET_ACCESS_KEY=...
In Glue -> https://eu-central-1.console.aws.amazon.com/glue/home?region=eu-central-1#/v2/iam-permissions/select-users
Select the S3 bucket
Create the standard role AWSGlueServiceRole