Skip to content

manage 404 when proxy to an s3 bucket #63

Open
@fabien-h

Description

@fabien-h

Hi and thanks for the package :)

Is there a way to manage the 404 in API gateway when proxying to an s3 bucket?

like so:

    - s3:
        path: /{myKey}
        method: get
        action: GetObject
        bucket:
          Ref: S3Bucket
        key:
          pathParam: myKey
        cors: true

=> this one means that if there is a file for myKey, it will be served. But if there is no file for the requested key, how could we redirect everything to a 404 file ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions