turborepo-remote-cache: Lambda/API Gateway integration not working
š Bug Report
After configuring the server using Lambda/API Gateway setup, Iām running into issues where all the caches are a MISS. Similar to: https://github.com/ducktors/turborepo-remote-cache/issues/28
When there is a cache miss, the server properly adds the caches to S3. However, on a sub sequential turbo run with no changes to source code, the server responds with a 200, saying that we have a cache hit on the GET /artifacts/:id call. But then there is no POST /artifacts/events, so it thinks it was a cache miss and makes a sub sequential PUT /artifacts/:id, replacing already existing cache.
Running this locally works without problems
here is what my configs for openapi/REST API Gateway look like
paths:
'/v8/{proxy+}':
x-amazon-apigateway-any-method:
parameters:
- name: proxy
in: path
required: true
schema:
type: string
responses: {}
x-amazon-apigateway-integration:
# ref: https://docs.aws.amazon.com/apigateway/api-reference/resource/integration/
uri: --REDACTED--
httpMethod: POST
passthroughBehavior: when_no_match
type: aws_proxy
credentials: --REDACTED--
- server: turborepo-remote-cache: ā1.14.1ā
- client: turbo: ā1.8.8ā
About this issue
- Original URL
- State: open
- Created a year ago
- Comments: 15
@Elliot-Alexander For me everything works correctly when using AWS HTTP Gateway. The problem only appears when I use AWS REST Gateway