Skip to content
This repository has been archived by the owner on Jun 18, 2024. It is now read-only.

Give dev raster API read access to production bucket #66

Open
1 task
j08lue opened this issue Apr 26, 2024 · 3 comments
Open
1 task

Give dev raster API read access to production bucket #66

j08lue opened this issue Apr 26, 2024 · 3 comments
Assignees

Comments

@j08lue
Copy link

j08lue commented Apr 26, 2024

This currently fails:

https://dev.ghg.center/ghgcenter/api/raster/cog/statistics?url=s3%3A%2F%2Fghgc-data-store%2Feccodarwin-co2flux-monthgrid-v5%2FECCO-Darwin_CO2_flux_202212.tif

with the usual

"'/vsis3/ghgc-data-store/eccodarwin-co2flux-monthgrid-v5/ECCO-Darwin_CO2_flux_202212.tif' does not exist in the file system, and is not recognized as a supported dataset name."

Indicating that dev.ghg.center/ghgcenter/api/raster does not have access to the ghgc-data-store bucket. The production API does:

https://ghg.center/api/raster/cog/statistics?url=s3%3A%2F%2Fghgc-data-store%2Feccodarwin-co2flux-monthgrid-v5%2FECCO-Darwin_CO2_flux_202212.tif

Can we give the dev API read access to the production bucket or is there something that speaks against it?

Acceptance criteria

  • Dev Raster API can read files from production bucket
@amarouane-ABDELHAK
Copy link
Collaborator

There is nothing that speaks against it. working on it....

@amarouane-ABDELHAK
Copy link
Collaborator

I've granted temporary cross-account read permissions to the production S3 bucket. This setup will allow access until we determine whether it's necessary to switch to using an assume role instead.

@amarouane-ABDELHAK
Copy link
Collaborator

I will revert the cross-account S3 read permission to deny, and we'll revisit this in the future if we determine it's necessary.

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

No branches or pull requests

2 participants