aws_commons
aws_commons · Common helper objects used by Amazon RDS/Aurora PostgreSQL AWS extensions.
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 100958 | aws_commons | aws_commons | 1.2 | UTIL | Unknown | SQL |
PostgreSQL · 10, 11, 12, 13, 14, 15, 16, 17, 18
Usage
Sources:
aws_commons is an Amazon RDS for PostgreSQL helper extension that constructs the composite S3 URI and credential values consumed by aws_s3. It is provider-only: these objects are supplied by RDS, not by community PostgreSQL packages, and version 1.2 availability depends on the RDS engine release.
Core Workflow
Enable the provider extensions with an RDS privileged account, then build an S3 object descriptor:
Pass that value to an aws_s3 import call. The import options use PostgreSQL COPY syntax:
Important Objects
aws_commons.create_s3_uri(bucket, file_path, region)returns anaws_commons._s3_uri_1value identifying one S3 object.aws_commons.create_aws_credentials(access_key, secret_key, session_token)returns anaws_commons._aws_credentials_1value for the credential-takingaws_s3overload.
Operational Notes
Prefer an IAM role attached to the RDS instance so SQL does not contain access keys. If explicit credentials are unavoidable, use temporary credentials, restrict SQL visibility and logging, and never persist the returned composite value. Bucket policy, IAM permissions, network reachability, object format, and the target table remain separate prerequisites. Consult the documentation for the exact RDS major/minor engine because the extension cannot be installed on self-managed PostgreSQL and its functions may vary by provider release.