<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>holyshared</author_name>
  <author_url>https://blog.hatena.ne.jp/holyshared/</author_url>
  <blog_title>type holyshared = Engineer&lt;mixed&gt;</blog_title>
  <blog_url>https://www.holyshared.ninja/</blog_url>
  <categories>
    <anon>Google Cloud Platform</anon>
  </categories>
  <description>google_artifact_registry_repositoryリソースを定義する時に cleanup_policies を指定することで、どのバージョンまでストレージに残すかを設定できます。 設定してないと古いバージョンが溜まっていくので、コストが上がったりします。 アプリケーションの場合、古いバージョンのコンテナを残しておくことはメリットがないので、デプロイ時のロールバックに支障がない範囲で古いバージョンを消していくのがいいかなと思います。 下記の例では3バージョンまで残す設定例です。 resource &quot;google_artifact_registry_repository&quot; &quot;a…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.holyshared.ninja%2Fentry%2F2025%2F08%2F11%2F171152&quot; title=&quot;TerraformでArtifactRegistryの世代管理を行う - type holyshared = Engineer&amp;lt;mixed&amp;gt;&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-08-11 17:11:52</published>
  <title>TerraformでArtifactRegistryの世代管理を行う</title>
  <type>rich</type>
  <url>https://www.holyshared.ninja/entry/2025/08/11/171152</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
