Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add S3 tile caching setup to terraform config #634

Closed
KlaasH opened this issue Dec 21, 2018 · 1 comment
Closed

Add S3 tile caching setup to terraform config #634

KlaasH opened this issue Dec 21, 2018 · 1 comment

Comments

@KlaasH
Copy link
Contributor

KlaasH commented Dec 21, 2018

See the issue comment and branch. The idea is to set things up so that

  • tile requests come into the CloudFront distribution (as they do already)
  • CloudFront sends them to an S3 Website set up to serve a bucket of cached tiles
  • The S3 website configuration is set to redirect back to the CloudFront distribution, prepending latest/ to the request path
  • The CloudFront distribution sends all requests that start with latest/ to the API gateway

The first request for a tile will thus be filled by API Gateway, i.e. by an actual Lambda function spinning up and making the tile. But before returning it, the Lambda function will write the tile to the bucket so later requests for the same tile will find it there. The code changes are in a separate issue: #635.

So the task is to set up the Terraform config to provision CloudFront and S3. Until the code side is done, all requests will fall back to the API gateway (though we could manually add tiles to the bucket to test the cache response).

@KlaasH KlaasH added the tiler label Dec 21, 2018
@hectcastro hectcastro modified the milestones: Operations Sprint: 1/4-1/17, Operations Sprint: 1/18-1/31 Jan 9, 2019
@jeancochrane jeancochrane self-assigned this Jan 25, 2019
@jeancochrane jeancochrane removed their assignment Jan 25, 2019
@jeancochrane jeancochrane self-assigned this Jan 28, 2019
@KlaasH KlaasH self-assigned this Jan 29, 2019
@jeancochrane
Copy link
Contributor

Currently blocked waiting on #680.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants