{"id":31019,"date":"2017-04-28T08:33:20","date_gmt":"2017-04-28T06:33:20","guid":{"rendered":"https:\/\/fotc.com\/automatyczne-tworzenie-projektu-przy-uzyciu-google-cloud-deployment-manager\/"},"modified":"2022-05-25T16:28:29","modified_gmt":"2022-05-25T14:28:29","slug":"automatyczne-tworzenie-projektu-przy-uzyciu-google-cloud-deployment-manager","status":"publish","type":"post","link":"https:\/\/fotc.com\/pl\/blog\/automatyczne-tworzenie-projektu-przy-uzyciu-google-cloud-deployment-manager\/","title":{"rendered":"Automatyczne tworzenie projektu przy u\u017cyciu Google Cloud Deployment Manager"},"content":{"rendered":"<p><span>Podstawow\u0105 jednostk\u0105 strukturaln\u0105 wewn\u0105trz <span style=\"text-decoration: underline;\"><span style=\"color: #0000ff;\"><a style=\"color: #0000ff; text-decoration: underline;\" href=\"https:\/\/fotc.com\/google-cloud-platform\/\" target=\"_blank\" rel=\"noopener noreferrer\">Google Cloud Platform<\/a><\/span><\/span> jest projekt. W jego obr\u0119bie mo\u017cna u\u017cywa\u0107 wielu us\u0142ug GCP. Je\u015bli firma potrzebuje stworzy\u0107 wiele projekt\u00f3w, przychodzi potrzeba zautomatyzowania takiego procesu. Google niedawno pokaza\u0142 narz\u0119dzie kt\u00f3re to u\u0142atwi. <\/span><\/p>\n<p><span><a href=\"http:\/\/cloud.google.com\/deployment-manager\/\" target=\"_blank\" rel=\"noopener noreferrer nofollow\"><span style=\"text-decoration: underline;\"><span style=\"color: #0000ff; text-decoration: underline;\">Google Cloud Deplyoment Manager<\/span><\/span><\/a> jest narz\u0119dziem Google Cloud Platform, kt\u00f3re pozwala tworzy\u0107 i zarz\u0105dza\u0107 zasobami GCP, wliczaj\u0105c w to <a href=\"http:\/\/cloud.google.com\/compute\/\" target=\"_blank\" rel=\"noopener noreferrer nofollow\"><span style=\"text-decoration: underline;\"><span style=\"color: #0000ff; text-decoration: underline;\">Compute Engine<\/span><\/span><\/a>, <a href=\"http:\/\/cloud.google.com\/container-engine\/\" target=\"_blank\" rel=\"noopener noreferrer nofollow\"><span style=\"text-decoration: underline; color: #0000ff;\">Conainter Engine<\/span><\/a>,<a href=\"http:\/\/cloud.google.com\/sql\/\" target=\"_blank\" rel=\"noopener noreferrer nofolloww\"><span style=\"text-decoration: underline;\"><span style=\"color: #0000ff; text-decoration: underline;\"> Cloud SQL<\/span><\/span><\/a>, <a href=\"http:\/\/cloud.google.com\/bigquery\/\" target=\"_blank\" rel=\"noopener noreferrer nofollow\"><span style=\"text-decoration: underline;\"><span style=\"color: #0000ff; text-decoration: underline;\">BigQuery<\/span><\/span><\/a> oraz <a href=\"http:\/\/cloud.google.com\/storage\/\" target=\"_blank\" rel=\"noopener noreferrer nofollow\"><span style=\"text-decoration: underline; color: #0000ff;\">Cloud Storage<\/span><\/a>.<\/span><\/p>\n<p><span>Niezale\u017cnie od ilo\u015bci projekt\u00f3w, Deplyoment Manager pozwala na zarz\u0105dzanie ka\u017cdym z nich. Google stworzy\u0142 szablony pozwalaj\u0105ce na obs\u0142ug\u0119 projektu:<\/span><\/p>\n<ul>\n<li><span><strong>Project Creation<\/strong> &#8211; <em>tworzenie projektu o nazwie kt\u00f3r\u0105 klient nada<\/em><\/span><\/li>\n<li><span><strong>Billing<\/strong> &#8211;<em> tworzy profil p\u0142atno\u015bci dla nowego projektu<\/em><\/span><\/li>\n<li><span><strong>Permissions<\/strong> &#8211; <em>pozwala na ustawienie zasad IAM (Identity &amp; Access Management) &#8211; okre\u015blenie poziomu dost\u0119pu dla u\u017cytkownik\u00f3w w obr\u0119bie projektu<\/em><\/span><\/li>\n<li><span><strong>APIs<\/strong> &#8211; <em>pozwala na w\u0142\u0105czenie kompatybilnych Googlowych API potrzebnych dla projekt\u00f3w<\/em><\/span><\/li>\n<\/ul>\n<p><span style=\"color: #ea585b;\"><b>Jak zacz\u0105\u0107<\/b><\/span><\/p>\n<p><span>Korzystanie z Deplyment Manager jest relatywnie proste. Aby zacz\u0105\u0107 nale\u017cy pobra\u0107 szablon z githuba (<\/span><span style=\"text-decoration: underline;\"><span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"http:\/\/github.com\/GoogleCloudPlatform\/deploymentmanager-samples\/tree\/master\/examples\/v2\/project_creation\" rel=\"nofollow\"><span>szablon project creation<\/span><\/a><\/span><\/span><span>) dost\u0119pny w repozytorium DM. Mo\u017cna r\u00f3wnie\u017c skopiowa\u0107 ca\u0142e <\/span><a href=\"http:\/\/github.com\/GoogleCloudPlatform\/deploymentmanager-samples\" rel=\"nofollow\"><span>repozytorium<\/span><\/a><span> i z niego skopiowa\u0107 <\/span><span style=\"color: #008000;\"><i><span>project_creation<\/span><\/i><\/span><span>. W szablonie znajduje si\u0119 plik <span style=\"color: #008000;\">Readme<\/span> z kt\u00f3rym nale\u017cy si\u0119 zapozna\u0107. <\/span><\/p>\n<p><span>Nale\u017cy stworzy\u0107 projekt, kt\u00f3ry p\u00f3\u017aniej b\u0119dzie dzia\u0142a\u0107 jako narz\u0119dzie do tworzenia projekt\u00f3w. Osoba kt\u00f3ra b\u0119dzie zarz\u0105dza\u0107 kolejnymi projektami powinna mie\u0107 najwy\u017csze uprawnienia w IAM.<\/span><\/p>\n<p><span>Kolejnym krokiem jest zmiana w pliku <span style=\"color: #008000;\">config.yaml<\/span>, aby doda\u0107 nazw\u0119 projektu, profil p\u0142atno\u015bci, potrzebne API, oraz zasady IAM. Na tym ko\u0144czy si\u0119 tak naprawd\u0119 obligatoryjna cz\u0119\u015b\u0107, mo\u017cna te\u017c wprowadzi\u0107 bardziej zaawansowane zmiany. <\/span><\/p>\n<p><span style=\"color: #ea585b;\"><b>Stworzenie w\u0142asnego projektu<\/b><\/span><\/p>\n<p><span>W katalogu w kt\u00f3rym znajduj\u0105 si\u0119 szablony nale\u017cy uruchomi\u0107 lini\u0119 komend i skorzysta\u0107 z nast\u0119puj\u0105cego kodu: <\/span><\/p>\n<p style=\"text-align: center;\"><span style=\"color: #008000;\"><span>gcloud deployment-manager deployments create <\/span><span><br \/>\n<\/span><span>&lt;newproject_deployment&gt; &#8211;config config.yaml &#8211;project &lt;Project <\/span><span><br \/>\n<\/span><span>Creation project&gt;<\/span><\/span><\/p>\n<p><span>W miejscu <span style=\"color: #008000;\">&lt;newproject_deployment&gt;<\/span> wkleja si\u0119 nazw\u0119 nowego deploymentu. Mo\u017cna u\u017cy\u0107 tej samej nazwy jak projektu. <\/span><\/p>\n<p><span>Dzi\u0119ki temu prostemu narz\u0119dziu mo\u017cna zautomatyzowa\u0107 tworzenie nowych projekt\u00f3w, znacznie u\u0142atwiaj\u0105c zarz\u0105dzanie kontem <a href=\"https:\/\/fotc.com\/google-cloud-platform\/\" target=\"_blank\" rel=\"noopener noreferrer nofollow\"><span style=\"text-decoration: underline;\"><span style=\"color: #0000ff; text-decoration: underline;\">Google Cloud Platform<\/span><\/span><\/a>.<\/span><\/p>\n<p><span style=\"text-decoration: underline;\"><span style=\"color: #0000ff; text-decoration: underline;\"><a href=\"http:\/\/cloudplatform.googleblog.com\/2017\/04\/automating-project-creation-with-Google-Cloud-Deployment-Manager.html\" target=\"_blank\" rel=\"noopener noreferrer\">\u017br\u00f3d\u0142o<\/a><\/span><\/span><\/p>\n<p><span style=\"color: #000000;\"><strong>Autor:<br \/>\n<\/strong><strong>Stanis\u0142aw Gacki<br \/>\n<\/strong><strong>GCP Sales Representative<\/strong><\/span><span style=\"text-decoration: underline;\"><span style=\"color: #0000ff; text-decoration: underline;\"><a href=\"http:\/\/cloudplatform.googleblog.com\/2017\/04\/automating-project-creation-with-Google-Cloud-Deployment-Manager.html\" target=\"_blank\" rel=\"noopener noreferrer nofollow\"><br \/>\n<\/a><\/span><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Podstawow\u0105 jednostk\u0105 strukturaln\u0105 wewn\u0105trz Google Cloud Platform jest projekt. W jego obr\u0119bie mo\u017cna u\u017cywa\u0107 wielu us\u0142ug GCP. Je\u015bli firma potrzebuje stworzy\u0107 wiele projekt\u00f3w, przychodzi potrzeba zautomatyzowania takiego procesu. Google niedawno pokaza\u0142 narz\u0119dzie kt\u00f3re to u\u0142atwi. Google Cloud Deplyoment Manager jest narz\u0119dziem Google Cloud Platform, kt\u00f3re pozwala tworzy\u0107 i zarz\u0105dza\u0107 zasobami GCP, wliczaj\u0105c w to Compute&#8230;<\/p>\n","protected":false},"author":15,"featured_media":2843,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_editorskit_title_hidden":false,"_editorskit_reading_time":1,"_editorskit_typography_data":[],"_editorskit_blocks_typography":"","_editorskit_is_block_options_detached":false,"_editorskit_block_options_position":"{}"},"categories":[560],"tags":[125],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v16.7 (Yoast SEO v19.6) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Google Cloud Deployment Manager - co to takiego? | FOTC<\/title>\n<meta name=\"description\" content=\"Je\u015bli firma potrzebuje stworzy\u0107 wiele projekt\u00f3w w Google Cloud Platform, warto wykorzysta\u0107 do tego automatyzacj\u0119.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/fotc.com\/pl\/blog\/automatyczne-tworzenie-projektu-przy-uzyciu-google-cloud-deployment-manager\/\" \/>\n<meta property=\"og:locale\" content=\"pl_PL\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Google Cloud Deployment Manager - co to takiego? | FOTC\" \/>\n<meta property=\"og:description\" content=\"Je\u015bli firma potrzebuje stworzy\u0107 wiele projekt\u00f3w w Google Cloud Platform, warto wykorzysta\u0107 do tego automatyzacj\u0119.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/fotc.com\/pl\/blog\/automatyczne-tworzenie-projektu-przy-uzyciu-google-cloud-deployment-manager\/\" \/>\n<meta property=\"og:site_name\" content=\"FOTC\" \/>\n<meta property=\"article:published_time\" content=\"2017-04-28T06:33:20+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-05-25T14:28:29+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/fotc.com\/app\/uploads\/2021\/07\/foty12.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"473\" \/>\n\t<meta property=\"og:image:height\" content=\"316\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Kamil Lasek\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"Google Cloud Deployment Manager - co to takiego? | FOTC\" \/>\n<meta name=\"twitter:description\" content=\"Je\u015bli firma potrzebuje stworzy\u0107 wiele projekt\u00f3w w Google Cloud Platform, warto wykorzysta\u0107 do tego automatyzacj\u0119.\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/fotc.com\/pl\/blog\/automatyczne-tworzenie-projektu-przy-uzyciu-google-cloud-deployment-manager\/\",\"url\":\"https:\/\/fotc.com\/pl\/blog\/automatyczne-tworzenie-projektu-przy-uzyciu-google-cloud-deployment-manager\/\",\"name\":\"Google Cloud Deployment Manager - co to takiego? | FOTC\",\"isPartOf\":{\"@id\":\"https:\/\/fotc.com\/#website\"},\"datePublished\":\"2017-04-28T06:33:20+00:00\",\"dateModified\":\"2022-05-25T14:28:29+00:00\",\"author\":{\"@id\":\"https:\/\/fotc.com\/#\/schema\/person\/6773d4e1d8bf84c4e06f9ce88c9f0e94\"},\"description\":\"Je\u015bli firma potrzebuje stworzy\u0107 wiele projekt\u00f3w w Google Cloud Platform, warto wykorzysta\u0107 do tego automatyzacj\u0119.\",\"breadcrumb\":{\"@id\":\"https:\/\/fotc.com\/pl\/blog\/automatyczne-tworzenie-projektu-przy-uzyciu-google-cloud-deployment-manager\/#breadcrumb\"},\"inLanguage\":\"pl-PL\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/fotc.com\/pl\/blog\/automatyczne-tworzenie-projektu-przy-uzyciu-google-cloud-deployment-manager\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/fotc.com\/pl\/blog\/automatyczne-tworzenie-projektu-przy-uzyciu-google-cloud-deployment-manager\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"PL\",\"item\":\"https:\/\/fotc.com\/pl\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Google Cloud\",\"item\":\"https:\/\/fotc.com\/pl\/blog\/category\/google-cloud-platform-pl\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Automatyczne tworzenie projektu przy u\u017cyciu Google Cloud Deployment Manager\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/fotc.com\/#website\",\"url\":\"https:\/\/fotc.com\/\",\"name\":\"FOTC\",\"description\":\"Partner Google Cloud\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/fotc.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"pl-PL\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/fotc.com\/#\/schema\/person\/6773d4e1d8bf84c4e06f9ce88c9f0e94\",\"name\":\"Kamil Lasek\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pl-PL\",\"@id\":\"https:\/\/fotc.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/64947b766b7e6a511e1afa8a9e330f3e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/64947b766b7e6a511e1afa8a9e330f3e?s=96&d=mm&r=g\",\"caption\":\"Kamil Lasek\"},\"description\":\"Music and marketing enthusiast. In the first field, he fulfils himself as a DJ, and in the second as a Chief Marketing Officer. He follows the principle \\\"You can\u2019t improve what you don't measure\\\".\",\"url\":\"https:\/\/fotc.com\/pl\/blog\/author\/kamil-lasek\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Google Cloud Deployment Manager - co to takiego? | FOTC","description":"Je\u015bli firma potrzebuje stworzy\u0107 wiele projekt\u00f3w w Google Cloud Platform, warto wykorzysta\u0107 do tego automatyzacj\u0119.","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:\/\/fotc.com\/pl\/blog\/automatyczne-tworzenie-projektu-przy-uzyciu-google-cloud-deployment-manager\/","og_locale":"pl_PL","og_type":"article","og_title":"Google Cloud Deployment Manager - co to takiego? | FOTC","og_description":"Je\u015bli firma potrzebuje stworzy\u0107 wiele projekt\u00f3w w Google Cloud Platform, warto wykorzysta\u0107 do tego automatyzacj\u0119.","og_url":"https:\/\/fotc.com\/pl\/blog\/automatyczne-tworzenie-projektu-przy-uzyciu-google-cloud-deployment-manager\/","og_site_name":"FOTC","article_published_time":"2017-04-28T06:33:20+00:00","article_modified_time":"2022-05-25T14:28:29+00:00","og_image":[{"width":473,"height":316,"url":"https:\/\/fotc.com\/app\/uploads\/2021\/07\/foty12.jpg","type":"image\/jpeg"}],"author":"Kamil Lasek","twitter_card":"summary_large_image","twitter_title":"Google Cloud Deployment Manager - co to takiego? | FOTC","twitter_description":"Je\u015bli firma potrzebuje stworzy\u0107 wiele projekt\u00f3w w Google Cloud Platform, warto wykorzysta\u0107 do tego automatyzacj\u0119.","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/fotc.com\/pl\/blog\/automatyczne-tworzenie-projektu-przy-uzyciu-google-cloud-deployment-manager\/","url":"https:\/\/fotc.com\/pl\/blog\/automatyczne-tworzenie-projektu-przy-uzyciu-google-cloud-deployment-manager\/","name":"Google Cloud Deployment Manager - co to takiego? | FOTC","isPartOf":{"@id":"https:\/\/fotc.com\/#website"},"datePublished":"2017-04-28T06:33:20+00:00","dateModified":"2022-05-25T14:28:29+00:00","author":{"@id":"https:\/\/fotc.com\/#\/schema\/person\/6773d4e1d8bf84c4e06f9ce88c9f0e94"},"description":"Je\u015bli firma potrzebuje stworzy\u0107 wiele projekt\u00f3w w Google Cloud Platform, warto wykorzysta\u0107 do tego automatyzacj\u0119.","breadcrumb":{"@id":"https:\/\/fotc.com\/pl\/blog\/automatyczne-tworzenie-projektu-przy-uzyciu-google-cloud-deployment-manager\/#breadcrumb"},"inLanguage":"pl-PL","potentialAction":[{"@type":"ReadAction","target":["https:\/\/fotc.com\/pl\/blog\/automatyczne-tworzenie-projektu-przy-uzyciu-google-cloud-deployment-manager\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/fotc.com\/pl\/blog\/automatyczne-tworzenie-projektu-przy-uzyciu-google-cloud-deployment-manager\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"PL","item":"https:\/\/fotc.com\/pl\/"},{"@type":"ListItem","position":2,"name":"Google Cloud","item":"https:\/\/fotc.com\/pl\/blog\/category\/google-cloud-platform-pl\/"},{"@type":"ListItem","position":3,"name":"Automatyczne tworzenie projektu przy u\u017cyciu Google Cloud Deployment Manager"}]},{"@type":"WebSite","@id":"https:\/\/fotc.com\/#website","url":"https:\/\/fotc.com\/","name":"FOTC","description":"Partner Google Cloud","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/fotc.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"pl-PL"},{"@type":"Person","@id":"https:\/\/fotc.com\/#\/schema\/person\/6773d4e1d8bf84c4e06f9ce88c9f0e94","name":"Kamil Lasek","image":{"@type":"ImageObject","inLanguage":"pl-PL","@id":"https:\/\/fotc.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/64947b766b7e6a511e1afa8a9e330f3e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/64947b766b7e6a511e1afa8a9e330f3e?s=96&d=mm&r=g","caption":"Kamil Lasek"},"description":"Music and marketing enthusiast. In the first field, he fulfils himself as a DJ, and in the second as a Chief Marketing Officer. He follows the principle \"You can\u2019t improve what you don't measure\".","url":"https:\/\/fotc.com\/pl\/blog\/author\/kamil-lasek\/"}]}},"_links":{"self":[{"href":"https:\/\/fotc.com\/pl\/wp-json\/wp\/v2\/posts\/31019"}],"collection":[{"href":"https:\/\/fotc.com\/pl\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fotc.com\/pl\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fotc.com\/pl\/wp-json\/wp\/v2\/users\/15"}],"replies":[{"embeddable":true,"href":"https:\/\/fotc.com\/pl\/wp-json\/wp\/v2\/comments?post=31019"}],"version-history":[{"count":0,"href":"https:\/\/fotc.com\/pl\/wp-json\/wp\/v2\/posts\/31019\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/fotc.com\/pl\/wp-json\/wp\/v2\/media\/2843"}],"wp:attachment":[{"href":"https:\/\/fotc.com\/pl\/wp-json\/wp\/v2\/media?parent=31019"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fotc.com\/pl\/wp-json\/wp\/v2\/categories?post=31019"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fotc.com\/pl\/wp-json\/wp\/v2\/tags?post=31019"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}