-
-
Notifications
You must be signed in to change notification settings - Fork 197
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
Unable to remote load a tegola config from S3 #881
Comments
@matrottier I have set it up numerous times, though I just looked at my setup and I do have my S3 buckets publicly available as I'm using the architecture in this article: https://medium.com/@alexrolek/the-serverless-vector-map-stack-lives-22835d341d7d Do you want every request to run through Lambda, or just tiles that have not yet been generated? |
@matrottier I think that's a dangerous approach unless you're creating some sort of version prefix as the config changes. Without being mindful of the changes, your cache could contain outputs from numerous configs and you don't know which version they're derived from. A couple of questions for you:
|
for the config, i was thinking about clearing the cache when the config is updated. something like that
|
@matrottier ok in that case, I think could skip using S3 entirely, and just set a TTL at the CDN for 30 minutes. Let's assume you dropped S3 from your architecture, would that make the permission issue you're encountering going away, or is the config file in S3? |
config file in S3. |
Ok, so that's the underlying issue (I'm going to adjust the title of this issue). When you first opened this, I thought you were referring to using S3 as your cache, but what you're doing is trying to load a remote config from S3. Tegola only has http(s) loading capabilities for the remote config. For S3, you can have it operate as a static web server, and I believe that requires the public be publicly available. Tegola could be enhanced to load configs from S3, if you want to take a pass at implementing it. |
Anybody tried a config file in S3 bucket + Tegola Lambda ?
i'm missing something with the permission on the bucket.
it's working only if my bucket is public.
i tried a "bucket policy" with the ARN of my lambda's role AND a permission policie for my lambda's role.
I would like it to be possible only with the role of the lambda.
It's more a question on the "so easy" AWS autorisation 🙄 , but a take a chance 🤞
The text was updated successfully, but these errors were encountered: