Creating a catalog on AWS S3
When creating a catalog based on AWS S3 storage only the role-arn is a required parameter. However, usually
one also provides the region and
external-id.
Note: the name quickstart_catalog from the example below is referenced in other Getting Started examples,
but of course, it can be any valid catalog name.
1CLIENT_ID=root
2CLIENT_SECRET=s3cr3t
3DEFAULT_BASE_LOCATION=s3://example-bucket/my_data
4ROLE_ARN=arn:aws:iam::111122223333:role/ExampleCorpRole
5REGION=us-west-2
6EXTERNAL_ID=12345678901234567890
7
8./polaris \
9 --client-id ${CLIENT_ID} \
10 --client-secret ${CLIENT_SECRET} \
11 catalogs \
12 create \
13 --storage-type s3 \
14 --default-base-location ${DEFAULT_BASE_LOCATION} \
15 --role-arn ${ROLE_ARN} \
16 --region ${REGION} \
17 --external-id ${EXTERNAL_ID} \
18 quickstart_catalog