Wednesday, December 23, 2015

Re: [google-cloud-sql-discuss] Re: 2nd Generation export permission?

*eat my hat on bucket permissions.

Yup this worked perfect, thank you very much for the help.

Brian



On Wednesday, December 23, 2015 at 12:29:59 PM UTC-5, Razvan Musaloiu-E. wrote:
Each 2n generation instance is using an individual service account (you can see in the Developers Console or retrieve by using 'gcloud sql instances describe'). You need to give appropriate access to the bucket to that service account in order for the export/import to work.

Just for completeness, the import/export in 1st generation instances are using the caller credentials.

-- Razvan ME

On Wed, Dec 23, 2015 at 7:21 AM, Brian Wawok <bwa...@gmail.com> wrote:
And from the command line my error is like:

-ERROR: (gcloud.sql.instances.export) ERROR_RDBMS

It is not a bucket permission issue because I can write to it just fine (for example from 1st gen export)

On Wednesday, December 23, 2015 at 10:13:25 AM UTC-5, Brian Wawok wrote:
I have a simple cron that runs as me, project owner, to do a daily cloud sql backup to nearline storage.

Very simple command like:

 gcloud sql instances export my-database gs://my-nearline-bucket/`date +\%Y/\%m/\%d/\%H-\%M`-backup.gz

Worked in 1st gen.. but now after moving to 2nd gen I see:

gs://my-nearline-bucket/2015/12/23/00-04-backup.gz Access denied (permission issue?)

What magic am I missing to allow the project owner permission to run gcloud sql instances export  ?

Thanks!





--
You received this message because you are subscribed to the Google Groups "Google Cloud SQL discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-sql-discuss+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-sql-discuss/bda1c677-aa48-4a5a-9886-c2da5f1e8431%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment