Creating a Supabase Instance
-
In the console, navigate to “Cloud Database UDB PostgreSQL” > “Supabase Management” and click “Create Supabase.”
-
On the creation page, select the region and availability zone.
-
Configure the Supabase password and port. The Dashboard username is fixed as Supabase.
-
Configure PostgreSQL. Click “Modify” next to the database version to change the version and configuration file; click “Modify” below the database port field to update the database port.
-
Configure the network by selecting the required VPC and subnet.
-
Enter the Supabase instance name.
-
Review all configuration details and the associated cost, then confirm and complete payment.
-
After payment, the page redirects to the Supabase Management page. The instance will enter an initializing state and will be ready to use once initialization is complete.
-
On the Supabase Management page, select an instance and click “Details” to view its detailed information.
Configuring External Network Access
-
On the instance details page, enable external network access. The Supabase service will restart when external access is enabled, and access will take effect after the restart completes.
-
Confirm the bandwidth for the external network configuration, complete payment, and wait for Supabase to restart. External access will be available once the restart is complete.
-
Configure the allowlist. After external network access is enabled, the allowlist is empty by default and Supabase cannot be accessed. Add the allowed IP addresses or CIDR ranges to the allowlist to enable access.
Configuring S3 Storage
- On the Supabase instance details page, click “Storage Configuration” to update the settings. After submitting the changes, the Supabase service will restart and the configuration will take effect after the restart.
Configuration parameters:
- AWS_ACCESS_KEY_ID: The S3 storage public key, corresponding to the public key in US3 token management.
- AWS_SECRET_ACCESS_KEY: The S3 storage private key, corresponding to the private key in US3 token management.
- FILE_SIZE_LIMIT: The file size limit for uploads, in bytes.
- GLOBAL_S3_BUCKET: The name of the primary bucket for storing all files. Supabase organizes data within this bucket using a specific path structure.
- GLOBAL_S3_ENDPOINT: The S3 storage access domain. An AWS S3-compatible endpoint must be used. For US3 endpoints, refer to the US3 documentation.
- REGION: The geographic region of the S3 bucket. For region names, refer to the region list documentation.
- S3_PROTOCOL_ACCESS_KEY_ID: The access key ID used when S3 protocol mode is enabled.
- S3_PROTOCOL_ACCESS_KEY_SECRET: The secret key corresponding to S3 protocol mode.
- S3_PROTOCOL_ENABLED: A boolean value (true/false). When enabled, Supabase allows communication via S3-compatible mode, rather than being limited to the standard AWS environment.
- TENANT_ID: The tenant ID.