Following is the syntax for the CREATE DATALAKE, Create AUTHORIZATION statements:
REPLACE AUTHORIZATION polaris_catalog_auth
USER '<<user>>'
PASSWORD '<<password>>';
REPLACE AUTHORIZATION aws_storage_auth
USER '<<user>>'
PASSWORD '<<password>>';
REPLACE DATALAKE iceberg_polaris_aws_rest
EXTERNAL SECURITY CATALOG polaris_catalog_auth,
EXTERNAL SECURITY STORAGE aws_storage_auth
USING
catalog_type ('<<catalog_type>>')
rest_catalog_type('<<rest_catalog_type>>')
catalog_location ('<<catalog_location>>')
catalog_name('<<catalog_name>>')
catalog_headers('<<catalog_headers>>')
idp_location('<<idp_location>>')
storage_region ('<<storage_region>>')
storage_location ('<<storage_location>>')
tenant_id('<<tenant_id>>')
storage_account_name('<<storage_account_name>>')
project_id('<<project_id>>')
client_id('<<client_id>>')
client_email('<<client_email>>')
TABLE FORMAT iceberg;
In the following sections, each name-value pair used for datalake creation and authorization is explained in detail. Update these values based on your environment and configuration requirements.