Skip to content

Set the S3 Endpoint correctly #877

@joehoyle

Description

@joehoyle

Altis infra uses the global s3 endpoint of s3.amazonaws.com for all region's s3 buckets. Things like S3_Uploads::get_s3_location_for_url() also assumes a global hardcoded hostname. However, if you try to generate URLs with the SDK, it will generate $bucket.s3.$region.amazonaws.com (with the exception of us-east-1, which defaults to the global hostname) style URLs. That's an issue for things like S3 Uploads Private Media as the signature will then not match.

We should make sure that the SDK's S3Client is set to use the global hostname to ensure compatibility with the rest of the Altis infra.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugExisting functionality isn't behaving as expected

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions