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

Region for default bucket is always US #206

Open
thgsponer opened this issue Sep 15, 2023 · 4 comments
Open

Region for default bucket is always US #206

thgsponer opened this issue Sep 15, 2023 · 4 comments

Comments

@thgsponer
Copy link

Hi Mark,

The GCS_DEFAULT_BUCKET is always created in the US region. So, I created it "manually" using gcs_create_bucket with my preferred region. When deploying apps, e.g. plumber app, there is another bucket created, something like artifacts.my-cloudrunner-thing.appspot.com. This is also created in US region. I did not figure out how to change this to my preferred region.

Would it make sense to introduce an environment variable GCS_DEFAULT_REGION, so that all buckets are created my preferred region?

Or do you see another solution?

@MarkEdmondson1234
Copy link
Owner

If you use the setup function it does always do it in the US, but you can create it yourself in the EU or region you want and supply that instead. googleCloudStorageR is loaded in the namespace anyway so you don't need to install anything extra.

@MarkEdmondson1234
Copy link
Owner

Being able to change the region though would be nice, the code that currently does creates the bucket is here:
make_new_bucket <- function(){

@thgsponer
Copy link
Author

thgsponer commented Sep 15, 2023

If you use the setup function it does always do it in the US, but you can create it yourself in the EU or region you want and supply that instead. googleCloudStorageR is loaded in the namespace anyway so you don't need to install anything extra.

Yes, I see. This works for the default bucket.

There is, however, an additional bucket that is generated wich is called something like

artifacts.my-cloudrunner-thing.appspot.com

and it seems not possible to create this manually. Since it looks like website adress GCP somehow wants to check access to this site.

Is this bucket also created with the function you referred above?

@MarkEdmondson1234
Copy link
Owner

MarkEdmondson1234 commented Sep 15, 2023

Ooh I see, that is from the Container Registry, which is actually deprecated in favour of Artifact Registry - it would be nice to directly support that instead. It's where the Docker images are kept.

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

No branches or pull requests

2 participants