JetBrains / JetBrains/kotless

Enable access for Api gateway settings

Open
#84 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
1.2k
Forks
54
PR merge metrics
No merged PRs in 30d

Description

Hey,
i'm using Kotless for my free time projects and i discover some nice feature.
My Spring API uses DynamoDb and creates homepage overview. This overview build takes 1 second. I want to improve it with CloudFront cache. So, i hide my API gateway link behind my own CloudFront distribution, but requests says `Miss from CloudFront`. After some research a discover Api gateway settings named `Endpoint Type`. Default Kotless option is `EDGE`, but this option deploy somewhere API gateway and cover it with CloudFront for better performance, but

`Lambda -> API gateway –> Generated CloudFront –> My own CloudFront` does not supports cache forward headers and my API response is not cached for time written in `content-type` header.

I manuly changed `Endpoint Type` to `REGIONAL` and everything works fine now! But next app deploy changes settings...

Its possible to enable some API gateway configuration in Gradle file?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the Gradle configuration and the API Gateway Endpoint Type setting described in the issue. Confirm how Kotless currently deploys the endpoint and identify the configuration entry point. Done means users can select REGIONAL in Gradle and the setting persists across application deployments.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, kotlin
Domain
api, cloud
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.