{"height":"190","type":"rich","blog_url":"https://donbulinux.hatenablog.jp/","url":"https://donbulinux.hatenablog.jp/entry/2023/08/21/185527","width":"100%","provider_name":"Hatena Blog","categories":["Terraform"],"description":"Terraform \u3067 EC2 \u3092\u4f5c\u6210\u3059\u308b \u3068\u304d\u306b\u306f\u3001 AMI \u53c2\u7167\u3092\u30d1\u30e9\u30e1\u30fc\u30bf\u30b9\u30c8\u30a2\u7d4c\u7531\u3067\u884c\u3046\u3068\u826f\u3044\u3002 \u3053\u306e\u3088\u3046\u306b\u3002 aws_instance resource \"aws_instance\" \"ec2\"{ ami = data.aws_ssm_parameter.amazonlinux2.value ... } aws_ssm_parameter # Parameter Store \u306e\u30d1\u30d6\u30ea\u30c3\u30af\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3092\u5229\u7528\u3057\u3066 AMI ID \u3092\u53d6\u5f97 # https://dev.classmethod.jp/articles/retrieve-latest-ami-id-of-amazonlinux-2\u2026","author_url":"https://blog.hatena.ne.jp/donbulinux/","title":"Terraform \u5185\u306b EC2 \u30ea\u30bd\u30fc\u30b9\u304c\u542b\u307e\u308c\u308b\u3068\u304d\u306f ignore_changes \u306b ami \u3092\u6307\u5b9a\u3059\u308b","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdonbulinux.hatenablog.jp%2Fentry%2F2023%2F08%2F21%2F185527\" title=\"Terraform \u5185\u306b EC2 \u30ea\u30bd\u30fc\u30b9\u304c\u542b\u307e\u308c\u308b\u3068\u304d\u306f ignore_changes \u306b ami \u3092\u6307\u5b9a\u3059\u308b - AR \u30db\u30fc\u30e0\u30d9\u30fc\u30ab\u30ea\u30fc\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_title":"AR \u30db\u30fc\u30e0\u30d9\u30fc\u30ab\u30ea\u30fc","author_name":"donbulinux","image_url":null,"version":"1.0","published":"2023-08-21 18:55:27","provider_url":"https://hatena.blog"}