{"id":8036,"date":"2021-04-09T07:31:04","date_gmt":"2021-04-09T07:31:04","guid":{"rendered":"https:\/\/prwatech.in\/blog\/?p=8036"},"modified":"2024-03-20T06:23:55","modified_gmt":"2024-03-20T06:23:55","slug":"sharing-file-from-one-project-bucket-into-another-project-bucket","status":"publish","type":"post","link":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/cloud-storage\/sharing-file-from-one-project-bucket-into-another-project-bucket\/","title":{"rendered":"Sharing file from one project bucket into another project bucket."},"content":{"rendered":"\r\n<h3><span data-sheets-root=\"1\" data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;Share Cloud Storage bucket with another project (Google Cloud)&quot;}\" data-sheets-userformat=\"{&quot;2&quot;:513,&quot;3&quot;:{&quot;1&quot;:0},&quot;12&quot;:0}\">Share Cloud Storage bucket with another project (Google Cloud)<\/span><\/h3>\r\n<p>&nbsp;<\/p>\r\n<p>Sharing a Cloud Storage bucket with another project in Google Cloud enables seamless collaboration and data sharing between different teams or applications. This feature is particularly valuable in multi-project environments where multiple teams or departments need access to the same set of data stored in Cloud Storage. By sharing a bucket across projects, organizations can centralize data management and promote efficient resource utilization.<\/p>\r\n<p>The process of sharing a Cloud Storage bucket involves granting appropriate permissions to the target project or specific users within that project. This typically includes setting access control lists (ACLs) or defining Identity and Access Management (IAM) policies to specify who can read, write, or manage objects within the shared bucket. Additionally, organizations can leverage Google Cloud&#8217;s advanced features such as VPC Service Controls and Cloud IAM Conditions to enforce fine-grained access control and ensure data security.<\/p>\r\n<p>&nbsp;<\/p>\r\n<h3><strong>Prerequisties<\/strong><\/h3>\r\n\r\n\r\n\r\n<p>Hardware\u00a0 :\u00a0 <a href=\"https:\/\/www.prwatech.com\/course\/gcptraining\" target=\"_blank\" rel=\"noreferrer noopener\" data-type=\"URL\" data-id=\"https:\/\/www.prwatech.com\/course\/gcptraining\">GCP<\/a><\/p>\r\n\r\n\r\n\r\n<p>Google account<\/p>\r\n\r\n\r\n\r\n<p>We might need to copy file from one project <a href=\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/creation-of-bucket\/\" target=\"_blank\" rel=\"noreferrer noopener\" data-type=\"URL\" data-id=\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/creation-of-bucket\/\">bucket<\/a> into another <a href=\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/gcp-google-cloud-platform\/\" target=\"_blank\" rel=\"noreferrer noopener\" data-type=\"URL\" data-id=\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/gcp-google-cloud-platform\/\">project<\/a> bucket. To establish this transfer we have to give the permissions.<\/p>\r\n\r\n\r\n\r\n<p>Open cloud SDK<\/p>\r\n\r\n\r\n\r\n<p>Type<\/p>\r\n\r\n\r\n\r\n<p>\u00a0$\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 gsutil cp gs:\/\/&lt;source_bucket_name&gt;\/*\u00a0 gs:\/\/destination_bucket_name\/<\/p>\r\n\r\n\r\n\r\n<div class=\"wp-block-image\">\r\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-8038\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/04\/1A.jpg\" alt=\"\" width=\"840\" height=\"74\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/04\/1A.jpg 1020w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/04\/1A-300x26.jpg 300w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/04\/1A-768x68.jpg 768w\" sizes=\"auto, (max-width: 840px) 100vw, 840px\" \/><\/figure>\r\n<\/div>\r\n\r\n\r\n\r\n<p>It will show Access Denied Exception. It\u2019s because the destination project is restricting the data transfer from unknown sources. We have to give the permission.<\/p>\r\n\r\n\r\n\r\n<p>Open the Cloud Console in the destination project.<\/p>\r\n\r\n\r\n\r\n<p>Open Menu &gt; IAM &amp; Admin &gt; IAM<\/p>\r\n\r\n\r\n\r\n<div class=\"wp-block-image\">\r\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-8040\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/04\/1-7.jpg\" alt=\"\" width=\"448\" height=\"354\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/04\/1-7.jpg 546w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/04\/1-7-300x237.jpg 300w\" sizes=\"auto, (max-width: 448px) 100vw, 448px\" \/><\/figure>\r\n<\/div>\r\n\r\n\r\n\r\n<p>Click on Add<\/p>\r\n\r\n\r\n\r\n<div class=\"wp-block-image\">\r\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-8039\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/04\/2-7.jpg\" alt=\"\" width=\"434\" height=\"211\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/04\/2-7.jpg 563w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/04\/2-7-300x146.jpg 300w\" sizes=\"auto, (max-width: 434px) 100vw, 434px\" \/><\/figure>\r\n<\/div>\r\n\r\n\r\n\r\n<p>Give the permission of the owner of the Source project in the destination project as object creator.<\/p>\r\n\r\n\r\n\r\n<p>Click Save.<\/p>\r\n\r\n\r\n\r\n<div class=\"wp-block-image\">\r\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-8041\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/04\/3-7.jpg\" alt=\"\" width=\"428\" height=\"357\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/04\/3-7.jpg 701w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/04\/3-7-300x250.jpg 300w\" sizes=\"auto, (max-width: 428px) 100vw, 428px\" \/><\/figure>\r\n<\/div>\r\n\r\n\r\n\r\n<p>Now Execute the below code<\/p>\r\n\r\n\r\n\r\n<p>$\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 gsutil cp gs:\/\/&lt;source_bucket_name&gt;\/*\u00a0 gs:\/\/destination_bucket_name\/<\/p>\r\n\r\n\r\n\r\n<p>Now It will Copy the file from one project into another project<\/p>\r\n\r\n\r\n\r\n<div class=\"wp-block-image\">\r\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-8042\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/04\/4-6.jpg\" alt=\"\" width=\"649\" height=\"321\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/04\/4-6.jpg 794w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/04\/4-6-300x148.jpg 300w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/04\/4-6-768x380.jpg 768w\" sizes=\"auto, (max-width: 649px) 100vw, 649px\" \/><\/figure>\r\n<\/div>\r\n<p>Share Cloud Storage bucket with another project<\/p>\r\n<p>&nbsp;<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>Share Cloud Storage bucket with another project (Google Cloud) &nbsp; Sharing a Cloud Storage bucket with another project in Google Cloud enables seamless collaboration and data sharing between different teams or applications. This feature is particularly valuable in multi-project environments where multiple teams or departments need access to the same set of data stored in [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1630,1],"tags":[605,641,699,700,711,642,683,684,685,611,686],"class_list":["post-8036","post","type-post","status-publish","format-standard","hentry","category-cloud-storage","category-google-cloud-platform","tag-gcp","tag-gcp-bucket","tag-gcp-certification","tag-gcp-cloud-console","tag-gcp-instance","tag-google-cloud-bucket","tag-google-cloud-certification","tag-google-cloud-console","tag-google-cloud-courses","tag-google-cloud-platform","tag-google-cloud-storage"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Share Cloud Storage bucket with another project - Prwatech<\/title>\n<meta name=\"description\" content=\"Master Share Cloud Storage bucket with another project - Dive deep with our expert instructors and comprehensive curriculum.\" \/>\n<meta name=\"robots\" content=\"noindex, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Share Cloud Storage bucket with another project - Prwatech\" \/>\n<meta property=\"og:description\" content=\"Master Share Cloud Storage bucket with another project - Dive deep with our expert instructors and comprehensive curriculum.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/cloud-storage\/sharing-file-from-one-project-bucket-into-another-project-bucket\/\" \/>\n<meta property=\"og:site_name\" content=\"Prwatech\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prwatech.in\/\" \/>\n<meta property=\"article:published_time\" content=\"2021-04-09T07:31:04+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-20T06:23:55+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/04\/1A.jpg\" \/>\n<meta name=\"author\" content=\"Prwatech\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@Eduprwatech\" \/>\n<meta name=\"twitter:site\" content=\"@Eduprwatech\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Prwatech\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/cloud-storage\/sharing-file-from-one-project-bucket-into-another-project-bucket\/\",\"url\":\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/cloud-storage\/sharing-file-from-one-project-bucket-into-another-project-bucket\/\",\"name\":\"Share Cloud Storage bucket with another project - Prwatech\",\"isPartOf\":{\"@id\":\"https:\/\/prwatech.in\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/cloud-storage\/sharing-file-from-one-project-bucket-into-another-project-bucket\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/cloud-storage\/sharing-file-from-one-project-bucket-into-another-project-bucket\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/04\/1A.jpg\",\"datePublished\":\"2021-04-09T07:31:04+00:00\",\"dateModified\":\"2024-03-20T06:23:55+00:00\",\"author\":{\"@id\":\"https:\/\/prwatech.in\/blog\/#\/schema\/person\/db90baff7744090b2288bbc98fea87f3\"},\"description\":\"Master Share Cloud Storage bucket with another project - Dive deep with our expert instructors and comprehensive curriculum.\",\"breadcrumb\":{\"@id\":\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/cloud-storage\/sharing-file-from-one-project-bucket-into-another-project-bucket\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/cloud-storage\/sharing-file-from-one-project-bucket-into-another-project-bucket\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/cloud-storage\/sharing-file-from-one-project-bucket-into-another-project-bucket\/#primaryimage\",\"url\":\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/04\/1A.jpg\",\"contentUrl\":\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/04\/1A.jpg\",\"width\":1020,\"height\":90},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/cloud-storage\/sharing-file-from-one-project-bucket-into-another-project-bucket\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/prwatech.in\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Sharing file from one project bucket into another project bucket.\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/prwatech.in\/blog\/#website\",\"url\":\"https:\/\/prwatech.in\/blog\/\",\"name\":\"Prwatech\",\"description\":\"Share Ideas, Start Something Good.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/prwatech.in\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/prwatech.in\/blog\/#\/schema\/person\/db90baff7744090b2288bbc98fea87f3\",\"name\":\"Prwatech\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/prwatech.in\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/c00bafc1b04045f31eda917de39891456c44fa47c092b9bb6be0f860a3a30a2f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/c00bafc1b04045f31eda917de39891456c44fa47c092b9bb6be0f860a3a30a2f?s=96&d=mm&r=g\",\"caption\":\"Prwatech\"},\"url\":\"https:\/\/prwatech.in\/blog\/author\/prwatech123\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Share Cloud Storage bucket with another project - Prwatech","description":"Master Share Cloud Storage bucket with another project - Dive deep with our expert instructors and comprehensive curriculum.","robots":{"index":"noindex","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"og_locale":"en_US","og_type":"article","og_title":"Share Cloud Storage bucket with another project - Prwatech","og_description":"Master Share Cloud Storage bucket with another project - Dive deep with our expert instructors and comprehensive curriculum.","og_url":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/cloud-storage\/sharing-file-from-one-project-bucket-into-another-project-bucket\/","og_site_name":"Prwatech","article_publisher":"https:\/\/www.facebook.com\/prwatech.in\/","article_published_time":"2021-04-09T07:31:04+00:00","article_modified_time":"2024-03-20T06:23:55+00:00","og_image":[{"url":"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/04\/1A.jpg","type":"","width":"","height":""}],"author":"Prwatech","twitter_card":"summary_large_image","twitter_creator":"@Eduprwatech","twitter_site":"@Eduprwatech","twitter_misc":{"Written by":"Prwatech","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/cloud-storage\/sharing-file-from-one-project-bucket-into-another-project-bucket\/","url":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/cloud-storage\/sharing-file-from-one-project-bucket-into-another-project-bucket\/","name":"Share Cloud Storage bucket with another project - Prwatech","isPartOf":{"@id":"https:\/\/prwatech.in\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/cloud-storage\/sharing-file-from-one-project-bucket-into-another-project-bucket\/#primaryimage"},"image":{"@id":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/cloud-storage\/sharing-file-from-one-project-bucket-into-another-project-bucket\/#primaryimage"},"thumbnailUrl":"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/04\/1A.jpg","datePublished":"2021-04-09T07:31:04+00:00","dateModified":"2024-03-20T06:23:55+00:00","author":{"@id":"https:\/\/prwatech.in\/blog\/#\/schema\/person\/db90baff7744090b2288bbc98fea87f3"},"description":"Master Share Cloud Storage bucket with another project - Dive deep with our expert instructors and comprehensive curriculum.","breadcrumb":{"@id":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/cloud-storage\/sharing-file-from-one-project-bucket-into-another-project-bucket\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/prwatech.in\/blog\/google-cloud-platform\/cloud-storage\/sharing-file-from-one-project-bucket-into-another-project-bucket\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/cloud-storage\/sharing-file-from-one-project-bucket-into-another-project-bucket\/#primaryimage","url":"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/04\/1A.jpg","contentUrl":"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/04\/1A.jpg","width":1020,"height":90},{"@type":"BreadcrumbList","@id":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/cloud-storage\/sharing-file-from-one-project-bucket-into-another-project-bucket\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/prwatech.in\/blog\/"},{"@type":"ListItem","position":2,"name":"Sharing file from one project bucket into another project bucket."}]},{"@type":"WebSite","@id":"https:\/\/prwatech.in\/blog\/#website","url":"https:\/\/prwatech.in\/blog\/","name":"Prwatech","description":"Share Ideas, Start Something Good.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/prwatech.in\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/prwatech.in\/blog\/#\/schema\/person\/db90baff7744090b2288bbc98fea87f3","name":"Prwatech","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/prwatech.in\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/c00bafc1b04045f31eda917de39891456c44fa47c092b9bb6be0f860a3a30a2f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c00bafc1b04045f31eda917de39891456c44fa47c092b9bb6be0f860a3a30a2f?s=96&d=mm&r=g","caption":"Prwatech"},"url":"https:\/\/prwatech.in\/blog\/author\/prwatech123\/"}]}},"_links":{"self":[{"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/posts\/8036","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/comments?post=8036"}],"version-history":[{"count":6,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/posts\/8036\/revisions"}],"predecessor-version":[{"id":10984,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/posts\/8036\/revisions\/10984"}],"wp:attachment":[{"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/media?parent=8036"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/categories?post=8036"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/tags?post=8036"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}