{"id":8123,"date":"2026-10-04T07:33:16","date_gmt":"2026-10-04T07:33:16","guid":{"rendered":"https:\/\/prwatech.in\/blog\/?p=8123"},"modified":"2026-10-05T14:29:57","modified_gmt":"2026-10-05T14:29:57","slug":"creating-labels-in-gcp-update-labels-for-projects","status":"publish","type":"post","link":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/iam\/creating-labels-in-gcp-update-labels-for-projects\/","title":{"rendered":"Creating Labels in GCP"},"content":{"rendered":"\r\n<h1>Creating and Updating Labels in Google Cloud<\/h1>\r\n<p class=\"wp-block-paragraph\">&nbsp;<\/p>\r\n<p>A <strong><b>label<\/b><\/strong>\u00a0is a key and value pair that you attach to a Google Cloud resource, such as environment and production, or team and analytics. Labels are descriptive metadata. They let you filter and group resources, but they cannot be used to set conditions on access policies.<\/p>\r\n<p>Most teams add labels for cost reasons. Information about labels is passed to the billing system, so the built in billing reports can filter and group your charges by label, and you can export billing data to BigQuery with the labels included and query it. Without labels, spending is grouped by service. With labels, you can see which team, application, or environment is behind a number.<\/p>\r\n<p>This walks through adding a label to a project from the console, then updating and removing labels, followed by the rules labels have to follow, how labels differ from tags, and how to use them for cost reporting.<\/p>\r\n<h2>Step by step Process of Creating and Updating Labels in Google Cloud<\/h2>\r\n<h3>Step One: Open Labels<\/h3>\r\n<p>Open the console, then the menu, then IAM and Admin, then Labels. Click Add Label.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Open Cloud Console<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Open Menu &gt; IAM &amp; Admin &gt; Labels<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Click on Add Label<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-8124\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/04\/1-11.jpg\" alt=\"\" width=\"396\" height=\"261\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/04\/1-11.jpg 598w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/04\/1-11-300x198.jpg 300w\" sizes=\"auto, (max-width: 396px) 100vw, 396px\" \/><\/figure>\r\n\r\n\r\n\r\n<h3>Step Two: Enter a Key and a Value<\/h3>\r\n<p class=\"wp-block-paragraph\">Type a key and a value, then click Save. Keep the key short and consistent, since the same key will need to be used on every project you want to compare later.<\/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-8125\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/04\/2-11.jpg\" alt=\"\" width=\"435\" height=\"247\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/04\/2-11.jpg 636w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/04\/2-11-300x170.jpg 300w\" sizes=\"auto, (max-width: 435px) 100vw, 435px\" \/><\/figure>\r\n<\/div>\r\n\r\n\r\n\r\n<h3>Step Three: Confirm the Label Is Saved<\/h3>\r\n<p class=\"wp-block-paragraph\">The label is saved and appears in the list for the 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-8126\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/04\/3-11.jpg\" alt=\"\" width=\"352\" height=\"68\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/04\/3-11.jpg 456w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/04\/3-11-300x58.jpg 300w\" sizes=\"auto, (max-width: 352px) 100vw, 352px\" \/><\/figure>\r\n<h2>Updating or Removing a Label<\/h2>\r\n<p>To update a label, return to the same Labels page for the project, change the value you want to update, and click Save. If you need a different key rather than a different value, the cleanest way is to remove the old label and add a new one.<\/p>\r\n<p>To remove a label, use the remove option next to it on that page, then save. Google&#8217;s documentation notes that a label can be removed from a resource at any time, which is not true of a tag, covered below. Because labels are descriptive, removing or changing one does not change who can access the project, but any billing report that groups by that label will change with it.<\/p>\r\n<h2>Rules for Label Keys and Values<\/h2>\r\n<ul>\r\n<li>Each resource can have up to 64 labels.<\/li>\r\n<li>A key and a value can each be up to 63 characters long.<\/li>\r\n<li>A key must start with a lowercase letter and cannot be empty.<\/li>\r\n<li>Keys and values can contain lowercase letters, numbers, underscores, and dashes, and international characters are allowed.<\/li>\r\n<\/ul>\r\n<p>These are the general requirements. A specific service can add its own, so if a label is rejected, check that service&#8217;s documentation.<\/p>\r\n<h2>Labels Compared to Tags<\/h2>\r\n<p>Google Cloud uses the word tags for more than one thing, which is why this causes so much confusion.<\/p>\r\n<ul>\r\n<li><b><\/b><strong><b>Labels, <\/b><\/strong>are defined on each individual resource, and are used to filter, group, and break down billing. They cannot be used to set conditions on policies.<\/li>\r\n<li><b><\/b><strong><b>Resource Manager tags, <\/b><\/strong>are created at the organization or project level and then attached to resources. They are used to allow or deny policies conditionally, for example in IAM conditions, and a tag cannot be deleted while it is still attached to a resource.<\/li>\r\n<li><b><\/b><strong><b>Network tags, <\/b><\/strong>are an older, separate idea on Compute Engine, used to decide which firewall rules and routes apply to which virtual machines.<\/li>\r\n<\/ul>\r\n<p>A common pattern is to use labels for things like cost center and application name, and tags for something like environment where a policy needs to depend on it.<\/p>\r\n<h2>Using Labels for Cost Reporting<\/h2>\r\n<p>In the Cloud Billing reports, you can filter or group costs by label. For deeper analysis, turn on billing export to BigQuery. Labels are exported alongside each resource and its usage, so you can query for something like the cost of all test resources compared with production, or how much one particular service costs. The BigQuery guides in this series cover running queries like these.<\/p>\r\n<h2>Naming Labels Consistently<\/h2>\r\n<ul>\r\n<li>Agree on a small set of keys up front, such as environment, team, cost_center, and application, and use the same spelling on every project.<\/li>\r\n<li>Pick one value for each meaning. If some projects use prod and others use production, billing reports will treat them as two separate groups.<\/li>\r\n<li>Label the resources you actually want to report on, not only the project. Labels are defined on each resource, so a label on a project does not automatically appear on the resources inside it.<\/li>\r\n<\/ul>\r\n<h2>Common Mistakes to Avoid<\/h2>\r\n<ul>\r\n<li>Expecting a label to control access. Labels cannot set policy conditions. If a policy needs to depend on a property of a resource, that is what Resource Manager tags are for.<\/li>\r\n<li>Using inconsistent keys or values across projects. A report can only group what is spelled the same way.<\/li>\r\n<li>Labeling only the project and assuming everything inside it is labeled too. Label the individual resources you need to see in a report.<\/li>\r\n<li>Putting personal details or secrets into a label. Labels show up in billing data and resource listings, so keep them to plain descriptive values.<\/li>\r\n<\/ul>\r\n<p>That covers adding, updating, and removing labels on a project, and using them to make billing readable. To go further, explore <strong><b>Prwatech&#8217;s Google Cloud training<\/b><\/strong>\u00a0program, which includes placement assistance.<\/p>\r\n<\/div>\r\n","protected":false},"excerpt":{"rendered":"<p>Creating and Updating Labels in Google Cloud &nbsp; A label\u00a0is a key and value pair that you attach to a Google Cloud resource, such as environment and production, or team and analytics. Labels are descriptive metadata. They let you filter and group resources, but they cannot be used to set conditions on access policies. Most [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,1633],"tags":[605,699,700,979,683,684,685,611,980],"class_list":["post-8123","post","type-post","status-publish","format-standard","hentry","category-google-cloud-platform","category-iam","tag-gcp","tag-gcp-certification","tag-gcp-cloud-console","tag-gcp-labels","tag-google-cloud-certification","tag-google-cloud-console","tag-google-cloud-courses","tag-google-cloud-platform","tag-labels-in-gcp"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Google Cloud Labels Explained: Create, Update &amp; Remove Them<\/title>\n<meta name=\"description\" content=\"Create, update, and remove labels on a Google Cloud project, learn how labels differ from tags, and use them to break down your billing. Step by step process\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/iam\/creating-labels-in-gcp-update-labels-for-projects\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Google Cloud Labels Explained: Create, Update &amp; Remove Them\" \/>\n<meta property=\"og:description\" content=\"Create, update, and remove labels on a Google Cloud project, learn how labels differ from tags, and use them to break down your billing. Step by step process\" \/>\n<meta property=\"og:url\" content=\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/iam\/creating-labels-in-gcp-update-labels-for-projects\/\" \/>\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=\"2026-10-04T07:33:16+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-10-05T14:29:57+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/04\/1-11.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"598\" \/>\n\t<meta property=\"og:image:height\" content=\"395\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\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=\"5 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\/iam\/creating-labels-in-gcp-update-labels-for-projects\/\",\"url\":\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/iam\/creating-labels-in-gcp-update-labels-for-projects\/\",\"name\":\"Google Cloud Labels Explained: Create, Update & Remove Them\",\"isPartOf\":{\"@id\":\"https:\/\/prwatech.in\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/iam\/creating-labels-in-gcp-update-labels-for-projects\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/iam\/creating-labels-in-gcp-update-labels-for-projects\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/04\/1-11.jpg\",\"datePublished\":\"2026-10-04T07:33:16+00:00\",\"dateModified\":\"2026-10-05T14:29:57+00:00\",\"author\":{\"@id\":\"https:\/\/prwatech.in\/blog\/#\/schema\/person\/db90baff7744090b2288bbc98fea87f3\"},\"description\":\"Create, update, and remove labels on a Google Cloud project, learn how labels differ from tags, and use them to break down your billing. Step by step process\",\"breadcrumb\":{\"@id\":\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/iam\/creating-labels-in-gcp-update-labels-for-projects\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/iam\/creating-labels-in-gcp-update-labels-for-projects\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/iam\/creating-labels-in-gcp-update-labels-for-projects\/#primaryimage\",\"url\":\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/04\/1-11.jpg\",\"contentUrl\":\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/04\/1-11.jpg\",\"width\":598,\"height\":395},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/iam\/creating-labels-in-gcp-update-labels-for-projects\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/prwatech.in\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Creating Labels in GCP\"}]},{\"@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":"Google Cloud Labels Explained: Create, Update & Remove Them","description":"Create, update, and remove labels on a Google Cloud project, learn how labels differ from tags, and use them to break down your billing. Step by step process","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/iam\/creating-labels-in-gcp-update-labels-for-projects\/","og_locale":"en_US","og_type":"article","og_title":"Google Cloud Labels Explained: Create, Update & Remove Them","og_description":"Create, update, and remove labels on a Google Cloud project, learn how labels differ from tags, and use them to break down your billing. Step by step process","og_url":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/iam\/creating-labels-in-gcp-update-labels-for-projects\/","og_site_name":"Prwatech","article_publisher":"https:\/\/www.facebook.com\/prwatech.in\/","article_published_time":"2026-10-04T07:33:16+00:00","article_modified_time":"2026-10-05T14:29:57+00:00","og_image":[{"width":598,"height":395,"url":"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/04\/1-11.jpg","type":"image\/jpeg"}],"author":"Prwatech","twitter_card":"summary_large_image","twitter_creator":"@Eduprwatech","twitter_site":"@Eduprwatech","twitter_misc":{"Written by":"Prwatech","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/iam\/creating-labels-in-gcp-update-labels-for-projects\/","url":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/iam\/creating-labels-in-gcp-update-labels-for-projects\/","name":"Google Cloud Labels Explained: Create, Update & Remove Them","isPartOf":{"@id":"https:\/\/prwatech.in\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/iam\/creating-labels-in-gcp-update-labels-for-projects\/#primaryimage"},"image":{"@id":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/iam\/creating-labels-in-gcp-update-labels-for-projects\/#primaryimage"},"thumbnailUrl":"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/04\/1-11.jpg","datePublished":"2026-10-04T07:33:16+00:00","dateModified":"2026-10-05T14:29:57+00:00","author":{"@id":"https:\/\/prwatech.in\/blog\/#\/schema\/person\/db90baff7744090b2288bbc98fea87f3"},"description":"Create, update, and remove labels on a Google Cloud project, learn how labels differ from tags, and use them to break down your billing. Step by step process","breadcrumb":{"@id":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/iam\/creating-labels-in-gcp-update-labels-for-projects\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/prwatech.in\/blog\/google-cloud-platform\/iam\/creating-labels-in-gcp-update-labels-for-projects\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/iam\/creating-labels-in-gcp-update-labels-for-projects\/#primaryimage","url":"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/04\/1-11.jpg","contentUrl":"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/04\/1-11.jpg","width":598,"height":395},{"@type":"BreadcrumbList","@id":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/iam\/creating-labels-in-gcp-update-labels-for-projects\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/prwatech.in\/blog\/"},{"@type":"ListItem","position":2,"name":"Creating Labels in GCP"}]},{"@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\/8123","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=8123"}],"version-history":[{"count":7,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/posts\/8123\/revisions"}],"predecessor-version":[{"id":11862,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/posts\/8123\/revisions\/11862"}],"wp:attachment":[{"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/media?parent=8123"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/categories?post=8123"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/tags?post=8123"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}