{"id":11372,"date":"2026-10-09T22:18:20","date_gmt":"2026-10-09T13:18:20","guid":{"rendered":"https:\/\/techmania.jp\/blog\/?p=11372"},"modified":"2026-10-09T22:18:23","modified_gmt":"2026-10-09T13:18:23","slug":"terraform","status":"publish","type":"post","link":"https:\/\/techmania.jp\/blog\/terraform\/","title":{"rendered":"Terraform\u3068\u306f\uff1fAWS\u3067\u306e\u4f7f\u3044\u65b9\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304b\u3089\u5b9f\u8df5\u307e\u3067\u5b9f\u969b\u306e\u753b\u9762\u3067\u89e3\u8aac"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">AWS\u306a\u3069\u306e\u30af\u30e9\u30a6\u30c9\u30b5\u30fc\u30d3\u30b9\u3092\u5229\u7528\u3059\u308b\u969b\u306b\u3001\u7ba1\u7406\u753b\u9762\u304b\u3089\u624b\u4f5c\u696d\u3067\u8a2d\u5b9a\u3092\u884c\u3046\u3068\u3001\u65e2\u5b58\u8a2d\u5b9a\u306e\u7ba1\u7406\u3084\u540c\u3058\u74b0\u5883\u306e\u8907\u88fd\u304c\u96e3\u3057\u304f\u306a\u308b\u3068\u3044\u3063\u305f\u554f\u984c\u304c\u767a\u751f\u3057\u307e\u3059\u3002<br>\u305d\u3053\u3067\u5229\u7528\u3055\u308c\u308b\u306e\u304c\u3001\u300cIaC\uff08Infrastructure as Code\uff09\u300d\u3068\u3044\u3046\u8003\u3048\u65b9\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001IaC\u3092\u5b9f\u73fe\u3059\u308b\u305f\u3081\u306e\u4ee3\u8868\u7684\u306a\u30c4\u30fc\u30eb\u306e\u4e00\u3064\u3067\u3042\u308b\u300c<span class=\"c-user01\" style=\"font-weight:bold;\">Terraform<\/span>\u300d\u306b\u3064\u3044\u3066\u3001\u57fa\u672c\u7684\u306a\u4ed5\u7d44\u307f\u304b\u3089AWS\u3067\u306e\u4f7f\u3044\u65b9\u307e\u3067\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002<br>\u8a18\u4e8b\u306e\u5f8c\u534a\u3067\u306f\u3001\u5b9f\u969b\u306b<span class=\"c-user01\" style=\"font-weight:bold;\">Terraform\u3067AWS\u306bS3\u30d0\u30b1\u30c3\u30c8\u3092\u4f5c\u6210\u3057\u3001\u5909\u66f4\u30fb\u524a\u9664\u3059\u308b\u307e\u3067\u306e\u624b\u9806<\/span>\u3092\u3001\u5b9f\u884c\u753b\u9762\u3068\u3042\u308f\u305b\u3066\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 id=\"outline__1\" class=\"wp-block-heading\">Terraform\u3068\u306f\uff1f\u30a4\u30f3\u30d5\u30e9\u3092\u30b3\u30fc\u30c9\u3067\u7ba1\u7406\u3059\u308b\u300cIaC\u300d\u30c4\u30fc\u30eb<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Terraform\u306f\u3001<span class=\"c-user01\" style=\"font-weight:bold;\">HashiCorp\u304c\u958b\u767a\u3057\u3066\u3044\u308bIaC\uff08Infrastructure as Code\uff09\u30c4\u30fc\u30eb<\/span>\u3067\u3059\u3002<br>IaC\u3068\u306f\u3001\u30b5\u30fc\u30d0\u30fc\u3084\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3001\u30b9\u30c8\u30ec\u30fc\u30b8\u306a\u3069\u306e\u30a4\u30f3\u30d5\u30e9\u69cb\u6210\u3092\u3001\u30b3\u30fc\u30c9\u3067\u5b9a\u7fa9\u3059\u308b\u3053\u3068\u306b\u3088\u3063\u3066\u69cb\u7bc9\u30fb\u7ba1\u7406\u3059\u308b\u8003\u3048\u65b9\u306e\u3053\u3068\u3092\u8a00\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u901a\u5e38\u3001\u30af\u30e9\u30a6\u30c9\u4e0a\u306b\u30ea\u30bd\u30fc\u30b9\u3092\u4f5c\u6210\u3059\u308b\u969b\u306f\u3001AWS\u306a\u3069\u306e\u7ba1\u7406\u753b\u9762\u304b\u3089\u5fc5\u8981\u306a\u9805\u76ee\u3092\u5165\u529b\u3057\u3066\u8a2d\u5b9a\u3057\u307e\u3059\u3002<br>\u305d\u306e\u305f\u3081\u3001\u540c\u3058\u3088\u3046\u306a\u69cb\u6210\u3092\u5225\u306e\u74b0\u5883\u3067\u518d\u73fe\u3057\u3088\u3046\u3068\u3059\u308b\u5834\u5408\u306b\u3001\u7ba1\u7406\u753b\u9762\u3067\u540c\u3058\u4f5c\u696d\u3092\u7e70\u308a\u8fd4\u3055\u306a\u3051\u308c\u3070\u3044\u3051\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e00\u65b9\u3001Terraform\u3092\u5229\u7528\u3059\u308b\u3068\u3001\u8a2d\u5b9a\u3092\u4e00\u304b\u3089\u624b\u4f5c\u696d\u3067\u884c\u3046\u306e\u3067\u306f\u306a\u304f\u3001<span class=\"c-user01\" style=\"font-weight:bold;\">\u30b3\u30fc\u30c9\u3092\u5229\u7528\u3057\u3066\u74b0\u5883\u3092\u69cb\u7bc9\u3059\u308b<\/span>\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br>\u307e\u305f\u3001\u30b3\u30fc\u30c9\u3092Git\u306a\u3069\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u30b7\u30b9\u30c6\u30e0\u3067\u7ba1\u7406\u3059\u308c\u3070\u3001\u300c\u3044\u3064\u3001\u3069\u306e\u3088\u3046\u306a\u5909\u66f4\u3092\u884c\u3063\u305f\u306e\u304b\u300d\u3092\u8ffd\u8de1\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Terraform\u306e\u3082\u3046\u4e00\u3064\u306e\u5927\u304d\u306a\u7279\u5fb4\u306f\u3001<span class=\"c-user01\" style=\"font-weight:bold;\">\u300c\u5ba3\u8a00\u578b\u300d\u3067\u30a4\u30f3\u30d5\u30e9\u3092\u5b9a\u7fa9\u3059\u308b<\/span>\u3053\u3068\u3067\u3059\u3002<br>\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u306a\u3069\u306e\u624b\u7d9a\u304d\u578b\u3067\u306f\u3001\u300c\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3092\u4f5c\u308b\u2192\u30b5\u30d6\u30cd\u30c3\u30c8\u3092\u4f5c\u308b\u2192\u30b5\u30fc\u30d0\u30fc\u3092\u4f5c\u308b\u300d\u306e\u3088\u3046\u306b\u3001\u4f5c\u696d\u306e\u624b\u9806\u3092\u9806\u756a\u306b\u66f8\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<br>\u4e00\u65b9\u3001Terraform\u3067\u306f<span class=\"c-user01\" style=\"font-weight:bold;\">\u300c\u6700\u7d42\u7684\u306b\u3069\u306e\u3088\u3046\u306a\u72b6\u614b\u306b\u3057\u305f\u3044\u304b\uff08\u3042\u308b\u3079\u304d\u59ff\uff09\u300d\u3060\u3051\u3092\u66f8\u3051\u3070\u3001\u4f5c\u6210\u306e\u9806\u756a\u3084\u30ea\u30bd\u30fc\u30b9\u540c\u58eb\u306e\u4f9d\u5b58\u95a2\u4fc2\u306fTerraform\u304c\u5224\u65ad\u3057\u3001\u73fe\u5728\u306e\u72b6\u614b\u3068\u306e\u5dee\u5206\u3060\u3051\u3092\u5b9f\u884c<\/span>\u3057\u3066\u304f\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/web-img.rensa.jp.net\/images\/techmania\/thumbnail\/images\/1009_Declarative_vs_Procedural.webp\" alt=\"\u624b\u7d9a\u304d\u578b\u3068\u5ba3\u8a00\u578b\u306e\u9055\u3044\u3092\u6bd4\u8f03\u3057\u305f\u56f3\u3002\u624b\u7d9a\u304d\u578b\u306f\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30fb\u30b5\u30d6\u30cd\u30c3\u30c8\u30fb\u30b5\u30fc\u30d0\u30fc\u3092\u9806\u756a\u306b\u4f5c\u308b\u624b\u9806\u3092\u66f8\u304d\u3001\u5ba3\u8a00\u578b\u306eTerraform\u306f\u3042\u308b\u3079\u304d\u59ff\u3092\u66f8\u304f\u3060\u3051\u3067\u5dee\u5206\u3092\u8a08\u7b97\u3057\u3066\u5fc5\u8981\u306a\u64cd\u4f5c\u3060\u3051\u3092\u5b9f\u884c\u3059\u308b\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Terraform\u306fAWS\u5c02\u7528\u306e\u30c4\u30fc\u30eb\u3067\u306f\u306a\u304f\u3001Microsoft Azure\u3084Google Cloud\u306a\u3069\u3001\u69d8\u3005\u306a\u30b5\u30fc\u30d3\u30b9\u306b\u5bfe\u5fdc\u3057\u3066\u3044\u307e\u3059\u3002<br>\u305d\u306e\u305f\u3081\u3001\u8907\u6570\u306e\u30af\u30e9\u30a6\u30c9\u30b5\u30fc\u30d3\u30b9\u3092\u5229\u7528\u3059\u308b\u74b0\u5883\u3067\u3082\u3001Terraform\u3092\u4f7f\u3063\u3066\u30a4\u30f3\u30d5\u30e9\u3092\u30b3\u30fc\u30c9\u3067\u7ba1\u7406\u3067\u304d\u307e\u3059\u3002<br>Terraform\u306e\u6982\u8981\u3084\u6700\u65b0\u60c5\u5831\u306f\u3001<a href=\"https:\/\/developer.hashicorp.com\/terraform\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Terraform\u516c\u5f0f\u30b5\u30a4\u30c8<\/a>\u3067\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h2 id=\"outline__2\" class=\"wp-block-heading\">Terraform\u306e\u57fa\u672c\u7684\u306a\u4ed5\u7d44\u307f<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Terraform\u304c\u3069\u306e\u3088\u3046\u306b\u30a4\u30f3\u30d5\u30e9\u3092\u7ba1\u7406\u3057\u3066\u3044\u308b\u306e\u304b\u3092\u7406\u89e3\u3059\u308b\u4e0a\u3067\u91cd\u8981\u306a\u306e\u304c\u3001<span class=\"c-user01\" style=\"font-weight:bold;\">Provider\u3001Resource\u3001State\u306e3\u3064\u306e\u8981\u7d20<\/span>\u3067\u3059\u3002<\/p>\n\n\n\n<h3 id=\"outline__2_1\" class=\"wp-block-heading\">Provider\u3068Resource\u306e\u5f79\u5272<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Provider\u306f\u3001Terraform\u3068\u5916\u90e8\u306e\u30b5\u30fc\u30d3\u30b9\u3084\u30af\u30e9\u30a6\u30c9\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3092\u63a5\u7d9a\u3059\u308b\u5f79\u5272\u3092\u6301\u3061\u307e\u3059\u3002<br>\u305f\u3068\u3048\u3070<span class=\"c-user01\" style=\"font-weight:bold;\">AWS Provider\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u3067\u3001Terraform\u304b\u3089AWS\u306e\u5404\u7a2e\u30ea\u30bd\u30fc\u30b9\u3092\u64cd\u4f5c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059<\/span>\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e00\u65b9\u3001Resource\u306f\u3001EC2\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3084S3\u30d0\u30b1\u30c3\u30c8\u306a\u3069\u3001Terraform\u3067\u7ba1\u7406\u3059\u308b\u5177\u4f53\u7684\u306a\u30a4\u30f3\u30d5\u30e9\u30ea\u30bd\u30fc\u30b9\u3092\u8868\u3057\u307e\u3059\u3002<br>Terraform\u306e\u30b3\u30fc\u30c9\u3067\u306f\u3001\u300c\u3069\u306eProvider\u3092\u4f7f\u3044\u3001\u3069\u306eResource\u3092\u3069\u306e\u3088\u3046\u306a\u8a2d\u5b9a\u3067\u4f5c\u308b\u304b\u300d\u3092\u8a18\u8ff0\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h3 id=\"outline__2_2\" class=\"wp-block-heading\">State\uff08\u72b6\u614b\u30d5\u30a1\u30a4\u30eb\uff09\u3068\u306f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Terraform\u3092\u7406\u89e3\u3059\u308b\u4e0a\u3067\u3082\u3046\u4e00\u3064\u91cd\u8981\u306a\u306e\u304c\u3001State\u3067\u3059\u3002<br>Terraform\u306f\u3001\u30b3\u30fc\u30c9\u306e\u8a18\u8ff0\u5185\u5bb9\u3060\u3051\u3092\u898b\u3066\u30a4\u30f3\u30d5\u30e9\u3092\u7ba1\u7406\u3059\u308b\u308f\u3051\u3067\u306f\u306a\u304f\u3001<span class=\"c-user01\" style=\"font-weight:bold;\">\u7ba1\u7406\u3057\u3066\u3044\u308b\u30ea\u30bd\u30fc\u30b9\u306e\u72b6\u614b\u3092\u8a18\u9332\u3057\u305fState\u30d5\u30a1\u30a4\u30eb\u3092\u5229\u7528\u3057\u3001\u30b3\u30fc\u30c9\u4e0a\u3067\u5b9a\u7fa9\u3055\u308c\u305f\u72b6\u614b\u3068\u5b9f\u969b\u306e\u30a4\u30f3\u30d5\u30e9\u306e\u72b6\u614b\u3092\u6bd4\u8f03<\/span>\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f5c\u696d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3067\u521d\u3081\u3066<code>terraform apply<\/code>\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u300cterraform.tfstate\u300d\u3068\u3044\u3046State\u30d5\u30a1\u30a4\u30eb\u304c\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002<br>\u30b3\u30fc\u30c9\u3092\u5909\u66f4\u3057\u3066\u8a2d\u5b9a\u3092\u66f4\u65b0\u3059\u308b\u3068\u3001Terraform\u306f\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u3082\u3068\u306b\u30a4\u30f3\u30d5\u30e9\u306e\u72b6\u614b\u3092\u6bd4\u8f03\u3057\u3001\u5fc5\u8981\u306a\u5909\u66f4\u3092\u5224\u65ad\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">plan\u3084apply\u306e\u5b9f\u884c\u6642\u306b\u306f\u3001State\u306b\u8a18\u9332\u3055\u308c\u305f\u60c5\u5831\u3092\u3082\u3068\u306bAWS\u4e0a\u306e\u5b9f\u969b\u306e\u72b6\u614b\u3082\u78ba\u8a8d\u3057\u305f\u3046\u3048\u3067\u3001\u30b3\u30fc\u30c9\u3068\u306e\u5dee\u5206\u3092\u8a08\u7b97\u3057\u307e\u3059\u3002<br>\u30b3\u30fc\u30c9\u30fbState\u30fb\u5b9f\u969b\u306e\u30a4\u30f3\u30d5\u30e9\u306e\u95a2\u4fc2\u3092\u56f3\u306b\u3059\u308b\u3068\u3001\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/web-img.rensa.jp.net\/images\/techmania\/thumbnail\/images\/1009_Terraform_Architecture.webp\" alt=\"Terraform\u304c\u30a4\u30f3\u30d5\u30e9\u3092\u7ba1\u7406\u3059\u308b\u4ed5\u7d44\u307f\u306e\u56f3\u3002\u30b3\u30fc\u30c9\uff08main.tf\uff09\u3068State\uff08terraform.tfstate\uff09\u3001\u5b9f\u969b\u306e\u30a4\u30f3\u30d5\u30e9\uff08AWS\uff09\u3092Terraform\u304c\u6bd4\u8f03\u3057\u3001plan\u3067\u5dee\u5206\u3092\u8868\u793a\u3001apply\u3067\u5dee\u5206\u3060\u3051\u3092\u53cd\u6620\u3057\u3066State\u3092\u66f4\u65b0\u3059\u308b\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u4ed5\u7d44\u307f\u306b\u3088\u3063\u3066\u3001Terraform\u3067\u306f\u73fe\u5728\u306e\u72b6\u614b\u3068\u76ee\u7684\u306e\u72b6\u614b\u3068\u306e\u5dee\u5206\u3092\u78ba\u8a8d\u3057\u306a\u304c\u3089\u30a4\u30f3\u30d5\u30e9\u3092\u7ba1\u7406\u3067\u304d\u307e\u3059\u3002<br>\u306a\u304a\u3001State\u30d5\u30a1\u30a4\u30eb\u306b\u306f<span class=\"c-user01\" style=\"font-weight:bold;\">\u30ea\u30bd\u30fc\u30b9\u306e\u8a73\u7d30\u60c5\u5831\u3084\u6a5f\u5bc6\u60c5\u5831\u304c\u5e73\u6587\u3067\u8a18\u9332\u3055\u308c\u308b\u5834\u5408\u304c\u3042\u308b<\/span>\u305f\u3081\u3001\u53d6\u308a\u6271\u3044\u306b\u306f\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\uff08\u8a73\u3057\u304f\u306f<a href=\"https:\/\/developer.hashicorp.com\/terraform\/language\/state\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Terraform\u306eState\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/a>\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\uff09\u3002<\/p>\n\n\n\n<h3 id=\"outline__2_3\" class=\"wp-block-heading\">\u30b3\u30fc\u30c9\u306e\u57fa\u672c\u7684\u306a\u66f8\u304d\u65b9\uff08HCL\uff09<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Terraform\u3067\u306f\u3001\u4e3b\u306b<span class=\"c-user01\" style=\"font-weight:bold;\">HCL\uff08HashiCorp Configuration Language\uff09<\/span>\u3068\u3044\u3046\u8a2d\u5b9a\u8a00\u8a9e\u3092\u4f7f\u3063\u3066\u30b3\u30fc\u30c9\u3092\u8a18\u8ff0\u3057\u307e\u3059\u3002<br>JSON\u5f62\u5f0f\u3067\u8a2d\u5b9a\u3092\u66f8\u304f\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u304c\u3001\u4e00\u822c\u7684\u306b\u306fHCL\u5f62\u5f0f\u304c\u5229\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">HCL\u306f\u300c\u30d6\u30ed\u30c3\u30af\u300d\u3068\u547c\u3070\u308c\u308b\u5358\u4f4d\u306e\u7d44\u307f\u5408\u308f\u305b\u3067\u69cb\u6210\u3055\u308c\u307e\u3059\u3002<br>\u30ea\u30bd\u30fc\u30b9\u3092\u5b9a\u7fa9\u3059\u308bresource\u30d6\u30ed\u30c3\u30af\u306e\u57fa\u672c\u7684\u306a\u69cb\u6587\u306f\u3001\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">HCL\u306e\u57fa\u672c\u69cb\u6587<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>resource \"\u30ea\u30bd\u30fc\u30b9\u30bf\u30a4\u30d7\" \"\u30ea\u30bd\u30fc\u30b9\u540d\" {\n  \u5f15\u6570\u540d = \u5024\n}<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #FFCB6B\">resource<\/span><span style=\"color: #F07178\"> <\/span><span style=\"color: #EEFFFF\">&quot;\u30ea\u30bd\u30fc\u30b9\u30bf\u30a4\u30d7&quot;<\/span><span style=\"color: #F07178\"> <\/span><span style=\"color: #EEFFFF\">&quot;\u30ea\u30bd\u30fc\u30b9\u540d&quot;<\/span><span style=\"color: #F07178\"> <\/span><span style=\"color: #89DDFF\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F07178\">  <\/span><span style=\"color: #EEFFFF\">\u5f15\u6570\u540d <\/span><span style=\"color: #89DDFF\">=<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #F07178\">\u5024<\/span><\/span>\n<span class=\"line\"><span style=\"color: #89DDFF\">}<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u30d6\u30ed\u30c3\u30af\u30bf\u30a4\u30d7\u306e\u5f8c\u308d\u306b\u306f\u300c\u30e9\u30d9\u30eb\u300d\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<br>resource\u30d6\u30ed\u30c3\u30af\u306e\u5834\u5408\u306f\u30011\u3064\u76ee\u306e\u30e9\u30d9\u30eb\u304c\u30ea\u30bd\u30fc\u30b9\u30bf\u30a4\u30d7\uff08\u4f5c\u6210\u3059\u308b\u30ea\u30bd\u30fc\u30b9\u306e\u7a2e\u985e\uff09\u30012\u3064\u76ee\u306e\u30e9\u30d9\u30eb\u304c\u30ea\u30bd\u30fc\u30b9\u540d\uff08Terraform\u306e\u30b3\u30fc\u30c9\u5185\u3067\u305d\u306e\u30ea\u30bd\u30fc\u30b9\u3092\u8b58\u5225\u3059\u308b\u305f\u3081\u306e\u540d\u524d\uff09\u3067\u3059\u3002<br>\u305f\u3068\u3048\u3070\u3001S3\u30d0\u30b1\u30c3\u30c8\u3092\u5b9a\u7fa9\u3059\u308b\u5834\u5408\u306f\u6b21\u306e\u3088\u3046\u306b\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">S3\u30d0\u30b1\u30c3\u30c8\u306e\u5b9a\u7fa9\u4f8b<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>resource \"aws_s3_bucket\" \"example\" {\n  bucket = \"my-example-bucket\"\n}<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #FFCB6B\">resource<\/span><span style=\"color: #F07178\"> <\/span><span style=\"color: #EEFFFF\">&quot;aws_s3_bucket&quot;<\/span><span style=\"color: #F07178\"> <\/span><span style=\"color: #EEFFFF\">&quot;example&quot;<\/span><span style=\"color: #F07178\"> <\/span><span style=\"color: #89DDFF\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F07178\">  <\/span><span style=\"color: #EEFFFF\">bucket <\/span><span style=\"color: #89DDFF\">=<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #C3E88D\">my-example-bucket<\/span><span style=\"color: #89DDFF\">&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #89DDFF\">}<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">resource\u30d6\u30ed\u30c3\u30af1\u3064\u304c\u3001\u7ba1\u7406\u5bfe\u8c61\u306e\u30ea\u30bd\u30fc\u30b91\u3064\u306b\u5bfe\u5fdc\u3057\u307e\u3059\u3002<br>\u307b\u304b\u306b\u3082\u3001Terraform\u81ea\u4f53\u306e\u8a2d\u5b9a\u3092\u884c\u3046terraform\u30d6\u30ed\u30c3\u30af\u3084\u3001Provider\u306e\u8a2d\u5b9a\u3092\u884c\u3046provider\u30d6\u30ed\u30c3\u30af\u306a\u3069\u304c\u3042\u308a\u3001\u3053\u308c\u3089\u3092\u7d44\u307f\u5408\u308f\u305b\u3066\u30b3\u30fc\u30c9\u3092\u66f8\u3044\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5404\u30b5\u30fc\u30d3\u30b9\u3067\u6307\u5b9a\u3067\u304d\u308b\u30ea\u30bd\u30fc\u30b9\u30bf\u30a4\u30d7\u3084\u5f15\u6570\u306f\u3001<a href=\"https:\/\/registry.terraform.io\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Terraform Registry<\/a>\u304b\u3089Provider\u3054\u3068\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u958b\u304f\u3053\u3068\u3067\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<br>AWS\u306e\u5834\u5408\u306f\u3001<a href=\"https:\/\/registry.terraform.io\/providers\/hashicorp\/aws\/latest\/docs\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">AWS Provider\u306e\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/a>\u306e\u5de6\u5074\u306e\u30e1\u30cb\u30e5\u30fc\u304b\u3089\u3001\u30b5\u30fc\u30d3\u30b9\u3054\u3068\u306e\u30ea\u30bd\u30fc\u30b9\u3092\u63a2\u305b\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/web-img.rensa.jp.net\/images\/techmania\/thumbnail\/images\/1009_Registry.webp\" alt=\"Terraform Registry\u306eAWS Provider\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30da\u30fc\u30b8\u3002\u5de6\u5074\u306e\u30e1\u30cb\u30e5\u30fc\u304b\u3089\u30b5\u30fc\u30d3\u30b9\u3054\u3068\u306e\u30ea\u30bd\u30fc\u30b9\u3092\u63a2\u305b\u308b\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Terraform\u3067\u306f\u3001\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u62e1\u5f35\u5b50\u3068\u3057\u3066<span class=\"c-user01\" style=\"font-weight:bold;\">\u300c.tf\u300d<\/span>\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<br>\u540c\u3058\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u3042\u308b.tf\u30d5\u30a1\u30a4\u30eb\u306f\u3001Terraform\u306e\u5b9f\u884c\u6642\u306b\u307e\u3068\u3081\u3066\u8aad\u307f\u8fbc\u307e\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u69cb\u6210\u306e\u4f8b<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>terraform\/\n\u251c\u2500\u2500 main.tf\n\u2514\u2500\u2500 variables.tf<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #EEFFFF\">terraform\/<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">\u251c\u2500\u2500 main.tf<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">\u2514\u2500\u2500 variables.tf<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u898f\u6a21\u306e\u5927\u304d\u3055\u306b\u3082\u3088\u308a\u307e\u3059\u304c\u3001\u4e0a\u8a18\u306e\u3088\u3046\u306b\u3001\u30ea\u30bd\u30fc\u30b9\u3084\u5909\u6570\u306a\u3069\u3092\u5f79\u5272\u3054\u3068\u306b\u30d5\u30a1\u30a4\u30eb\u3078\u5206\u3051\u3066\u7ba1\u7406\u3059\u308b\u306e\u304c\u4e00\u822c\u7684\u3067\u3059\u3002<br>\u672c\u8a18\u4e8b\u306e\u5b9f\u8df5\u3067\u306f\u3001\u30b7\u30f3\u30d7\u30eb\u306bmain.tf\u306e1\u30d5\u30a1\u30a4\u30eb\u3060\u3051\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 id=\"outline__3\" class=\"wp-block-heading\">\u3010\u5b9f\u8df5\u3011Terraform\u3092\u4f7f\u3063\u3066AWS\u306bS3\u30d0\u30b1\u30c3\u30c8\u3092\u4f5c\u3063\u3066\u307f\u308b<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u3053\u304b\u3089\u306f\u3001\u5b9f\u969b\u306bTerraform\u3092\u4f7f\u3063\u3066AWS\u4e0a\u306bS3\u30d0\u30b1\u30c3\u30c8\u3092\u4f5c\u6210\u3057\u3001\u5909\u66f4\u30fb\u524a\u9664\u3059\u308b\u307e\u3067\u306e\u6d41\u308c\u3092\u4f53\u9a13\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<br>\u5168\u4f53\u306e\u6d41\u308c\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><th>\u624b\u9806<\/th><th>\u4f5c\u696d\u5185\u5bb9<\/th><th>\u4e3b\u306b\u4f7f\u3046\u30b3\u30de\u30f3\u30c9<\/th><\/tr><tr><td><strong>\u4e8b\u524d\u6e96\u5099<\/strong><\/td><td>AWS\u30a2\u30ab\u30a6\u30f3\u30c8\u3068IAM\u30e6\u30fc\u30b6\u30fc\u3092\u7528\u610f\u3059\u308b<\/td><td>\uff0d<\/td><\/tr><tr><td><strong>\u624b\u98061<\/strong><\/td><td>Terraform\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3001AWS\u306e\u8a8d\u8a3c\u60c5\u5831\u3092\u8a2d\u5b9a\u3059\u308b<\/td><td>terraform -version<br>aws configure<\/td><\/tr><tr><td><strong>\u624b\u98062<\/strong><\/td><td>S3\u30d0\u30b1\u30c3\u30c8\u3092\u5b9a\u7fa9\u3059\u308b\u30b3\u30fc\u30c9\uff08main.tf\uff09\u3092\u66f8\u304f<\/td><td>\uff0d<\/td><\/tr><tr><td><strong>\u624b\u98063<\/strong><\/td><td>\u521d\u671f\u5316\u30fb\u5b9f\u884c\u8a08\u753b\u306e\u78ba\u8a8d\u30fb\u9069\u7528\u3092\u884c\u3046<\/td><td>terraform init<br>terraform plan<br>terraform apply<\/td><\/tr><tr><td><strong>\u624b\u98064<\/strong><\/td><td>AWS\u30b3\u30f3\u30bd\u30fc\u30eb\u3067\u78ba\u8a8d\u3057\u3001\u5909\u66f4\u30fb\u524a\u9664\u3092\u884c\u3046<\/td><td>terraform state list<br>terraform plan<br>terraform apply<br>terraform destroy<\/td><\/tr><tr><td><strong>\u5fdc\u7528<\/strong><\/td><td>\u5909\u6570\u3068\u51fa\u529b\u3092\u4f7f\u3063\u3066\u30b3\u30fc\u30c9\u3092\u4f7f\u3044\u56de\u3057\u3084\u3059\u304f\u3059\u308b<\/td><td>terraform output<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u672c\u8a18\u4e8b\u3067\u306f\u3001macOS\uff08Apple \u30b7\u30ea\u30b3\u30f3\uff09\u306e\u30bf\u30fc\u30df\u30ca\u30eb\u3067\u52d5\u4f5c\u3092\u78ba\u8a8d\u3057\u3066\u3044\u307e\u3059\u3002<br>Terraform 1.16.4\u3001AWS Provider 6.67.0\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h3 id=\"outline__3_1\" class=\"wp-block-heading\">\u4e8b\u524d\u6e96\u5099\uff1aAWS\u30a2\u30ab\u30a6\u30f3\u30c8\u3068IAM\u30e6\u30fc\u30b6\u30fc\u3092\u7528\u610f\u3059\u308b<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Terraform\u304b\u3089AWS\u306e\u30ea\u30bd\u30fc\u30b9\u3092\u64cd\u4f5c\u3059\u308b\u305f\u3081\u306b\u306f\u3001AWS\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u304c\u5fc5\u8981\u3067\u3059\u3002<br>\u307e\u3060AWS\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u6301\u3063\u3066\u3044\u306a\u3044\u5834\u5408\u306f\u3001<a href=\"https:\/\/aws.amazon.com\/jp\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">AWS\u306e\u516c\u5f0f\u30b5\u30a4\u30c8<\/a>\u304b\u3089\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u4f5c\u6210\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<div class=\"techmania-recirc\">\n<style>\n.techmania-recirc{margin:24px 0;font-family:-apple-system,\"Hiragino Kaku Gothic ProN\",\"Yu Gothic\",sans-serif;}\n.techmania-recirc__label{font-size:14px;color:#333;margin-bottom:8px;font-weight:bold;}\n.techmania-recirc__box{display:flex;align-items:center;gap:16px;border:1px solid #ddd;border-radius:4px;padding:12px 16px;text-decoration:none;transition:background .2s;}\n.techmania-recirc__box:hover{background:#f7f9fc;}\n.techmania-recirc__thumb{width:96px;aspect-ratio:6\/4;object-fit:cover;border-radius:4px;flex-shrink:0;}\n.techmania-recirc__title{color:#2952cc;font-size:15px;line-height:1.6;flex:1;}\n.techmania-recirc__arrow{flex-shrink:0;width:28px;height:28px;border-radius:50%;background:#2952cc;color:#fff;display:flex;align-items:center;justify-content:center;font-size:12px;}\n<\/style>\n<div class=\"techmania-recirc__label\">\u25bc\u3053\u3061\u3089\u3082\u30c1\u30a7\u30c3\u30af\u25bc<\/div>\n<a class=\"techmania-recirc__box\" href=\"https:\/\/techmania.jp\/blog\/aws0001\/\">\n  <img decoding=\"async\" class=\"techmania-recirc__thumb\" src=\"https:\/\/web-img.rensa.jp.net\/rensa\/images\/techmania\/post202104081205\/ai_catch.jpg\" alt=\"AWS\u3068\u306f\u3010\u5165\u9580\u3011\u57fa\u790e\u304b\u3089\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\" loading=\"lazy\">\n  <span class=\"techmania-recirc__title\">AWS\u3068\u306f\u3010\u5165\u9580\u3011\u57fa\u790e\u304b\u3089\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac<\/span>\n  <span class=\"techmania-recirc__arrow\">\u25b6<\/span>\n<\/a>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u307e\u305f\u3001Terraform\u304b\u3089AWS\u3092\u64cd\u4f5c\u3059\u308b\u969b\u306b\u306f\u3001AWS\u4e0a\u3067\u9069\u5207\u306a\u6a29\u9650\u3092\u6301\u3063\u305f\u8a8d\u8a3c\u60c5\u5831\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002<br>AWS\u30a2\u30ab\u30a6\u30f3\u30c8\u4f5c\u6210\u6642\u306b\u4f7f\u7528\u3059\u308b\u300c\u30eb\u30fc\u30c8\u30e6\u30fc\u30b6\u30fc\u300d\u306f\u3059\u3079\u3066\u306e\u64cd\u4f5c\u304c\u3067\u304d\u308b\u5f37\u3044\u6a29\u9650\u3092\u6301\u3064\u305f\u3081\u3001<span class=\"c-user01\" style=\"font-weight:bold;\">\u65e5\u5e38\u306e\u4f5c\u696d\u306b\u306f\u30eb\u30fc\u30c8\u30e6\u30fc\u30b6\u30fc\u3092\u4f7f\u308f\u305a\u3001IAM\u30e6\u30fc\u30b6\u30fc\u3092\u4f5c\u6210\u3057\u3066\u5229\u7528<\/span>\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">AWS\u30de\u30cd\u30b8\u30e1\u30f3\u30c8\u30b3\u30f3\u30bd\u30fc\u30eb\u3067\u300cIAM\u300d\u2192\u300c\u30e6\u30fc\u30b6\u30fc\u300d\u2192\u300c\u30e6\u30fc\u30b6\u30fc\u306e\u4f5c\u6210\u300d\u3068\u9032\u307f\u3001\u4f5c\u696d\u7528\u306eIAM\u30e6\u30fc\u30b6\u30fc\u3092\u4f5c\u6210\u3057\u307e\u3057\u3087\u3046\u3002<br>\u8a31\u53ef\u306e\u8a2d\u5b9a\u3067\u306f\u300c\u30dd\u30ea\u30b7\u30fc\u3092\u76f4\u63a5\u30a2\u30bf\u30c3\u30c1\u3059\u308b\u300d\u3092\u9078\u629e\u3057\u3001\u4eca\u56de\u306f\u5b66\u7fd2\u30fb\u691c\u8a3c\u76ee\u7684\u3068\u3057\u3066\u3001S3\u306e\u5168\u64cd\u4f5c\u3092\u8a31\u53ef\u3059\u308bAWS\u7ba1\u7406\u30dd\u30ea\u30b7\u30fc\u300c<span class=\"c-user01\" style=\"font-weight:bold;\">AmazonS3FullAccess<\/span>\u300d\u3092\u4ed8\u4e0e\u3057\u3066\u9032\u3081\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u305f\u3060\u3057\u3001AmazonS3FullAccess\u306f\u30a2\u30ab\u30a6\u30f3\u30c8\u5185\u306e\u3059\u3079\u3066\u306eS3\u30d0\u30b1\u30c3\u30c8\u3092\u64cd\u4f5c\u3067\u304d\u308b\u5e83\u3044\u6a29\u9650\u3067\u3059\u3002<br>\u5b9f\u969b\u306e\u904b\u7528\u3067\u306f\u3001<span class=\"c-user01\" style=\"font-weight:bold;\">\u5fc5\u8981\u306a\u64cd\u4f5c\u30fb\u5fc5\u8981\u306a\u30ea\u30bd\u30fc\u30b9\u3060\u3051\u3092\u8a31\u53ef\u3059\u308b\u300c\u6700\u5c0f\u6a29\u9650\u306e\u539f\u5247\u300d<\/span>\u306b\u5f93\u3063\u3066\u30dd\u30ea\u30b7\u30fc\u3092\u8a2d\u8a08\u3059\u308b\u3053\u3068\u304c\u91cd\u8981\u3067\u3059\u3002<br>IAM\u306e\u8003\u3048\u65b9\u306b\u3064\u3044\u3066\u306f\u3001<a href=\"https:\/\/docs.aws.amazon.com\/ja_jp\/IAM\/latest\/UserGuide\/best-practices.html\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">IAM\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306e\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9\uff08AWS\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\uff09<\/a>\u3082\u53c2\u8003\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u306a\u304a\u3001<span class=\"c-user01\" style=\"font-weight:bold;\">Terraform\u81ea\u4f53\u306f\u7121\u6599\u3067\u5229\u7528\u3067\u304d\u307e\u3059\u304c\u3001Terraform\u3067\u4f5c\u6210\u3057\u305fAWS\u30ea\u30bd\u30fc\u30b9\u306b\u306fAWS\u306e\u5229\u7528\u6599\u91d1\u304c\u767a\u751f\u3059\u308b<\/span>\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<br>S3\u306f\u4fdd\u5b58\u3057\u305f\u30c7\u30fc\u30bf\u91cf\u3084\u30ea\u30af\u30a8\u30b9\u30c8\u6570\u306a\u3069\u306b\u5fdc\u3058\u305f\u5f93\u91cf\u8ab2\u91d1\u306e\u305f\u3081\u3001\u4eca\u56de\u306e\u3088\u3046\u306b\u7a7a\u306e\u30d0\u30b1\u30c3\u30c8\u3092\u4f5c\u308b\u3060\u3051\u3067\u3042\u308c\u3070\u6599\u91d1\u306f\u307b\u3068\u3093\u3069\u304b\u304b\u308a\u307e\u305b\u3093\u304c\u3001\u8a73\u3057\u304f\u306f<a href=\"https:\/\/aws.amazon.com\/jp\/s3\/pricing\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Amazon S3\u306e\u6599\u91d1\u30da\u30fc\u30b8<\/a>\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br>\u65b0\u898f\u30a2\u30ab\u30a6\u30f3\u30c8\u5411\u3051\u306e\u7121\u6599\u5229\u7528\u67a0\uff08\u30af\u30ec\u30b8\u30c3\u30c8\uff09\u306e\u5185\u5bb9\u306f\u6642\u671f\u306b\u3088\u3063\u3066\u5909\u308f\u308b\u305f\u3081\u3001<a href=\"https:\/\/aws.amazon.com\/jp\/free\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">AWS\u7121\u6599\u5229\u7528\u67a0\u306e\u516c\u5f0f\u30da\u30fc\u30b8<\/a>\u3067\u6700\u65b0\u60c5\u5831\u3092\u78ba\u8a8d\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<br>\u3044\u305a\u308c\u306e\u5834\u5408\u3082\u3001<span class=\"c-user01\" style=\"font-weight:bold;\">\u4f5c\u696d\u304c\u7d42\u308f\u3063\u305f\u3089\u4e0d\u8981\u306a\u30ea\u30bd\u30fc\u30b9\u306f\u5fc5\u305a\u524a\u9664\u3059\u308b<\/span>\u3053\u3068\u304c\u5927\u5207\u3067\u3059\u3002<\/p>\n\n\n\n<h3 id=\"outline__3_2\" class=\"wp-block-heading\">\u624b\u98061\uff1aTerraform\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u8a8d\u8a3c\u60c5\u5831\u306e\u8a2d\u5b9a<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u307e\u305a\u3001Terraform\u3092\u5229\u7528\u3059\u308b\u74b0\u5883\u3078Terraform\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<br>macOS\u306e\u5834\u5408\u306f\u3001Homebrew\u3092\u4f7f\u3063\u3066\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">Terraform\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\uff08macOS\u30fbHomebrew\uff09<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>brew tap hashicorp\/tap\nbrew install hashicorp\/tap\/terraform<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #FFCB6B\">brew<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">tap<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">hashicorp\/tap<\/span><\/span>\n<span class=\"line\"><span style=\"color: #FFCB6B\">brew<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">install<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">hashicorp\/tap\/terraform<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Windows\u3084Linux\u3067\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u306b\u3064\u3044\u3066\u306f\u3001<a href=\"https:\/\/developer.hashicorp.com\/terraform\/install\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Terraform\u516c\u5f0f\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30da\u30fc\u30b8<\/a>\u3092\u53c2\u8003\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<div class=\"techmania-recirc\">\n<style>\n.techmania-recirc{margin:24px 0;font-family:-apple-system,\"Hiragino Kaku Gothic ProN\",\"Yu Gothic\",sans-serif;}\n.techmania-recirc__label{font-size:14px;color:#333;margin-bottom:8px;font-weight:bold;}\n.techmania-recirc__box{display:flex;align-items:center;gap:16px;border:1px solid #ddd;border-radius:4px;padding:12px 16px;text-decoration:none;transition:background .2s;}\n.techmania-recirc__box:hover{background:#f7f9fc;}\n.techmania-recirc__thumb{width:96px;aspect-ratio:6\/4;object-fit:cover;border-radius:4px;flex-shrink:0;}\n.techmania-recirc__title{color:#2952cc;font-size:15px;line-height:1.6;flex:1;}\n.techmania-recirc__arrow{flex-shrink:0;width:28px;height:28px;border-radius:50%;background:#2952cc;color:#fff;display:flex;align-items:center;justify-content:center;font-size:12px;}\n<\/style>\n<div class=\"techmania-recirc__label\">\u25bc\u3053\u3061\u3089\u3082\u30c1\u30a7\u30c3\u30af\u25bc<\/div>\n<a class=\"techmania-recirc__box\" href=\"https:\/\/techmania.jp\/blog\/homebrew\/\">\n  <img decoding=\"async\" class=\"techmania-recirc__thumb\" src=\"https:\/\/web-img.rensa.jp.net\/images\/techmania\/thumbnail\/images\/homebrew.webp\" alt=\"Homebrew\u3068\u306f\uff1fMac\u3078\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u30fb\u4f7f\u3044\u65b9\u3092\u30a8\u30f3\u30b8\u30cb\u30a2\u76ee\u7dda\u3067\u89e3\u8aac\" loading=\"lazy\">\n  <span class=\"techmania-recirc__title\">Homebrew\u3068\u306f\uff1fMac\u3078\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u30fb\u4f7f\u3044\u65b9\u3092\u30a8\u30f3\u30b8\u30cb\u30a2\u76ee\u7dda\u3067\u89e3\u8aac<\/span>\n  <span class=\"techmania-recirc__arrow\">\u25b6<\/span>\n<\/a>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5f8c\u3001\u30bf\u30fc\u30df\u30ca\u30eb\u3067\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3001\u6b63\u5e38\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u304b\u3092\u78ba\u8a8d\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">Terraform\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u78ba\u8a8d<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>terraform -version<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #FFCB6B\">terraform<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">-version<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u554f\u984c\u304c\u306a\u3051\u308c\u3070\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306bTerraform\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<br>\u8868\u793a\u3055\u308c\u308b\u30d0\u30fc\u30b8\u30e7\u30f3\u756a\u53f7\u306f\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u6642\u671f\u306b\u3088\u3063\u3066\u7570\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/web-img.rensa.jp.net\/images\/techmania\/thumbnail\/images\/1009_Terraform__Version.webp\" alt=\"\u30bf\u30fc\u30df\u30ca\u30eb\u3067terraform -version\u3092\u5b9f\u884c\u3057\u3001Terraform v1.16.4 on darwin_arm64\u3068\u8868\u793a\u3055\u308c\u305f\u753b\u9762\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Terraform\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001\u7d9a\u3051\u3066Terraform\u304b\u3089AWS\u3078\u30a2\u30af\u30bb\u30b9\u3059\u308b\u305f\u3081\u306e\u8a8d\u8a3c\u60c5\u5831\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<br>\u4eca\u56de\u306f\u3001<span class=\"c-user01\" style=\"font-weight:bold;\">AWS CLI\uff08AWS\u3092\u30b3\u30de\u30f3\u30c9\u3067\u64cd\u4f5c\u3059\u308b\u305f\u3081\u306e\u516c\u5f0f\u30c4\u30fc\u30eb\uff09<\/span>\u3092\u4f7f\u3063\u3066\u8a8d\u8a3c\u60c5\u5831\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<br>AWS CLI\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u306a\u3044\u5834\u5408\u306f\u3001<a href=\"https:\/\/docs.aws.amazon.com\/ja_jp\/cli\/latest\/userguide\/getting-started-install.html\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">AWS CLI\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u624b\u9806\uff08AWS\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\uff09<\/a>\u306b\u6cbf\u3063\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3067\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u8868\u793a\u3055\u308c\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">AWS CLI\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u78ba\u8a8d<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>aws --version<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #FFCB6B\">aws<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">--version<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u8a8d\u8a3c\u60c5\u5831\u306b\u306f\u3001IAM\u30e6\u30fc\u30b6\u30fc\u306e\u30a2\u30af\u30bb\u30b9\u30ad\u30fc\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<br>\u30a2\u30af\u30bb\u30b9\u30ad\u30fc\u306f\u3001\u4f5c\u6210\u3057\u305fIAM\u30e6\u30fc\u30b6\u30fc\u306e\u8a73\u7d30\u753b\u9762\u306b\u3042\u308b\u300c\u30a2\u30af\u30bb\u30b9\u30ad\u30fc\u3092\u4f5c\u6210\u300d\u304b\u3089\u4f5c\u6210\u3067\u304d\u307e\u3059\u3002<br>\u30e6\u30fc\u30b9\u30b1\u30fc\u30b9\u306e\u9078\u629e\u753b\u9762\u3067\u306f\u300c\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9 (CLI)\u300d\u3092\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/web-img.rensa.jp.net\/images\/techmania\/thumbnail\/images\/1009_IAM_UserPage.webp\" alt=\"AWS\u30de\u30cd\u30b8\u30e1\u30f3\u30c8\u30b3\u30f3\u30bd\u30fc\u30eb\u306eIAM\u30e6\u30fc\u30b6\u30fc\u8a73\u7d30\u753b\u9762\u3002\u6982\u8981\u6b04\u306e\u53f3\u5074\u306b\u300c\u30a2\u30af\u30bb\u30b9\u30ad\u30fc\u3092\u4f5c\u6210\u300d\u306e\u30ea\u30f3\u30af\u304c\u3042\u308b\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u30a2\u30af\u30bb\u30b9\u30ad\u30fc\u3092\u4f5c\u6210\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u30a2\u30af\u30bb\u30b9\u30ad\u30fc\u3068\u30bb\u30c3\u30c8\u3067\u751f\u6210\u3055\u308c\u307e\u3059\u3002<br><span class=\"c-user01\" style=\"font-weight:bold;\">\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u30a2\u30af\u30bb\u30b9\u30ad\u30fc\u306f\u3053\u306e\u753b\u9762\u3067\u3057\u304b\u8868\u793a\u30fb\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3067\u304d\u306a\u3044<\/span>\u305f\u3081\u3001\u5fd8\u308c\u305a\u306b\u63a7\u3048\u3066\u304a\u304f\u3088\u3046\u306b\u3057\u307e\u3057\u3087\u3046\u3002<br>\u30a2\u30af\u30bb\u30b9\u30ad\u30fc\u306f\u30d1\u30b9\u30ef\u30fc\u30c9\u3068\u540c\u3058\u3088\u3046\u306b\u6271\u3044\u3001\u4ed6\u4eba\u306b\u5171\u6709\u3057\u305f\u308a\u3001GitHub\u306a\u3069\u306b\u516c\u958b\u3057\u305f\u308a\u3057\u306a\u3044\u3088\u3046\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/web-img.rensa.jp.net\/images\/techmania\/thumbnail\/images\/1009_Create_AccessKey.webp\" alt=\"\u30a2\u30af\u30bb\u30b9\u30ad\u30fc\u306e\u4f5c\u6210\u5b8c\u4e86\u753b\u9762\u3002\u30a2\u30af\u30bb\u30b9\u30ad\u30fc\u3068\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u30a2\u30af\u30bb\u30b9\u30ad\u30fc\u304c\u8868\u793a\u3055\u308c\u3001\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u30a2\u30af\u30bb\u30b9\u30ad\u30fc\u306f\u5f8c\u3067\u5fa9\u5143\u3067\u304d\u306a\u3044\u65e8\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u308b\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u30a2\u30af\u30bb\u30b9\u30ad\u30fc\u3092\u7528\u610f\u3067\u304d\u305f\u3089\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">AWS CLI\u306e\u521d\u671f\u8a2d\u5b9a<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>aws configure<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #FFCB6B\">aws<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">configure<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u5b9f\u884c\u3059\u308b\u3068\u3001AWS\u306e\u30a2\u30af\u30bb\u30b9\u30ad\u30fc\u3084\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u30a2\u30af\u30bb\u30b9\u30ad\u30fc\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u30ea\u30fc\u30b8\u30e7\u30f3\u306a\u3069\u306e\u5165\u529b\u3092\u6c42\u3081\u3089\u308c\u307e\u3059\u3002<br>\u4eca\u56de\u306f\u6771\u4eac\u30ea\u30fc\u30b8\u30e7\u30f3\uff08ap-northeast-1\uff09\u3092\u4f7f\u7528\u3059\u308b\u305f\u3081\u3001\u6b21\u306e\u3088\u3046\u306b\u5165\u529b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">aws configure\u306e\u5165\u529b\u4f8b<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>AWS Access Key ID &#91;None&#93;: \u4f5c\u6210\u3057\u305f\u30a2\u30af\u30bb\u30b9\u30ad\u30fc\nAWS Secret Access Key &#91;None&#93;: \u4f5c\u6210\u3057\u305f\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u30a2\u30af\u30bb\u30b9\u30ad\u30fc\nDefault region name &#91;None&#93;: ap-northeast-1\nDefault output format &#91;None&#93;: json<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #EEFFFF\">AWS Access Key ID &#91;None&#93;: \u4f5c\u6210\u3057\u305f\u30a2\u30af\u30bb\u30b9\u30ad\u30fc<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">AWS Secret Access Key &#91;None&#93;: \u4f5c\u6210\u3057\u305f\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u30a2\u30af\u30bb\u30b9\u30ad\u30fc<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">Default region name &#91;None&#93;: ap-northeast-1<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">Default output format &#91;None&#93;: json<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u5165\u529b\u3057\u305f\u8a8d\u8a3c\u60c5\u5831\u306f\u3001\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u914d\u4e0b\u306e\u300c.aws\/credentials\u300d\u306a\u3069\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u4fdd\u5b58\u3055\u308c\u307e\u3059\uff08<a href=\"https:\/\/docs.aws.amazon.com\/ja_jp\/cli\/latest\/userguide\/cli-configure-files.html\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">AWS CLI\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306b\u3064\u3044\u3066\u306e\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/a>\uff09\u3002<br><span class=\"c-user01\" style=\"font-weight:bold;\">Terraform\u306eAWS Provider\u306f\u3053\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u8a8d\u8a3c\u60c5\u5831\u3092\u81ea\u52d5\u3067\u8aad\u307f\u8fbc\u3080<\/span>\u305f\u3081\u3001Terraform\u306e\u30b3\u30fc\u30c9\u306b\u30a2\u30af\u30bb\u30b9\u30ad\u30fc\u3092\u76f4\u63a5\u66f8\u304f\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u8a8d\u8a3c\u60c5\u5831\u306e\u8a2d\u5b9a\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067AWS\u3078\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">AWS\u306e\u8a8d\u8a3c\u78ba\u8a8d<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>aws sts get-caller-identity<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #FFCB6B\">aws<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">sts<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">get-caller-identity<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u6b63\u5e38\u306b\u8a8d\u8a3c\u3067\u304d\u3066\u3044\u308c\u3070\u3001\u6b21\u306e\u3088\u3046\u306bAWS\u30a2\u30ab\u30a6\u30f3\u30c8ID\u3084\u8a8d\u8a3c\u306b\u4f7f\u7528\u3057\u3066\u3044\u308bIAM\u30e6\u30fc\u30b6\u30fc\u306a\u3069\u306e\u60c5\u5831\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">\u5b9f\u884c\u7d50\u679c\u306e\u4f8b<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>{\n    \"UserId\": \"AIDAXXXXXXXXXXXXXXXXX\",\n    \"Account\": \"123456789012\",\n    \"Arn\": \"arn:aws:iam::123456789012:user\/SampleUser\"\n}<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #EEFFFF\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">    &quot;UserId&quot;: &quot;AIDAXXXXXXXXXXXXXXXXX&quot;,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">    &quot;Account&quot;: &quot;123456789012&quot;,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">    &quot;Arn&quot;: &quot;arn:aws:iam::123456789012:user\/SampleUser&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">}<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u306a\u304a\u3001\u4eca\u56de\u4f7f\u7528\u3057\u305f\u30a2\u30af\u30bb\u30b9\u30ad\u30fc\u306f\u6709\u52b9\u671f\u9650\u306e\u306a\u3044\u300c\u9577\u671f\u7684\u306a\u8a8d\u8a3c\u60c5\u5831\u300d\u306e\u305f\u3081\u3001AWS\u3067\u306f\u63a8\u5968\u5ea6\u306e\u4f4e\u3044\u65b9\u6cd5\u3068\u4f4d\u7f6e\u3065\u3051\u3089\u308c\u3066\u3044\u307e\u3059\u3002<br>\u5b9f\u52d9\u3067\u306f\u3001<span class=\"c-user01\" style=\"font-weight:bold;\">IAM Identity Center\u3092\u5229\u7528\u3057\u305f\u4e00\u6642\u7684\u306a\u8a8d\u8a3c\u60c5\u5831\uff08aws configure sso\uff09<\/span>\u306a\u3069\u306e\u3001\u3088\u308a\u5b89\u5168\u306a\u65b9\u6cd5\u3092\u691c\u8a0e\u3057\u307e\u3057\u3087\u3046\u3002<br>\u5404\u8a8d\u8a3c\u65b9\u6cd5\u306e\u63a8\u5968\u9806\u306f\u3001<a href=\"https:\/\/docs.aws.amazon.com\/ja_jp\/cli\/latest\/userguide\/cli-chap-authentication.html\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">AWS CLI\u306e\u8a8d\u8a3c\u3068\u30a2\u30af\u30bb\u30b9\u8a8d\u8a3c\u60c5\u5831\uff08AWS\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\uff09<\/a>\u3067\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<br>\u5b66\u7fd2\u304c\u7d42\u308f\u3063\u305f\u3089\u3001\u4f5c\u6210\u3057\u305f\u30a2\u30af\u30bb\u30b9\u30ad\u30fc\u306f\u7121\u52b9\u5316\u30fb\u524a\u9664\u3057\u3066\u304a\u304f\u3068\u5b89\u5fc3\u3067\u3059\u3002<\/p>\n\n\n\n<h3 id=\"outline__3_3\" class=\"wp-block-heading\">\u624b\u98062\uff1aS3\u30d0\u30b1\u30c3\u30c8\u3092\u5b9a\u7fa9\u3059\u308b\u30b3\u30fc\u30c9\u3092\u66f8\u304f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u6b21\u306b\u3001Terraform\u3067S3\u30d0\u30b1\u30c3\u30c8\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u306e\u30b3\u30fc\u30c9\u3092\u8a18\u8ff0\u3057\u307e\u3059\u3002<br>\u307e\u305a\u3001Terraform\u7528\u306e\u4f5c\u696d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u6210\u3057\u3001\u305d\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3078\u79fb\u52d5\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">\u4f5c\u696d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u4f5c\u6210<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>mkdir terraform-s3\ncd terraform-s3<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #FFCB6B\">mkdir<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">terraform-s3<\/span><\/span>\n<span class=\"line\"><span style=\"color: #82AAFF\">cd<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">terraform-s3<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f5c\u696d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u4e2d\u306b\u300cmain.tf\u300d\u3068\u3044\u3046\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3001\u6b21\u306e\u5185\u5bb9\u3092\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">main.tf<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>terraform {\n  required_providers {\n    aws = {\n      source  = \"hashicorp\/aws\"\n      version = \"~> 6.67.0\"\n    }\n  }\n}\n\nprovider \"aws\" {\n  region = \"ap-northeast-1\"\n}\n\nresource \"aws_s3_bucket\" \"example\" {\n  # \u30d0\u30b1\u30c3\u30c8\u540d\u306f\u5168\u4e16\u754c\u3067\u4e00\u610f\u306b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u305f\u3081\u3001\u72ec\u81ea\u306e\u540d\u524d\u306b\u5909\u66f4\u3059\u308b\n  bucket = \"terraform-example-bucket-20261005\"\n}<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #FFCB6B\">terraform<\/span><span style=\"color: #F07178\"> <\/span><span style=\"color: #89DDFF\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F07178\">  <\/span><span style=\"color: #FFCB6B\">required_providers<\/span><span style=\"color: #F07178\"> <\/span><span style=\"color: #89DDFF\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F07178\">    <\/span><span style=\"color: #EEFFFF\">aws <\/span><span style=\"color: #89DDFF\">=<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #89DDFF\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F07178\">      <\/span><span style=\"color: #EEFFFF\">source<\/span><span style=\"color: #F07178\">  <\/span><span style=\"color: #89DDFF\">=<\/span><span style=\"color: #F07178\"> <\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #C3E88D\">hashicorp\/aws<\/span><span style=\"color: #89DDFF\">&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F07178\">      <\/span><span style=\"color: #EEFFFF\">version<\/span><span style=\"color: #F07178\"> <\/span><span style=\"color: #89DDFF\">=<\/span><span style=\"color: #F07178\"> <\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #C3E88D\">~&gt; 6.67.0<\/span><span style=\"color: #89DDFF\">&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F07178\">    <\/span><span style=\"color: #89DDFF\">}<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F07178\">  <\/span><span style=\"color: #89DDFF\">}<\/span><\/span>\n<span class=\"line\"><span style=\"color: #89DDFF\">}<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #FFCB6B\">provider<\/span><span style=\"color: #F07178\"> <\/span><span style=\"color: #EEFFFF\">&quot;aws&quot;<\/span><span style=\"color: #F07178\"> <\/span><span style=\"color: #89DDFF\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F07178\">  <\/span><span style=\"color: #EEFFFF\">region <\/span><span style=\"color: #89DDFF\">=<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #C3E88D\">ap-northeast-1<\/span><span style=\"color: #89DDFF\">&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #89DDFF\">}<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #FFCB6B\">resource<\/span><span style=\"color: #F07178\"> <\/span><span style=\"color: #EEFFFF\">&quot;aws_s3_bucket&quot;<\/span><span style=\"color: #F07178\"> <\/span><span style=\"color: #EEFFFF\">&quot;example&quot;<\/span><span style=\"color: #F07178\"> <\/span><span style=\"color: #89DDFF\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F07178\">  <\/span><span style=\"color: #546E7A; font-style: italic\"># \u30d0\u30b1\u30c3\u30c8\u540d\u306f\u5168\u4e16\u754c\u3067\u4e00\u610f\u306b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u305f\u3081\u3001\u72ec\u81ea\u306e\u540d\u524d\u306b\u5909\u66f4\u3059\u308b<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F07178\">  <\/span><span style=\"color: #EEFFFF\">bucket <\/span><span style=\"color: #89DDFF\">=<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #C3E88D\">terraform-example-bucket-20261005<\/span><span style=\"color: #89DDFF\">&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #89DDFF\">}<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><span class=\"c-user01\" style=\"font-weight:bold;\">S3\u30d0\u30b1\u30c3\u30c8\u306e\u540d\u524d\u306f\u3001\u5168\u4e16\u754c\u306eAWS\u30a2\u30ab\u30a6\u30f3\u30c8\u3067\u4e00\u610f\uff08\u91cd\u8907\u4e0d\u53ef\uff09\u3067\u3042\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059<\/span>\u3002<br>\u4e0a\u8a18\u306e\u30d0\u30b1\u30c3\u30c8\u540d\u3092\u305d\u306e\u307e\u307e\u4f7f\u3046\u3068\u3001\u3059\u3067\u306b\u4f7f\u308f\u308c\u3066\u3044\u308b\u540d\u524d\u3068\u3057\u3066\u30a8\u30e9\u30fc\u306b\u306a\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\u305f\u3081\u3001<span class=\"c-user01\" style=\"font-weight:bold;\">\u81ea\u5206\u306e\u540d\u524d\u3084\u65e5\u4ed8\u3001\u30e9\u30f3\u30c0\u30e0\u306a\u6587\u5b57\u5217\u306a\u3069\u3092\u7d44\u307f\u5408\u308f\u305b\u305f\u72ec\u81ea\u306e\u540d\u524d\u306b\u5909\u66f4<\/span>\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br>\u30d0\u30b1\u30c3\u30c8\u540d\u306b\u4f7f\u3048\u308b\u306e\u306f\u5c0f\u6587\u5b57\u306e\u82f1\u5b57\u30fb\u6570\u5b57\u30fb\u30cf\u30a4\u30d5\u30f3\u30fb\u30d4\u30ea\u30aa\u30c9\u3067\u3001\u9577\u3055\u306f3\uff5e63\u6587\u5b57\u3067\u3059\uff08\u8a73\u3057\u304f\u306f<a href=\"https:\/\/docs.aws.amazon.com\/ja_jp\/AmazonS3\/latest\/userguide\/bucketnamingrules.html\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">S3\u30d0\u30b1\u30c3\u30c8\u306e\u547d\u540d\u898f\u5247\uff08AWS\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\uff09<\/a>\u3092\u53c2\u7167\uff09\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u3053\u304b\u3089\u306f\u3001\u30b3\u30fc\u30c9\u306e\u5185\u5bb9\u3092\u4e0a\u304b\u3089\u9806\u306b\u78ba\u8a8d\u3057\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">terraform\u30d6\u30ed\u30c3\u30af\u5185\u306erequired_providers\u306f\u3001\u4f7f\u7528\u3059\u308bProvider\u3092\u6307\u5b9a\u3059\u308b\u30d6\u30ed\u30c3\u30af\u3067\u3059\u3002<br>source\u3067\u306fAWS Provider\u306e\u53d6\u5f97\u5143\uff08Terraform Registry\u4e0a\u306e\u300chashicorp\/aws\u300d\uff09\u3092\u3001version\u3067\u306f\u5229\u7528\u3059\u308bProvider\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u6307\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u300c~&gt; 6.67.0\u300d\u306f\u3001<span class=\"c-user01\" style=\"font-weight:bold;\">6.67.0\u4ee5\u4e0a\u304b\u30646.68.0\u672a\u6e80\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u4f7f\u3046<\/span>\u3068\u3044\u3046\u610f\u5473\u3067\u3059\u3002<br>\u3053\u306e\u3088\u3046\u306b\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u56fa\u5b9a\u3057\u3066\u304a\u304f\u3053\u3068\u3067\u3001Provider\u306e\u66f4\u65b0\u306b\u3088\u3063\u3066\u610f\u56f3\u305b\u305a\u6319\u52d5\u304c\u5909\u308f\u308b\u3053\u3068\u3092\u9632\u3052\u307e\u3059\u3002<br>\u30de\u30a4\u30ca\u30fc\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u66f4\u65b0\u3082\u8a31\u53ef\u3057\u305f\u3044\u5834\u5408\u306f\u300c~&gt; 6.0\u300d\uff086.0\u4ee5\u4e0a7.0\u672a\u6e80\uff09\u306e\u3088\u3046\u306b\u6307\u5b9a\u3057\u307e\u3059\u3002<br>\u6307\u5b9a\u65b9\u6cd5\u306e\u8a73\u7d30\u306f<a href=\"https:\/\/developer.hashicorp.com\/terraform\/language\/expressions\/version-constraints\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">\u30d0\u30fc\u30b8\u30e7\u30f3\u5236\u7d04\u306e\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/a>\u3067\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u305d\u306e\u4e0b\u306eprovider\u30d6\u30ed\u30c3\u30af\u3067\u306f\u3001AWS\u306e\u30ea\u30fc\u30b8\u30e7\u30f3\u8a2d\u5b9a\u3092\u884c\u3063\u3066\u3044\u307e\u3059\u3002<br>ap-northeast-1\u306f\u3001AWS\u306b\u304a\u3051\u308b\u6771\u4eac\u30ea\u30fc\u30b8\u30e7\u30f3\u306e\u30ea\u30fc\u30b8\u30e7\u30f3\u30b3\u30fc\u30c9\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6700\u5f8c\u306b\u3001resource\u30d6\u30ed\u30c3\u30af\u3067\u4f5c\u6210\u3059\u308bS3\u30d0\u30b1\u30c3\u30c8\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002<br>aws_s3_bucket\u306f\u3001AWS\u306eS3\u30d0\u30b1\u30c3\u30c8\u3092\u8868\u3059\u30ea\u30bd\u30fc\u30b9\u30bf\u30a4\u30d7\u3067\u3059\u3002<br>bucket\u3067\u306f\u3001\u4f5c\u6210\u3059\u308bS3\u30d0\u30b1\u30c3\u30c8\u306e\u540d\u524d\u3092\u6307\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<br>\u6307\u5b9a\u3067\u304d\u308b\u5f15\u6570\u306e\u4e00\u89a7\u306f\u3001<a href=\"https:\/\/registry.terraform.io\/providers\/hashicorp\/aws\/latest\/docs\/resources\/s3_bucket\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">aws_s3_bucket\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/a>\u3067\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"techmania-recirc\">\n<style>\n.techmania-recirc{margin:24px 0;font-family:-apple-system,\"Hiragino Kaku Gothic ProN\",\"Yu Gothic\",sans-serif;}\n.techmania-recirc__label{font-size:14px;color:#333;margin-bottom:8px;font-weight:bold;}\n.techmania-recirc__box{display:flex;align-items:center;gap:16px;border:1px solid #ddd;border-radius:4px;padding:12px 16px;text-decoration:none;transition:background .2s;}\n.techmania-recirc__box:hover{background:#f7f9fc;}\n.techmania-recirc__thumb{width:96px;aspect-ratio:6\/4;object-fit:cover;border-radius:4px;flex-shrink:0;}\n.techmania-recirc__title{color:#2952cc;font-size:15px;line-height:1.6;flex:1;}\n.techmania-recirc__arrow{flex-shrink:0;width:28px;height:28px;border-radius:50%;background:#2952cc;color:#fff;display:flex;align-items:center;justify-content:center;font-size:12px;}\n<\/style>\n<div class=\"techmania-recirc__label\">\u25bc\u3053\u3061\u3089\u3082\u30c1\u30a7\u30c3\u30af\u25bc<\/div>\n<a class=\"techmania-recirc__box\" href=\"https:\/\/techmania.jp\/blog\/aws0007\/\">\n  <img decoding=\"async\" class=\"techmania-recirc__thumb\" src=\"https:\/\/web-img.rensa.jp.net\/rensa\/images\/techmania\/thumbnail\/images\/S30.png\" alt=\"Amazon S3\u3068\u306f\u3010AWS\u5165\u9580\u3011\u57fa\u790e\u304b\u3089\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\" loading=\"lazy\">\n  <span class=\"techmania-recirc__title\">Amazon S3\u3068\u306f\u3010AWS\u5165\u9580\u3011\u57fa\u790e\u304b\u3089\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac<\/span>\n  <span class=\"techmania-recirc__arrow\">\u25b6<\/span>\n<\/a>\n<\/div>\n\n\n\n<h3 id=\"outline__3_4\" class=\"wp-block-heading\">\u624b\u98063\uff1a\u521d\u671f\u5316\u30fb\u5b9f\u884c\u8a08\u753b\u306e\u78ba\u8a8d\u30fb\u9069\u7528\u3092\u884c\u3046<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Terraform\u3067\u306f\u3001\u30b3\u30fc\u30c9\u3092\u66f8\u3044\u305f\u3060\u3051\u3067\u306fAWS\u4e0a\u306b\u30ea\u30bd\u30fc\u30b9\u306f\u4f5c\u6210\u3055\u308c\u307e\u305b\u3093\u3002<br>\u57fa\u672c\u7684\u306b\u306f\u3001<span class=\"c-user01\" style=\"font-weight:bold;\">\u300c\u521d\u671f\u5316\uff08init\uff09\u2192 \u5b9f\u884c\u8a08\u753b\u306e\u78ba\u8a8d\uff08plan\uff09\u2192 \u9069\u7528\uff08apply\uff09\u300d\u306e\u9806<\/span>\u3067\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u53cd\u6620\u3055\u305b\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/web-img.rensa.jp.net\/images\/techmania\/thumbnail\/images\/1009_Init_Plan_Apply.webp\" alt=\"Terraform\u306e\u57fa\u672c\u7684\u306a\u4f5c\u696d\u306e\u6d41\u308c\u306e\u56f3\u3002terraform init\u3067\u521d\u671f\u5316\u3001terraform plan\u3067\u5b9f\u884c\u8a08\u753b\u3092\u78ba\u8a8d\u3001terraform apply\u3067\u9069\u7528\u3057\u3001\u4e0d\u8981\u306b\u306a\u3063\u305f\u3089terraform destroy\u3067\u524a\u9664\u3059\u308b\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u307e\u305a\u306f\u3001main.tf\u3092\u4fdd\u5b58\u3057\u305f\u4f5c\u696d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3067\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">Terraform\u306e\u521d\u671f\u5316<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>terraform init<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #FFCB6B\">terraform<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">init<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><code>terraform init<\/code>\u306f\u3001Terraform\u306e\u4f5c\u696d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u521d\u671f\u5316\u3059\u308b\u305f\u3081\u306e\u30b3\u30de\u30f3\u30c9\u3067\u3059\u3002<br>required_providers\u3067\u6307\u5b9a\u3057\u305fAWS Provider\u3092Terraform Registry\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3001Terraform\u304b\u3089\u5229\u7528\u3067\u304d\u308b\u72b6\u614b\u306b\u3057\u307e\u3059\u3002<br>\u300c<span class=\"c-user01\" style=\"font-weight:bold;\">Terraform has been successfully initialized!<\/span>\u300d\u3068\u8868\u793a\u3055\u308c\u308c\u3070\u3001\u521d\u671f\u5316\u306f\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/web-img.rensa.jp.net\/images\/techmania\/thumbnail\/images\/1009_Terraform_Init.webp\" alt=\"terraform init\u306e\u5b9f\u884c\u7d50\u679c\u3002hashicorp\/aws v6.67.0\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3001Terraform has been successfully initialized!\u3068\u8868\u793a\u3055\u308c\u3066\u3044\u308b\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u521d\u671f\u5316\u6642\u306b\u306f\u3001Provider\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u8a18\u9332\u3059\u308b\u300c.terraform.lock.hcl\u300d\u3068\u3044\u3046\u30ed\u30c3\u30af\u30d5\u30a1\u30a4\u30eb\u3082\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002<br>\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u306f\u3001\u30c1\u30fc\u30e0\u3067\u540c\u3058Provider\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u4f7f\u3046\u305f\u3081\u306bGit\u3067\u7ba1\u7406\u3059\u308b\u306e\u304c\u63a8\u5968\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u307e\u305f\u3001\u521d\u671f\u5316\u5f8c\u306f\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3067\u3001\u30b3\u30fc\u30c9\u306e\u66f8\u5f0f\u3092\u6574\u3048\u305f\u308a\u3001\u69cb\u6587\u306b\u8aa4\u308a\u304c\u306a\u3044\u304b\u3092\u78ba\u8a8d\u3057\u305f\u308a\u3067\u304d\u307e\u3059\u3002<br>\u5fc5\u9808\u306e\u624b\u9806\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u304c\u3001plan\u306e\u524d\u306b\u5b9f\u884c\u3057\u3066\u304a\u304f\u3068\u30df\u30b9\u306b\u6c17\u3065\u304d\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">\u30b3\u30fc\u30c9\u306e\u6574\u5f62\u3068\u69cb\u6587\u30c1\u30a7\u30c3\u30af<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>terraform fmt\nterraform validate<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #FFCB6B\">terraform<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">fmt<\/span><\/span>\n<span class=\"line\"><span style=\"color: #FFCB6B\">terraform<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">validate<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u7d9a\u3044\u3066\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3067\u5b9f\u884c\u8a08\u753b\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">Terraform\u306e\u5b9f\u884c\u8a08\u753b<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>terraform plan<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #FFCB6B\">terraform<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">plan<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><code>terraform plan<\/code>\u306f\u3001Terraform\u306e\u30b3\u30fc\u30c9\u3092\u3082\u3068\u306b\u3001\u3069\u306e\u3088\u3046\u306a\u5909\u66f4\u304c\u884c\u308f\u308c\u308b\u306e\u304b\u3092\u4e8b\u524d\u306b\u78ba\u8a8d\u3059\u308b\u305f\u3081\u306e\u30b3\u30de\u30f3\u30c9\u3067\u3059\u3002<br>plan\u306e\u6bb5\u968e\u3067\u306f\u3001AWS\u4e0a\u306e\u30ea\u30bd\u30fc\u30b9\u306f\u5909\u66f4\u3055\u308c\u307e\u305b\u3093\u3002<br>\u610f\u56f3\u3057\u305f\u30ea\u30bd\u30fc\u30b9\u304c\u4f5c\u6210\u3055\u308c\u308b\u304b\u3084\u3001\u4e0d\u8981\u306a\u5909\u66f4\u304c\u542b\u307e\u308c\u3066\u3044\u306a\u3044\u304b\u306a\u3069\u3092\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/web-img.rensa.jp.net\/images\/techmania\/thumbnail\/images\/1009_Terraform_Plan.webp\" alt=\"terraform plan\u306e\u5b9f\u884c\u7d50\u679c\u3002aws_s3_bucket.example\u304c\u4f5c\u6210\uff08+ create\uff09\u3055\u308c\u308b\u4e88\u5b9a\u3068\u3057\u3066\u8868\u793a\u3055\u308c\u3066\u3044\u308b\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u5b9f\u884c\u8a08\u753b\u3067\u306f\u3001\u5404\u30ea\u30bd\u30fc\u30b9\u306e\u5148\u982d\u306b\u4ed8\u304f\u8a18\u53f7\u3067\u5909\u66f4\u306e\u7a2e\u985e\u304c\u8868\u3055\u308c\u307e\u3059\u3002<br>\u4eca\u56de\u306f\u65b0\u3057\u304fS3\u30d0\u30b1\u30c3\u30c8\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u3001\u300c+ create\u300d\u3068\u8868\u793a\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><th>\u8a18\u53f7<\/th><th>\u8868\u793a<\/th><th>\u610f\u5473<\/th><\/tr><tr><td><strong>+<\/strong><\/td><td>create<\/td><td>\u30ea\u30bd\u30fc\u30b9\u3092\u65b0\u3057\u304f\u4f5c\u6210\u3059\u308b<\/td><\/tr><tr><td><strong>~<\/strong><\/td><td>update in-place<\/td><td>\u65e2\u5b58\u306e\u30ea\u30bd\u30fc\u30b9\u3092\u305d\u306e\u307e\u307e\u5909\u66f4\u3059\u308b<\/td><\/tr><tr><td><strong>&#8211;<\/strong><\/td><td>destroy<\/td><td>\u30ea\u30bd\u30fc\u30b9\u3092\u524a\u9664\u3059\u308b<\/td><\/tr><tr><td><strong>-\/+<\/strong><\/td><td>destroy and then create replacement<\/td><td>\u30ea\u30bd\u30fc\u30b9\u3092\u524a\u9664\u3057\u3066\u304b\u3089\u4f5c\u308a\u76f4\u3059\uff08\u7f6e\u304d\u63db\u3048\uff09<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Terraform\u3092\u5229\u7528\u3057\u3066\u904b\u7528\u3059\u308b\u969b\u306f\u3001<span class=\"c-user01\" style=\"font-weight:bold;\">plan\u306e\u7d50\u679c\u3092\u78ba\u8a8d\u3057\u3066\u304b\u3089\u5909\u66f4\u3092\u53cd\u6620\u3059\u308b\u3053\u3068\u304c\u91cd\u8981<\/span>\u3067\u3059\u3002<br>\u7279\u306b\u300c-\/+\u300d\uff08\u7f6e\u304d\u63db\u3048\uff09\u304c\u8868\u793a\u3055\u308c\u305f\u5834\u5408\u306f\u3001\u65e2\u5b58\u306e\u30ea\u30bd\u30fc\u30b9\u304c\u4e00\u5ea6\u524a\u9664\u3055\u308c\u308b\u305f\u3081\u3001\u5185\u5bb9\u3092\u3088\u304f\u78ba\u8a8d\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5909\u66f4\u5185\u5bb9\u306b\u554f\u984c\u304c\u306a\u3044\u3053\u3068\u3092\u78ba\u8a8d\u3057\u305f\u3089\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3067\u30b3\u30fc\u30c9\u306e\u5185\u5bb9\u3092AWS\u3078\u9069\u7528\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">Terraform\u306e\u9069\u7528<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>terraform apply<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #FFCB6B\">terraform<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">apply<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u5b9f\u884c\u3059\u308b\u3068\u3001\u3082\u3046\u4e00\u5ea6\u5b9f\u884c\u8a08\u753b\u304c\u8868\u793a\u3055\u308c\u3001\u6700\u5f8c\u306b\u300cEnter a value:\u300d\u3068\u78ba\u8a8d\u3092\u6c42\u3081\u3089\u308c\u307e\u3059\u3002<br><span class=\"c-user01\" style=\"font-weight:bold;\">\u300cyes\u300d\u3068\u5165\u529b\u3057\u3066Enter\u30ad\u30fc\u3092\u62bc\u3059\u3068\u3001AWS\u4e0a\u306b\u30ea\u30bd\u30fc\u30b9\u304c\u4f5c\u6210<\/span>\u3055\u308c\u307e\u3059\uff08yes\u4ee5\u5916\u3092\u5165\u529b\u3059\u308b\u3068\u4e2d\u6b62\u3055\u308c\u307e\u3059\uff09\u3002<br>\u300cApply complete!\u300d\u3068\u8868\u793a\u3055\u308c\u308c\u3070\u3001\u9069\u7528\u306f\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/web-img.rensa.jp.net\/images\/techmania\/thumbnail\/images\/1009_Terraform_Apply.webp\" alt=\"terraform apply\u306e\u5b9f\u884c\u7d50\u679c\u3002\u78ba\u8a8d\u3067yes\u3092\u5165\u529b\u3057\u3001Apply complete! Resources: 1 added, 0 changed, 0 destroyed.\u3068\u8868\u793a\u3055\u308c\u3066\u3044\u308b\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><code>terraform apply<\/code>\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001State\u30d5\u30a1\u30a4\u30eb\uff08terraform.tfstate\uff09\u3082\u5408\u308f\u305b\u3066\u4f5c\u6210\u30fb\u66f4\u65b0\u3055\u308c\u307e\u3059\u3002<br>\u3053\u306e\u6642\u70b9\u3067\u3001\u4f5c\u696d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306f\u6b21\u306e\u3088\u3046\u306a\u69cb\u6210\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">apply\u5f8c\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u69cb\u6210<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>terraform-s3\/\n\u251c\u2500\u2500 .terraform\/           # init\u3067\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305fProvider\u306a\u3069\n\u251c\u2500\u2500 .terraform.lock.hcl   # Provider\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u8a18\u9332\u3059\u308b\u30ed\u30c3\u30af\u30d5\u30a1\u30a4\u30eb\n\u251c\u2500\u2500 main.tf               # \u4f5c\u6210\u3057\u305f\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\n\u2514\u2500\u2500 terraform.tfstate     # apply\u3067\u4f5c\u6210\u3055\u308c\u305fState\u30d5\u30a1\u30a4\u30eb<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #EEFFFF\">terraform-s3\/<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">\u251c\u2500\u2500 .terraform\/           # init\u3067\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305fProvider\u306a\u3069<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">\u251c\u2500\u2500 .terraform.lock.hcl   # Provider\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u8a18\u9332\u3059\u308b\u30ed\u30c3\u30af\u30d5\u30a1\u30a4\u30eb<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">\u251c\u2500\u2500 main.tf               # \u4f5c\u6210\u3057\u305f\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">\u2514\u2500\u2500 terraform.tfstate     # apply\u3067\u4f5c\u6210\u3055\u308c\u305fState\u30d5\u30a1\u30a4\u30eb<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<h3 id=\"outline__3_5\" class=\"wp-block-heading\">\u624b\u98064\uff1aAWS\u30b3\u30f3\u30bd\u30fc\u30eb\u3067\u78ba\u8a8d\u3057\u3001\u5909\u66f4\u30fb\u524a\u9664\u307e\u3067\u884c\u3046<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">S3\u30d0\u30b1\u30c3\u30c8\u304c\u4f5c\u6210\u3055\u308c\u305f\u3089\u3001AWS\u30de\u30cd\u30b8\u30e1\u30f3\u30c8\u30b3\u30f3\u30bd\u30fc\u30eb\u304b\u3089\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<br>S3\u306e\u753b\u9762\u3092\u958b\u304d\u3001<span class=\"c-user01\" style=\"font-weight:bold;\">\u30d0\u30b1\u30c3\u30c8\u4e00\u89a7\u306bTerraform\u3067\u6307\u5b9a\u3057\u305f\u30d0\u30b1\u30c3\u30c8\u540d\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u308c\u3070\u3001\u7121\u4e8b\u306bS3\u30d0\u30b1\u30c3\u30c8\u3092\u4f5c\u6210\u3067\u304d\u3066\u3044\u307e\u3059<\/span>\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/web-img.rensa.jp.net\/images\/techmania\/thumbnail\/images\/1009_Show_Bucket.webp\" alt=\"AWS\u30de\u30cd\u30b8\u30e1\u30f3\u30c8\u30b3\u30f3\u30bd\u30fc\u30eb\u306eS3\u6c4e\u7528\u30d0\u30b1\u30c3\u30c8\u4e00\u89a7\u306b\u3001Terraform\u3067\u4f5c\u6210\u3057\u305fterraform-example-bucket-20261005\u304c\u30a2\u30b8\u30a2\u30d1\u30b7\u30d5\u30a3\u30c3\u30af\uff08\u6771\u4eac\uff09\u30ea\u30fc\u30b8\u30e7\u30f3\u3067\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u753b\u9762\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Terraform\u5074\u304b\u3089\u3082\u3001\u7ba1\u7406\u3057\u3066\u3044\u308b\u30ea\u30bd\u30fc\u30b9\u3092\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<br>\u4f5c\u696d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3067\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">Terraform\u3067\u7ba1\u7406\u3057\u3066\u3044\u308b\u30ea\u30bd\u30fc\u30b9\u306e\u78ba\u8a8d<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>terraform state list\nterraform show<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #FFCB6B\">terraform<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">state<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">list<\/span><\/span>\n<span class=\"line\"><span style=\"color: #FFCB6B\">terraform<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">show<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><code>terraform state list<\/code>\u306f\u3001<span class=\"c-user01\" style=\"font-weight:bold;\">State\u306b\u8a18\u9332\u3055\u308c\u3066\u3044\u308b\uff08Terraform\u3067\u7ba1\u7406\u3057\u3066\u3044\u308b\uff09\u30ea\u30bd\u30fc\u30b9\u306e\u4e00\u89a7<\/span>\u3092\u8868\u793a\u3059\u308b\u30b3\u30de\u30f3\u30c9\u3067\u3059\u3002<br>\u4eca\u56de\u306e\u4f8b\u3067\u306f\u3001\u6b21\u306e\u3088\u3046\u306b\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">\u5b9f\u884c\u7d50\u679c\u306e\u4f8b<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>aws_s3_bucket.example<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #EEFFFF\">aws_s3_bucket.example<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u300caws_s3_bucket.example\u300d\u306f\u3001\u300c\u30ea\u30bd\u30fc\u30b9\u30bf\u30a4\u30d7.\u30ea\u30bd\u30fc\u30b9\u540d\u300d\u306e\u5f62\u5f0f\u3067\u8868\u3057\u305f\u30ea\u30bd\u30fc\u30b9\u306e\u8b58\u5225\u540d\uff08\u30a2\u30c9\u30ec\u30b9\uff09\u3067\u3059\u3002<br>\u307e\u305f\u3001<code>terraform show<\/code>\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u30d0\u30b1\u30c3\u30c8\u306eARN\u3084\u30ea\u30fc\u30b8\u30e7\u30f3\u306a\u3069\u3001State\u306b\u8a18\u9332\u3055\u308c\u3066\u3044\u308b\u5404\u30ea\u30bd\u30fc\u30b9\u306e\u8a73\u3057\u3044\u5c5e\u6027\u3092\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u3053\u307e\u3067\u304cTerraform\u306b\u3088\u308b\u57fa\u672c\u7684\u306a\u30ea\u30bd\u30fc\u30b9\u4f5c\u6210\u65b9\u6cd5\u3067\u3059\u3002<br>\u3057\u304b\u3057\u306a\u304c\u3089\u3001Terraform\u306f\u30ea\u30bd\u30fc\u30b9\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u3060\u3051\u3067\u306f\u306a\u304f\u3001\u4f5c\u6210\u6e08\u307f\u30ea\u30bd\u30fc\u30b9\u306e\u5909\u66f4\u30fb\u524a\u9664\u3082\u5b9f\u884c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u305f\u3068\u3048\u3070\u3001S3\u30d0\u30b1\u30c3\u30c8\u306b\u30bf\u30b0\u3092\u8ffd\u52a0\u3057\u3066\u307f\u307e\u3059\u3002<br>main.tf\u306eresource\u30d6\u30ed\u30c3\u30af\u3092\u6b21\u306e\u3088\u3046\u306b\u66f8\u304d\u63db\u3048\u307e\u3059\uff08terraform\u30d6\u30ed\u30c3\u30af\u3068provider\u30d6\u30ed\u30c3\u30af\u306f\u305d\u306e\u307e\u307e\u3067\u3059\uff09\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">main.tf\uff08\u30bf\u30b0\u8ffd\u52a0\u5f8c\uff09<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>resource \"aws_s3_bucket\" \"example\" {\n  bucket = \"terraform-example-bucket-20261005\"\n\n  tags = {\n    Name        = \"Terraform Example\"\n    Environment = \"Test\"\n  }\n}<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #FFCB6B\">resource<\/span><span style=\"color: #F07178\"> <\/span><span style=\"color: #EEFFFF\">&quot;aws_s3_bucket&quot;<\/span><span style=\"color: #F07178\"> <\/span><span style=\"color: #EEFFFF\">&quot;example&quot;<\/span><span style=\"color: #F07178\"> <\/span><span style=\"color: #89DDFF\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F07178\">  <\/span><span style=\"color: #EEFFFF\">bucket <\/span><span style=\"color: #89DDFF\">=<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #C3E88D\">terraform-example-bucket-20261005<\/span><span style=\"color: #89DDFF\">&quot;<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #F07178\">  <\/span><span style=\"color: #EEFFFF\">tags <\/span><span style=\"color: #89DDFF\">=<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #89DDFF\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F07178\">    <\/span><span style=\"color: #EEFFFF\">Name<\/span><span style=\"color: #F07178\">        <\/span><span style=\"color: #89DDFF\">=<\/span><span style=\"color: #F07178\"> <\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #C3E88D\">Terraform Example<\/span><span style=\"color: #89DDFF\">&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F07178\">    <\/span><span style=\"color: #EEFFFF\">Environment<\/span><span style=\"color: #F07178\"> <\/span><span style=\"color: #89DDFF\">=<\/span><span style=\"color: #F07178\"> <\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #C3E88D\">Test<\/span><span style=\"color: #89DDFF\">&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F07178\">  <\/span><span style=\"color: #89DDFF\">}<\/span><\/span>\n<span class=\"line\"><span style=\"color: #89DDFF\">}<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u5909\u66f4\u5f8c\u306f\u3001<code>terraform plan<\/code>\u3092\u518d\u5ea6\u5b9f\u884c\u3057\u3001\u5909\u66f4\u5185\u5bb9\u3092\u78ba\u8a8d\u3057\u3066\u304b\u3089<code>terraform apply<\/code>\u3067\u53cd\u6620\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">\u5909\u66f4\u5185\u5bb9\u306e\u78ba\u8a8d\u3068\u9069\u7528<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>terraform plan\nterraform apply<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #FFCB6B\">terraform<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">plan<\/span><\/span>\n<span class=\"line\"><span style=\"color: #FFCB6B\">terraform<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">apply<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u4eca\u56de\u306f\u30d0\u30b1\u30c3\u30c8\u3092\u4f5c\u308a\u76f4\u3055\u305a\u306b\u30bf\u30b0\u3060\u3051\u3092\u8ffd\u52a0\u3059\u308b\u305f\u3081\u3001\u5b9f\u884c\u8a08\u753b\u306b\u306f\u300c~ update in-place\u300d\u3068\u8868\u793a\u3055\u308c\u3001\u300c<span class=\"c-user01\" style=\"font-weight:bold;\">Plan: 0 to add, 1 to change, 0 to destroy.<\/span>\u300d\u3068\u306a\u308a\u307e\u3059\u3002<br>\u3053\u306e\u3088\u3046\u306b\u3001Terraform\u306f<span class=\"c-user01\" style=\"font-weight:bold;\">State\u30d5\u30a1\u30a4\u30eb\u3068\u6bd4\u8f03\u3057\u3066\u3001\u5dee\u5206\u3060\u3051\u3092\u5909\u66f4<\/span>\u3057\u3066\u304f\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/web-img.rensa.jp.net\/images\/techmania\/thumbnail\/images\/1009_Change_Plan.webp\" alt=\"\u30bf\u30b0\u8ffd\u52a0\u5f8c\u306eterraform plan\u306e\u5b9f\u884c\u7d50\u679c\u3002aws_s3_bucket.example\u304cupdate in-place\u3068\u306a\u308a\u3001Plan: 0 to add, 1 to change, 0 to destroy.\u3068\u8868\u793a\u3055\u308c\u3066\u3044\u308b\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u307e\u305f\u3001Terraform\u3067\u7ba1\u7406\u3057\u3066\u3044\u308b\u30ea\u30bd\u30fc\u30b9\u3092\u524a\u9664\u3057\u305f\u3044\u5834\u5408\u306f\u3001\u4e3b\u306b2\u901a\u308a\u306e\u3084\u308a\u65b9\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u304b\u3089\u3001\u5bfe\u8c61\u306e\u30ea\u30bd\u30fc\u30b9\u306b\u95a2\u3059\u308b\u8a18\u8ff0\u3092\u6d88\u3059<\/li>\n\n\n\n<li>terraform destroy\u3092\u5b9f\u884c\u3059\u308b<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u7528\u3044\u308b\u65b9\u6cd5\u306e\u5834\u5408\u306f\u3001\u3053\u308c\u307e\u3067\u3068\u540c\u69d8\u306b\u8a18\u8ff0\u5185\u5bb9\u3092\u5909\u66f4\u3057\u3001<code>terraform plan<\/code>\u2192<code>terraform apply<\/code>\u306e\u9806\u306b\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<br>\u30b3\u30fc\u30c9\u304b\u3089\u6d88\u3057\u305f\u30ea\u30bd\u30fc\u30b9\u306f\u3001\u5b9f\u884c\u8a08\u753b\u3067\u300c- destroy\u300d\u3068\u3057\u3066\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e00\u65b9\u3001<code>terraform destroy<\/code>\u306f\u3001<span class=\"c-user01\" style=\"font-weight:bold;\">\u305d\u306e\u4f5c\u696d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306eTerraform\u3067\u7ba1\u7406\u3057\u3066\u3044\u308b\u30ea\u30bd\u30fc\u30b9\u3092\u3059\u3079\u3066\u524a\u9664\u3059\u308b<\/span>\u30b3\u30de\u30f3\u30c9\u3067\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">Terraform\u306e\u30ea\u30bd\u30fc\u30b9\u524a\u9664<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>terraform destroy<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #FFCB6B\">terraform<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">destroy<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">apply\u3068\u540c\u69d8\u306b\u3001\u524a\u9664\u5bfe\u8c61\u306e\u30ea\u30bd\u30fc\u30b9\u304c\u8868\u793a\u3055\u308c\u305f\u5f8c\u306b\u78ba\u8a8d\u3092\u6c42\u3081\u3089\u308c\u308b\u306e\u3067\u3001\u5185\u5bb9\u3092\u78ba\u8a8d\u3057\u3066\u300cyes\u300d\u3068\u5165\u529b\u3057\u307e\u3059\u3002<br>\u672c\u756a\u74b0\u5883\u306e\u3088\u3046\u306b\u9577\u671f\u9593\u4f7f\u3046\u30ea\u30bd\u30fc\u30b9\u306b\u5bfe\u3057\u3066\u5b9f\u884c\u3059\u308b\u3053\u3068\u306f\u901a\u5e38\u3042\u308a\u307e\u305b\u3093\u304c\u3001<span class=\"c-user01\" style=\"font-weight:bold;\">\u7df4\u7fd2\u74b0\u5883\u306a\u3069\u3067\u30ea\u30bd\u30fc\u30b9\u3092\u307e\u3068\u3081\u3066\u7247\u4ed8\u3051\u305f\u3044\u5834\u5408\u306b\u4fbf\u5229<\/span>\u306a\u30b3\u30de\u30f3\u30c9\u3067\u3059\uff08<a href=\"https:\/\/developer.hashicorp.com\/terraform\/cli\/commands\/destroy\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">terraform destroy\u306e\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/a>\uff09\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/web-img.rensa.jp.net\/images\/techmania\/thumbnail\/images\/1009_Terraform_Destroy.webp\" alt=\"terraform destroy\u306e\u5b9f\u884c\u7d50\u679c\u3002aws_s3_bucket.example\u304c\u524a\u9664\uff08destroyed\uff09\u3055\u308c\u308b\u4e88\u5b9a\u3068\u3057\u3066\u8868\u793a\u3055\u308c\u3066\u3044\u308b\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u306a\u304a\u3001S3\u30d0\u30b1\u30c3\u30c8\u306e\u4e2d\u306b\u30d5\u30a1\u30a4\u30eb\uff08\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\uff09\u304c\u6b8b\u3063\u3066\u3044\u308b\u3068\u3001\u30d0\u30b1\u30c3\u30c8\u3092\u524a\u9664\u3067\u304d\u305a\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3059\u3002<br>\u305d\u306e\u5834\u5408\u306f\u3001\u30d0\u30b1\u30c3\u30c8\u3092\u7a7a\u306b\u3057\u3066\u304b\u3089\u518d\u5ea6\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br>\u4f5c\u696d\u304c\u7d42\u308f\u3063\u305f\u3089\u3001<span class=\"c-user01\" style=\"font-weight:bold;\">AWS\u30b3\u30f3\u30bd\u30fc\u30eb\u3067\u30d0\u30b1\u30c3\u30c8\u304c\u524a\u9664\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3001\u4e0d\u8981\u306a\u6599\u91d1\u304c\u767a\u751f\u3057\u306a\u3044\u3088\u3046\u306b\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046<\/span>\u3002<\/p>\n\n\n\n<h3 id=\"outline__3_6\" class=\"wp-block-heading\">\u5fdc\u7528\uff1a\u5909\u6570\u3068\u51fa\u529b\u3067\u30b3\u30fc\u30c9\u3092\u4f7f\u3044\u56de\u3057\u3084\u3059\u304f\u3059\u308b<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u3053\u307e\u3067\u306emain.tf\u3067\u306f\u3001\u30d0\u30b1\u30c3\u30c8\u540d\u3092\u30b3\u30fc\u30c9\u306b\u76f4\u63a5\u66f8\u3044\u3066\u3044\u307e\u3057\u305f\u3002<br>Terraform\u3067\u306f\u3001<span class=\"c-user01\" style=\"font-weight:bold;\">\u5909\u6570\uff08variable\uff09<\/span>\u3092\u4f7f\u3046\u3068\u5024\u3092\u30b3\u30fc\u30c9\u306e\u5916\u304b\u3089\u6e21\u305b\u308b\u3088\u3046\u306b\u306a\u308a\u3001<span class=\"c-user01\" style=\"font-weight:bold;\">\u51fa\u529b\uff08output\uff09<\/span>\u3092\u4f7f\u3046\u3068\u4f5c\u6210\u3057\u305f\u30ea\u30bd\u30fc\u30b9\u306e\u60c5\u5831\u3092apply\u5f8c\u306b\u8868\u793a\u3067\u304d\u307e\u3059\u3002<br>\u5192\u982d\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u69cb\u6210\u3067\u7d39\u4ecb\u3057\u305f\u3088\u3046\u306b\u3001\u5909\u6570\u3084\u51fa\u529b\u306f\u5f79\u5272\u3054\u3068\u306b\u30d5\u30a1\u30a4\u30eb\u3092\u5206\u3051\u3066\u66f8\u304f\u306e\u304c\u4e00\u822c\u7684\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u307e\u305a\u3001\u4f5c\u696d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u300cvariables.tf\u300d\u3092\u4f5c\u6210\u3057\u3001\u30d0\u30b1\u30c3\u30c8\u540d\u3092\u53d7\u3051\u53d6\u308b\u5909\u6570\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">variables.tf<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>variable \"bucket_name\" {\n  description = \"\u4f5c\u6210\u3059\u308bS3\u30d0\u30b1\u30c3\u30c8\u306e\u540d\u524d\"\n  type        = string\n}<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #FFCB6B\">variable<\/span><span style=\"color: #F07178\"> <\/span><span style=\"color: #EEFFFF\">&quot;bucket_name&quot;<\/span><span style=\"color: #F07178\"> <\/span><span style=\"color: #89DDFF\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F07178\">  <\/span><span style=\"color: #EEFFFF\">description <\/span><span style=\"color: #89DDFF\">=<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #C3E88D\">\u4f5c\u6210\u3059\u308bS3\u30d0\u30b1\u30c3\u30c8\u306e\u540d\u524d<\/span><span style=\"color: #89DDFF\">&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F07178\">  <\/span><span style=\"color: #EEFFFF\">type        <\/span><span style=\"color: #89DDFF\">=<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C792EA\">string<\/span><\/span>\n<span class=\"line\"><span style=\"color: #89DDFF\">}<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u6b21\u306b\u3001main.tf\u306eresource\u30d6\u30ed\u30c3\u30af\u3092\u66f8\u304d\u63db\u3048\u3001\u30d0\u30b1\u30c3\u30c8\u540d\u306e\u4ee3\u308f\u308a\u306b<code>var.\u5909\u6570\u540d<\/code>\u306e\u5f62\u5f0f\u3067\u5909\u6570\u3092\u53c2\u7167\u3057\u307e\u3059\uff08terraform\u30d6\u30ed\u30c3\u30af\u3068provider\u30d6\u30ed\u30c3\u30af\u306f\u305d\u306e\u307e\u307e\u3067\u3059\uff09\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">main.tf\uff08\u5909\u6570\u3092\u4f7f\u7528\uff09<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>resource \"aws_s3_bucket\" \"example\" {\n  bucket = var.bucket_name\n}<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #FFCB6B\">resource<\/span><span style=\"color: #F07178\"> <\/span><span style=\"color: #EEFFFF\">&quot;aws_s3_bucket&quot;<\/span><span style=\"color: #F07178\"> <\/span><span style=\"color: #EEFFFF\">&quot;example&quot;<\/span><span style=\"color: #F07178\"> <\/span><span style=\"color: #89DDFF\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F07178\">  <\/span><span style=\"color: #EEFFFF\">bucket <\/span><span style=\"color: #89DDFF\">=<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #F07178\">var<\/span><span style=\"color: #89DDFF\">.<\/span><span style=\"color: #EEFFFF\">bucket_name<\/span><\/span>\n<span class=\"line\"><span style=\"color: #89DDFF\">}<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u5909\u6570\u306b\u6e21\u3059\u5024\u306f\u3001\u300cterraform.tfvars\u300d\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u306b\u66f8\u3044\u3066\u304a\u304f\u3068\u3001plan\u30fbapply\u6642\u306b\u81ea\u52d5\u3067\u8aad\u307f\u8fbc\u307e\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">terraform.tfvars<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>bucket_name = \"terraform-example-bucket-20261005\"<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #EEFFFF\">bucket_name <\/span><span style=\"color: #89DDFF\">=<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #C3E88D\">terraform-example-bucket-20261005<\/span><span style=\"color: #89DDFF\">&quot;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u6700\u5f8c\u306b\u3001\u300coutputs.tf\u300d\u3092\u4f5c\u6210\u3057\u3001apply\u5f8c\u306b\u8868\u793a\u3057\u305f\u3044\u5024\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002<br>\u3053\u3053\u3067\u306f\u3001\u4f5c\u6210\u3057\u305f\u30d0\u30b1\u30c3\u30c8\u306eARN\uff08AWS\u4e0a\u3067\u30ea\u30bd\u30fc\u30b9\u3092\u4e00\u610f\u306b\u8b58\u5225\u3059\u308b\u540d\u524d\uff09\u3092\u51fa\u529b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">outputs.tf<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>output \"bucket_arn\" {\n  description = \"\u4f5c\u6210\u3057\u305fS3\u30d0\u30b1\u30c3\u30c8\u306eARN\"\n  value       = aws_s3_bucket.example.arn\n}<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #FFCB6B\">output<\/span><span style=\"color: #F07178\"> <\/span><span style=\"color: #EEFFFF\">&quot;bucket_arn&quot;<\/span><span style=\"color: #F07178\"> <\/span><span style=\"color: #89DDFF\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F07178\">  <\/span><span style=\"color: #EEFFFF\">description <\/span><span style=\"color: #89DDFF\">=<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #C3E88D\">\u4f5c\u6210\u3057\u305fS3\u30d0\u30b1\u30c3\u30c8\u306eARN<\/span><span style=\"color: #89DDFF\">&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F07178\">  <\/span><span style=\"color: #EEFFFF\">value       <\/span><span style=\"color: #89DDFF\">=<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #F07178\">aws_s3_bucket<\/span><span style=\"color: #89DDFF\">.<\/span><span style=\"color: #EEFFFF\">example<\/span><span style=\"color: #89DDFF\">.<\/span><span style=\"color: #EEFFFF\">arn<\/span><\/span>\n<span class=\"line\"><span style=\"color: #89DDFF\">}<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u72b6\u614b\u3067<code>terraform plan<\/code>\u2192<code>terraform apply<\/code>\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001<span class=\"c-user01\" style=\"font-weight:bold;\">apply\u5b8c\u4e86\u5f8c\u306b\u300cOutputs:\u300d\u3068\u3057\u3066\u51fa\u529b\u306e\u5024\u304c\u8868\u793a<\/span>\u3055\u308c\u307e\u3059\uff08\u624b\u98064\u3067\u30d0\u30b1\u30c3\u30c8\u3092\u524a\u9664\u3057\u305f\u5834\u5408\u306f\u3001\u3082\u3046\u4e00\u5ea6\u30d0\u30b1\u30c3\u30c8\u304c\u4f5c\u6210\u3055\u308c\u307e\u3059\uff09\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">\u5b9f\u884c\u7d50\u679c\u306e\u4f8b<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>Apply complete! Resources: 1 added, 0 changed, 0 destroyed.\n\nOutputs:\n\nbucket_arn = \"arn:aws:s3:::terraform-example-bucket-20261005\"<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #EEFFFF\">Apply complete! Resources: 1 added, 0 changed, 0 destroyed.<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\"><\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">Outputs:<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\"><\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">bucket_arn = &quot;arn:aws:s3:::terraform-example-bucket-20261005&quot;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u51fa\u529b\u306e\u5024\u306f\u3001\u3042\u3068\u304b\u3089\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3067\u3082\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">\u51fa\u529b\u306e\u78ba\u8a8d<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>terraform output<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #FFCB6B\">terraform<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">output<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u3088\u3046\u306b\u5909\u6570\u3092\u4f7f\u3048\u3070\u3001main.tf\u3092\u66f8\u304d\u63db\u3048\u305a\u306bterraform.tfvars\u306e\u5024\u3092\u5909\u3048\u308b\u3060\u3051\u3067\u3001\u5225\u306e\u540d\u524d\u306e\u30d0\u30b1\u30c3\u30c8\u3092\u4f5c\u6210\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<br>\u5909\u6570\u3068\u51fa\u529b\u306e\u66f8\u304d\u65b9\u306e\u8a73\u7d30\u306f\u3001<a href=\"https:\/\/developer.hashicorp.com\/terraform\/language\/values\/variables\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">\u5909\u6570\uff08Input Variables\uff09\u306e\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/a>\u3068<a href=\"https:\/\/developer.hashicorp.com\/terraform\/language\/values\/outputs\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">\u51fa\u529b\uff08Output Values\uff09\u306e\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/a>\u3067\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<br>\u78ba\u8a8d\u304c\u7d42\u308f\u3063\u305f\u3089\u3001<code>terraform destroy<\/code>\u3067\u30d0\u30b1\u30c3\u30c8\u3092\u524a\u9664\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<h2 id=\"outline__4\" class=\"wp-block-heading\">Terraform\u3067\u3088\u304f\u3042\u308b\u30a8\u30e9\u30fc\u3068\u5bfe\u51e6\u6cd5<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u3053\u3067\u306f\u3001\u672c\u8a18\u4e8b\u306e\u624b\u9806\u3092\u8a66\u3059\u4e2d\u3067\u521d\u5fc3\u8005\u304c\u3064\u307e\u305a\u304d\u3084\u3059\u3044\u30a8\u30e9\u30fc\u3068\u3001\u305d\u306e\u5bfe\u51e6\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<br>\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u7d30\u304b\u306a\u8868\u8a18\u306f\u3001Terraform\u3084AWS Provider\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306b\u3088\u3063\u3066\u7570\u306a\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h3 id=\"outline__4_1\" class=\"wp-block-heading\">AWS\u306e\u8a8d\u8a3c\u60c5\u5831\u304c\u898b\u3064\u304b\u3089\u306a\u3044<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">plan\u3084apply\u306e\u5b9f\u884c\u6642\u306b\u6b21\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u304c\u8868\u793a\u3055\u308c\u308b\u5834\u5408\u306f\u3001<span class=\"c-user01\" style=\"font-weight:bold;\">Terraform\u304cAWS\u306e\u8a8d\u8a3c\u60c5\u5831\u3092\u8aad\u307f\u8fbc\u3081\u3066\u3044\u307e\u305b\u3093<\/span>\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u4f8b<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>Error: No valid credential sources found<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #EEFFFF\">Error: No valid credential sources found<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e3b\u306a\u539f\u56e0\u306f\u3001<code>aws configure<\/code>\u3092\u5b9f\u884c\u3057\u3066\u3044\u306a\u3044\u3001\u8a2d\u5b9a\u3057\u305f\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u540d\u3068\u4f7f\u7528\u4e2d\u306e\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u304c\u7570\u306a\u308b\u3001\u30a2\u30af\u30bb\u30b9\u30ad\u30fc\u3092\u7121\u52b9\u5316\u30fb\u524a\u9664\u3057\u305f\u3001\u306a\u3069\u3067\u3059\u3002<br>\u307e\u305a\u306f\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3067AWS\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u304b\u3092\u78ba\u8a8d\u3057\u3001\u30a8\u30e9\u30fc\u306b\u306a\u308b\u5834\u5408\u306f\u8a8d\u8a3c\u60c5\u5831\u3092\u8a2d\u5b9a\u3057\u76f4\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">\u8a8d\u8a3c\u60c5\u5831\u306e\u78ba\u8a8d\u3068\u518d\u8a2d\u5b9a<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>aws sts get-caller-identity\naws configure<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #FFCB6B\">aws<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">sts<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">get-caller-identity<\/span><\/span>\n<span class=\"line\"><span style=\"color: #FFCB6B\">aws<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">configure<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u540d\u524d\u4ed8\u304d\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u3092\u4f7f\u3063\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u74b0\u5883\u5909\u6570AWS_PROFILE\u3067\u4f7f\u7528\u3059\u308b\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u3092\u6307\u5b9a\u3057\u3066\u304b\u3089Terraform\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 id=\"outline__4_2\" class=\"wp-block-heading\">\u30d0\u30b1\u30c3\u30c8\u540d\u304c\u91cd\u8907\u3057\u3066\u3044\u308b\uff08BucketAlreadyExists\uff09<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">apply\u306e\u5b9f\u884c\u6642\u306b\u6b21\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u304c\u8868\u793a\u3055\u308c\u308b\u5834\u5408\u306f\u3001<span class=\"c-user01\" style=\"font-weight:bold;\">\u6307\u5b9a\u3057\u305f\u30d0\u30b1\u30c3\u30c8\u540d\u304c\u307b\u304b\u306eAWS\u30a2\u30ab\u30a6\u30f3\u30c8\u3067\u3059\u3067\u306b\u4f7f\u308f\u308c\u3066\u3044\u307e\u3059<\/span>\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u4f8b<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>Error: creating S3 Bucket (terraform-example-bucket-20261005): operation error S3: CreateBucket, https response error StatusCode: 409, ..., BucketAlreadyExists: The requested bucket name is not available.<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #EEFFFF\">Error: creating S3 Bucket (terraform-example-bucket-20261005): operation error S3: CreateBucket, https response error StatusCode: 409, ..., BucketAlreadyExists: The requested bucket name is not available.<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">S3\u306e\u30d0\u30b1\u30c3\u30c8\u540d\u306f\u5168\u4e16\u754c\u3067\u4e00\u610f\u3067\u3042\u308b\u5fc5\u8981\u304c\u3042\u308b\u305f\u3081\u3001main.tf\uff08\u5909\u6570\u3092\u4f7f\u3063\u3066\u3044\u308b\u5834\u5408\u306fterraform.tfvars\uff09\u306e\u30d0\u30b1\u30c3\u30c8\u540d\u3092\u5225\u306e\u540d\u524d\u306b\u5909\u66f4\u3057\u3066\u304b\u3089\u3001\u518d\u5ea6plan\u3068apply\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br>\u306a\u304a\u3001\u300cBucketAlreadyOwnedByYou\u300d\u3068\u8868\u793a\u3055\u308c\u308b\u5834\u5408\u306f\u3001\u81ea\u5206\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u306b\u3059\u3067\u306b\u540c\u3058\u540d\u524d\u306e\u30d0\u30b1\u30c3\u30c8\u304c\u5b58\u5728\u3057\u3066\u3044\u307e\u3059\u3002<br>Terraform\u306e\u5916\u3067\u4f5c\u6210\u3057\u305f\u30d0\u30b1\u30c3\u30c8\u3067\u3042\u308c\u3070\u3001\u524a\u9664\u3059\u308b\u304b\u3001<a href=\"https:\/\/developer.hashicorp.com\/terraform\/language\/import\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">\u30a4\u30f3\u30dd\u30fc\u30c8\u6a5f\u80fd<\/a>\u3067Terraform\u306e\u7ba1\u7406\u4e0b\u306b\u53d6\u308a\u8fbc\u307f\u307e\u3059\u3002<\/p>\n\n\n\n<h3 id=\"outline__4_3\" class=\"wp-block-heading\">\u30d0\u30b1\u30c3\u30c8\u304c\u7a7a\u3067\u306a\u3044\u305f\u3081\u524a\u9664\u3067\u304d\u306a\u3044\uff08BucketNotEmpty\uff09<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">destroy\u306e\u5b9f\u884c\u6642\u306b\u6b21\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u304c\u8868\u793a\u3055\u308c\u308b\u5834\u5408\u306f\u3001<span class=\"c-user01\" style=\"font-weight:bold;\">\u30d0\u30b1\u30c3\u30c8\u306e\u4e2d\u306b\u30d5\u30a1\u30a4\u30eb\uff08\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\uff09\u304c\u6b8b\u3063\u3066\u3044\u308b<\/span>\u305f\u3081\u524a\u9664\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u4f8b<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>Error: deleting S3 Bucket (terraform-example-bucket-20261005): operation error S3: DeleteBucket, https response error StatusCode: 409, ..., BucketNotEmpty: The bucket you tried to delete is not empty<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #EEFFFF\">Error: deleting S3 Bucket (terraform-example-bucket-20261005): operation error S3: DeleteBucket, https response error StatusCode: 409, ..., BucketNotEmpty: The bucket you tried to delete is not empty<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">AWS\u30b3\u30f3\u30bd\u30fc\u30eb\u306eS3\u753b\u9762\u3067\u30d0\u30b1\u30c3\u30c8\u3092\u9078\u629e\u3057\u3066\u300c\u7a7a\u306b\u3059\u308b\u300d\u3092\u5b9f\u884c\u3057\u3001\u4e2d\u8eab\u3092\u524a\u9664\u3057\u3066\u304b\u3089\u518d\u5ea6<code>terraform destroy<\/code>\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br>\u5b66\u7fd2\u7528\u306e\u30d0\u30b1\u30c3\u30c8\u3067\u3042\u308c\u3070\u3001\u6b21\u306e\u3088\u3046\u306b<code>force_destroy = true<\/code>\u3092\u8a2d\u5b9a\u3057\u3066apply\u3057\u3066\u304a\u304f\u3068\u3001destroy\u6642\u306b\u4e2d\u306e\u30d5\u30a1\u30a4\u30eb\u3054\u3068\u30d0\u30b1\u30c3\u30c8\u3092\u524a\u9664\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">main.tf\uff08\u5b66\u7fd2\u7528\uff1a\u4e2d\u8eab\u3054\u3068\u524a\u9664\u3059\u308b\u8a2d\u5b9a\uff09<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>resource \"aws_s3_bucket\" \"example\" {\n  bucket        = \"terraform-example-bucket-20261005\"\n  force_destroy = true\n}<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #FFCB6B\">resource<\/span><span style=\"color: #F07178\"> <\/span><span style=\"color: #EEFFFF\">&quot;aws_s3_bucket&quot;<\/span><span style=\"color: #F07178\"> <\/span><span style=\"color: #EEFFFF\">&quot;example&quot;<\/span><span style=\"color: #F07178\"> <\/span><span style=\"color: #89DDFF\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F07178\">  <\/span><span style=\"color: #EEFFFF\">bucket        <\/span><span style=\"color: #89DDFF\">=<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #C3E88D\">terraform-example-bucket-20261005<\/span><span style=\"color: #89DDFF\">&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F07178\">  <\/span><span style=\"color: #EEFFFF\">force_destroy <\/span><span style=\"color: #89DDFF\">=<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #89DDFF\">true<\/span><\/span>\n<span class=\"line\"><span style=\"color: #89DDFF\">}<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u305f\u3060\u3057\u3001<span class=\"c-user01\" style=\"font-weight:bold;\">force_destroy\u3092\u6709\u52b9\u306b\u3059\u308b\u3068\u3001\u30d0\u30b1\u30c3\u30c8\u5185\u306e\u30d5\u30a1\u30a4\u30eb\u3082\u78ba\u8a8d\u306a\u3057\u3067\u5b8c\u5168\u306b\u524a\u9664<\/span>\u3055\u308c\u307e\u3059\u3002<br>\u5927\u5207\u306a\u30c7\u30fc\u30bf\u3092\u4fdd\u5b58\u3059\u308b\u30d0\u30b1\u30c3\u30c8\u3067\u306f\u4f7f\u7528\u3057\u306a\u3044\u3067\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<h3 id=\"outline__4_4\" class=\"wp-block-heading\">Provider\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u5408\u308f\u306a\u3044<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">required_providers\u306eversion\u3092\u5909\u66f4\u3057\u305f\u5f8c\u306binit\u3084plan\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u6b21\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u304c\u8868\u793a\u3055\u308c\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u4f8b<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>Error: Failed to query available provider packages\n\nCould not retrieve the list of available versions for provider hashicorp\/aws: locked provider registry.terraform.io\/hashicorp\/aws 6.67.0 does not match configured version constraint ~> 6.68.0; must use terraform init -upgrade to allow selection of new versions<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #EEFFFF\">Error: Failed to query available provider packages<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\"><\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">Could not retrieve the list of available versions for provider hashicorp\/aws: locked provider registry.terraform.io\/hashicorp\/aws 6.67.0 does not match configured version constraint ~&gt; 6.68.0; must use terraform init -upgrade to allow selection of new versions<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u308c\u306f\u3001<span class=\"c-user01\" style=\"font-weight:bold;\">\u30ed\u30c3\u30af\u30d5\u30a1\u30a4\u30eb\uff08.terraform.lock.hcl\uff09\u306b\u8a18\u9332\u3055\u308c\u305fProvider\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u3001\u65b0\u3057\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u6307\u5b9a\u3068\u4e00\u81f4\u3057\u306a\u3044<\/span>\u305f\u3081\u306b\u767a\u751f\u3059\u308b\u30a8\u30e9\u30fc\u3067\u3059\u3002<br>\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u30d0\u30fc\u30b8\u30e7\u30f3\u6307\u5b9a\u306b\u5408\u3046Provider\u304c\u6539\u3081\u3066\u9078\u3070\u308c\u3001\u30ed\u30c3\u30af\u30d5\u30a1\u30a4\u30eb\u3082\u66f4\u65b0\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">Provider\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u66f4\u65b0\u3057\u3066\u521d\u671f\u5316<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>terraform init -upgrade<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #FFCB6B\">terraform<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">init<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">-upgrade<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<h3 id=\"outline__4_5\" class=\"wp-block-heading\">State\u304c\u30ed\u30c3\u30af\u3055\u308c\u3066\u3044\u308b<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Terraform\u306f\u3001\u8907\u6570\u306e\u64cd\u4f5c\u304c\u540c\u6642\u306bState\u3092\u66f8\u304d\u63db\u3048\u306a\u3044\u3088\u3046\u3001\u5b9f\u884c\u4e2d\u306fState\u3092\u30ed\u30c3\u30af\uff08\u65bd\u9320\uff09\u3057\u307e\u3059\u3002<br>\u6b21\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u304c\u8868\u793a\u3055\u308c\u308b\u5834\u5408\u306f\u3001<span class=\"c-user01\" style=\"font-weight:bold;\">\u307b\u304b\u306eTerraform\u306e\u64cd\u4f5c\u304c\u5b9f\u884c\u4e2d\u304b\u3001\u4ee5\u524d\u306e\u64cd\u4f5c\u304c\u4e2d\u65ad\u3055\u308c\u3066\u30ed\u30c3\u30af\u304c\u6b8b\u3063\u3066\u3044\u307e\u3059<\/span>\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u4f8b<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>Error: Error acquiring the state lock<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #EEFFFF\">Error: Error acquiring the state lock<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u307e\u305a\u306f\u3001\u5225\u306e\u30bf\u30fc\u30df\u30ca\u30eb\u306a\u3069\u3067\u540c\u3058\u4f5c\u696d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306eTerraform\u3092\u5b9f\u884c\u3057\u3066\u3044\u306a\u3044\u304b\u78ba\u8a8d\u3057\u3001\u5b9f\u884c\u4e2d\u3067\u3042\u308c\u3070\u7d42\u4e86\u3092\u5f85\u3063\u3066\u304b\u3089\u518d\u5ea6\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br>\u307b\u304b\u306b\u5b9f\u884c\u4e2d\u306e\u64cd\u4f5c\u304c\u306a\u3044\u3053\u3068\u3092\u78ba\u8a8d\u3067\u304d\u305f\u5834\u5408\u306b\u9650\u308a\u3001\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u306b\u8868\u793a\u3055\u308c\u308b\u30ed\u30c3\u30afID\uff08Lock Info\u5185\u306eID\uff09\u3092\u6307\u5b9a\u3057\u3066\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3067\u30ed\u30c3\u30af\u3092\u89e3\u9664\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">State\u306e\u30ed\u30c3\u30af\u89e3\u9664<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>terraform force-unlock \u30ed\u30c3\u30afID<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #FFCB6B\">terraform<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">force-unlock<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">\u30ed\u30c3\u30afID<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u5b9f\u884c\u4e2d\u306e\u64cd\u4f5c\u304c\u3042\u308b\u306e\u306b\u30ed\u30c3\u30af\u3092\u89e3\u9664\u3059\u308b\u3068\u3001State\u304c\u58ca\u308c\u308b\u539f\u56e0\u306b\u306a\u308b\u305f\u3081\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\uff08<a href=\"https:\/\/developer.hashicorp.com\/terraform\/cli\/commands\/force-unlock\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">terraform force-unlock\u306e\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/a>\uff09\u3002<\/p>\n\n\n\n<h2 id=\"outline__5\" class=\"wp-block-heading\">Terraform\u306e\u30e1\u30ea\u30c3\u30c8\u30fb\u30c7\u30e1\u30ea\u30c3\u30c8<\/h2>\n\n\n\n<h3 id=\"outline__5_1\" class=\"wp-block-heading\">Terraform\u3092\u4f7f\u3046\u30e1\u30ea\u30c3\u30c8<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u3010\u30a4\u30f3\u30d5\u30e9\u69cb\u6210\u3092\u30b3\u30fc\u30c9\u3068\u3057\u3066\u7ba1\u7406\u3067\u304d\u308b\u3011<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Terraform\u306e\u5927\u304d\u306a\u30e1\u30ea\u30c3\u30c8\u306f\u3001\u5192\u982d\u3067\u3082\u8ff0\u3079\u305f\u3088\u3046\u306b\u3001<span class=\"c-user01\" style=\"font-weight:bold;\">\u30a4\u30f3\u30d5\u30e9\u306e\u69cb\u6210\u3092\u30b3\u30fc\u30c9\u3068\u3057\u3066\u7ba1\u7406\u3067\u304d\u308b<\/span>\u3053\u3068\u3067\u3059\u3002<br>\u4f5c\u6210\u5185\u5bb9\u306e\u898b\u8fd4\u3057\u3084\u3059\u3055\u3084\u518d\u73fe\u306e\u3057\u3084\u3059\u3055\u3001\u5909\u66f4\u5c65\u6b74\u306e\u8ffd\u8de1\u306e\u3057\u3084\u3059\u3055\u306a\u3069\u3001\u30b3\u30fc\u30c9\u3067\u8a18\u8ff0\u3059\u308b\u3053\u3068\u3067\u7ba1\u7406\u306b\u304b\u304b\u308b\u624b\u9593\u3092\u5927\u304d\u304f\u6e1b\u3089\u305b\u307e\u3059\u3002<br>\u30b3\u30fc\u30c9\u3092GitHub\u306a\u3069\u3067\u7ba1\u7406\u3059\u308c\u3070\u3001\u5909\u66f4\u5185\u5bb9\u3092\u30c1\u30fc\u30e0\u3067\u30ec\u30d3\u30e5\u30fc\u3057\u3066\u304b\u3089\u53cd\u6620\u3059\u308b\u904b\u7528\u3082\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Terraform\u81ea\u4f53\u306fAWS\u5c02\u7528\u306e\u30c4\u30fc\u30eb\u3067\u306f\u306a\u3044\u305f\u3081\u3001\u8907\u6570\u306e\u30af\u30e9\u30a6\u30c9\u30b5\u30fc\u30d3\u30b9\u3092\u5229\u7528\u3059\u308b\u74b0\u5883\u3067\u3082\u540c\u3058\u3088\u3046\u306b\u30b3\u30fc\u30c9\u3067\u7ba1\u7406\u3067\u304d\u308b\u306e\u3082\u7279\u5fb4\u306e1\u3064\u3067\u3059\u3002<\/p>\n\n\n\n<div class=\"techmania-recirc\">\n<style>\n.techmania-recirc{margin:24px 0;font-family:-apple-system,\"Hiragino Kaku Gothic ProN\",\"Yu Gothic\",sans-serif;}\n.techmania-recirc__label{font-size:14px;color:#333;margin-bottom:8px;font-weight:bold;}\n.techmania-recirc__box{display:flex;align-items:center;gap:16px;border:1px solid #ddd;border-radius:4px;padding:12px 16px;text-decoration:none;transition:background .2s;}\n.techmania-recirc__box:hover{background:#f7f9fc;}\n.techmania-recirc__thumb{width:96px;aspect-ratio:6\/4;object-fit:cover;border-radius:4px;flex-shrink:0;}\n.techmania-recirc__title{color:#2952cc;font-size:15px;line-height:1.6;flex:1;}\n.techmania-recirc__arrow{flex-shrink:0;width:28px;height:28px;border-radius:50%;background:#2952cc;color:#fff;display:flex;align-items:center;justify-content:center;font-size:12px;}\n<\/style>\n<div class=\"techmania-recirc__label\">\u25bc\u3053\u3061\u3089\u3082\u30c1\u30a7\u30c3\u30af\u25bc<\/div>\n<a class=\"techmania-recirc__box\" href=\"https:\/\/techmania.jp\/blog\/github0001\/\">\n  <img decoding=\"async\" class=\"techmania-recirc__thumb\" src=\"https:\/\/web-img.rensa.jp.net\/rensa\/images\/techmania\/thumbnail\/images\/github.png\" alt=\"GitHub\u3068\u306f\uff1f\u521d\u5fc3\u8005\u5411\u3051\u306b\u30e1\u30ea\u30c3\u30c8\u3084\u77e5\u8b58\u3001\u6a5f\u80fd\u3092\u89e3\u8aac\" loading=\"lazy\">\n  <span class=\"techmania-recirc__title\">GitHub\u3068\u306f\uff1f\u521d\u5fc3\u8005\u5411\u3051\u306b\u30e1\u30ea\u30c3\u30c8\u3084\u77e5\u8b58\u3001\u6a5f\u80fd\u3092\u89e3\u8aac<\/span>\n  <span class=\"techmania-recirc__arrow\">\u25b6<\/span>\n<\/a>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u3010\u5909\u66f4\u5185\u5bb9\u3092\u4e8b\u524d\u306b\u78ba\u8a8d\u3067\u304d\u308b\u3011<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5b9f\u8df5\u3067\u3082\u89e3\u8aac\u3057\u305f\u3088\u3046\u306b\u3001Terraform\u3067\u306f\u3001<code>terraform plan<\/code>\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067<span class=\"c-user01\" style=\"font-weight:bold;\">\u5909\u66f4\u524d\u306b\u5b9f\u884c\u8a08\u753b\uff08\u30d7\u30ec\u30d3\u30e5\u30fc\uff09\u3092\u78ba\u8a8d<\/span>\u3067\u304d\u307e\u3059\u3002<br>\u5909\u66f4\u5185\u5bb9\u3092\u4e00\u76ee\u3067\u628a\u63e1\u3057\u3084\u3059\u304f\u3001\u610f\u56f3\u3057\u306a\u3044\u5909\u66f4\u3092\u9632\u3050\u305f\u3081\u306e\u65b9\u6cd5\u3068\u3057\u3066\u975e\u5e38\u306b\u4fbf\u5229\u306a\u30b3\u30de\u30f3\u30c9\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u7ba1\u7406\u753b\u9762\u304b\u3089\u624b\u4f5c\u696d\u3067\u4fee\u6b63\u3059\u308b\u5834\u5408\u3001\u4fee\u6b63\u7b87\u6240\u306e\u307f\u3092\u629c\u304d\u51fa\u3057\u3066\u6bd4\u8f03\u3059\u308b\u306e\u306f\u624b\u9593\u304c\u304b\u304b\u308b\u305f\u3081\u3001Terraform\u3092\u5229\u7528\u3059\u308b\u4e0a\u3067\u306e\u30e1\u30ea\u30c3\u30c8\u306e1\u3064\u3068\u8a00\u3048\u307e\u3059\u3002<\/p>\n\n\n\n<h3 id=\"outline__5_2\" class=\"wp-block-heading\">Terraform\u3092\u4f7f\u3046\u524d\u306b\u77e5\u3063\u3066\u304a\u304d\u305f\u3044\u6ce8\u610f\u70b9<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u3010State\u30d5\u30a1\u30a4\u30eb\u306e\u7ba1\u7406\u304c\u5fc5\u8981\u3011<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Terraform\u306f\u3001State\u30d5\u30a1\u30a4\u30eb\u3092\u5229\u7528\u3057\u3066\u30a4\u30f3\u30d5\u30e9\u306e\u72b6\u614b\u3092\u628a\u63e1\u3059\u308b\u305f\u3081\u3001\u30d5\u30a1\u30a4\u30eb\u304c\u5931\u308f\u308c\u305f\u308a\u3001\u8907\u6570\u4eba\u304c\u540c\u6642\u306b\u540c\u3058\u30d5\u30a1\u30a4\u30eb\u3092\u64cd\u4f5c\u3057\u305f\u308a\u3059\u308b\u3068\u3001\u610f\u56f3\u3057\u306a\u3044\u554f\u984c\u304c\u767a\u751f\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<br>\u30c1\u30fc\u30e0\u3067\u5229\u7528\u3059\u308b\u5834\u5408\u306f\u3001State\u30d5\u30a1\u30a4\u30eb\u3092<span class=\"c-user01\" style=\"font-weight:bold;\">S3\u3084HCP Terraform\u306a\u3069\u306e\u30ea\u30e2\u30fc\u30c8\u74b0\u5883\uff08\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\uff09\u3067\u5171\u6709\u3057\u3001\u540c\u6642\u64cd\u4f5c\u3092\u9632\u3050\u30ed\u30c3\u30af\u6a5f\u80fd\u3092\u6709\u52b9\u306b\u3059\u308b<\/span>\u306e\u304c\u4e00\u822c\u7684\u3067\u3059\uff08<a href=\"https:\/\/developer.hashicorp.com\/terraform\/language\/backend\/s3\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">S3\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u306e\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/a>\uff09\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u307e\u305f\u3001State\u30d5\u30a1\u30a4\u30eb\u306b\u306f\u30ea\u30bd\u30fc\u30b9\u306e\u5c5e\u6027\u5024\u304c\u305d\u306e\u307e\u307e\u8a18\u9332\u3055\u308c\u3001<span class=\"c-user01\" style=\"font-weight:bold;\">\u30d1\u30b9\u30ef\u30fc\u30c9\u306a\u3069\u306e\u6a5f\u5bc6\u60c5\u5831\u304c\u5e73\u6587\u3067\u542b\u307e\u308c\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059<\/span>\uff08<a href=\"https:\/\/developer.hashicorp.com\/terraform\/language\/state\/sensitive-data\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">State\u306b\u542b\u307e\u308c\u308b\u6a5f\u5bc6\u30c7\u30fc\u30bf\u306b\u3064\u3044\u3066\u306e\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/a>\uff09\u3002<br>\u30b3\u30fc\u30c9\u3092Git\u3067\u7ba1\u7406\u3059\u308b\u5834\u5408\u306f\u3001\u6b21\u306e\u3088\u3046\u306a.gitignore\u3092\u7528\u610f\u3057\u3066\u3001State\u30d5\u30a1\u30a4\u30eb\u306a\u3069\u3092\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u542b\u3081\u306a\u3044\u3088\u3046\u306b\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">.gitignore<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly># Provider\u306a\u3069\u304c\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3055\u308c\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\n.terraform\/\n\n# State\u30d5\u30a1\u30a4\u30eb\uff08\u6a5f\u5bc6\u60c5\u5831\u3092\u542b\u3080\u53ef\u80fd\u6027\u304c\u3042\u308b\uff09\n*.tfstate\n*.tfstate.*\n\n# \u5909\u6570\u30d5\u30a1\u30a4\u30eb\uff08\u6a5f\u5bc6\u60c5\u5831\u3092\u542b\u3080\u5834\u5408\uff09\n*.tfvars<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #EEFFFF\"># Provider\u306a\u3069\u304c\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3055\u308c\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">.terraform\/<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\"><\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\"># State\u30d5\u30a1\u30a4\u30eb\uff08\u6a5f\u5bc6\u60c5\u5831\u3092\u542b\u3080\u53ef\u80fd\u6027\u304c\u3042\u308b\uff09<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">*.tfstate<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">*.tfstate.*<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\"><\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\"># \u5909\u6570\u30d5\u30a1\u30a4\u30eb\uff08\u6a5f\u5bc6\u60c5\u5831\u3092\u542b\u3080\u5834\u5408\uff09<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">*.tfvars<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u3010Terraform\u3060\u3051\u3067\u5168\u3066\u3092\u7ba1\u7406\u3067\u304d\u308b\u308f\u3051\u3067\u306f\u306a\u3044\u3011<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Terraform\u306f\u3001\u30a4\u30f3\u30d5\u30e9\u306e\u69cb\u7bc9\u30fb\u5909\u66f4\u30fb\u524a\u9664\u3092\u30b3\u30fc\u30c9\u3067\u7ba1\u7406\u3059\u308b\u305f\u3081\u306e\u30c4\u30fc\u30eb\u3067\u3059\u3002<br>\u3057\u304b\u3057\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u305d\u306e\u3082\u306e\u306e\u30c7\u30d7\u30ed\u30a4\u3084\u30b5\u30fc\u30d0\u30fc\u5185\u90e8\u306e\u7d30\u304b\u306a\u8a2d\u5b9a\u306a\u3069\u3001Terraform\u304c\u5fc5\u305a\u3057\u3082\u5f97\u610f\u3068\u306f\u9650\u3089\u306a\u3044\u9818\u57df\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u305d\u306e\u305f\u3081\u3001Terraform\u3067\u3059\u3079\u3066\u306e\u4f5c\u696d\u3092\u884c\u304a\u3046\u3068\u3059\u308b\u306e\u3067\u306f\u306a\u304f\u3001<span class=\"c-user01\" style=\"font-weight:bold;\">\u76ee\u7684\u306b\u5fdc\u3058\u3066\u4ed6\u306e\u30c4\u30fc\u30eb\u3068\u7d44\u307f\u5408\u308f\u305b\u308b<\/span>\u3053\u3068\u3082\u91cd\u8981\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u3010\u30b3\u30fc\u30c9\u3092\u66f8\u3051\u3070\u5b89\u5168\u3068\u3044\u3046\u308f\u3051\u3067\u306f\u306a\u3044\u3011<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u30b3\u30fc\u30c9\u306e\u8a18\u8ff0\u5185\u5bb9\u3092\u9593\u9055\u3048\u305f\u5834\u5408\u3001\u5b9f\u969b\u306e\u30a4\u30f3\u30d5\u30e9\u306b\u3082\u5f53\u7136\u306a\u304c\u3089\u8aa4\u3063\u305f\u5909\u66f4\u304c\u9069\u7528\u3055\u308c\u3066\u3057\u307e\u3044\u307e\u3059\u3002<br>\u305d\u306e\u305f\u3081\u3001<code>terraform plan<\/code>\u3067\u5909\u66f4\u5185\u5bb9\u3092\u78ba\u8a8d\u3059\u308b\u3053\u3068\u3084\u3001\u30b3\u30fc\u30c9\u3092\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u3059\u308b\u3053\u3068\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u30ec\u30d3\u30e5\u30fc\u3092\u884c\u3046\u3053\u3068\u304c\u91cd\u8981\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u307e\u305f\u3001<span class=\"c-user01\" style=\"font-weight:bold;\">AWS\u306e\u8a8d\u8a3c\u60c5\u5831\u306a\u3069\u306e\u6a5f\u5bc6\u60c5\u5831\u3092Terraform\u306e\u30b3\u30fc\u30c9\u3078\u76f4\u63a5\u8a18\u8ff0\u3057\u306a\u3044<\/span>\u3053\u3068\u3082\u3001\u904b\u7528\u3059\u308b\u4e0a\u3067\u5927\u4e8b\u306a\u30dd\u30a4\u30f3\u30c8\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h2 id=\"outline__6\" class=\"wp-block-heading\">CloudFormation\u30fbAnsible\u306a\u3069\u4ed6\u30c4\u30fc\u30eb\u3068\u306e\u9055\u3044<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Terraform\u3068\u3088\u304f\u6bd4\u8f03\u3055\u308c\u308b\u30c4\u30fc\u30eb\u306b\u3001CloudFormation\u3068Ansible\u304c\u3042\u308a\u307e\u3059\u3002<br>\u305d\u308c\u305e\u308c\u306e\u4e3b\u306a\u9055\u3044\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><th>\u6bd4\u8f03\u9805\u76ee<\/th><th>Terraform<\/th><th>CloudFormation<\/th><th>Ansible<\/th><\/tr><tr><td><strong>\u63d0\u4f9b\u5143<\/strong><\/td><td>HashiCorp<\/td><td>AWS<\/td><td>Red Hat\uff08\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u306e\u30b3\u30df\u30e5\u30cb\u30c6\u30a3\u7248\u3042\u308a\uff09<\/td><\/tr><tr><td><strong>\u4e3b\u306a\u7528\u9014<\/strong><\/td><td>\u30a4\u30f3\u30d5\u30e9\u30ea\u30bd\u30fc\u30b9\u306e\u4f5c\u6210\u30fb\u5909\u66f4\u30fb\u524a\u9664<\/td><td>AWS\u30ea\u30bd\u30fc\u30b9\u306e\u4f5c\u6210\u30fb\u5909\u66f4\u30fb\u524a\u9664<\/td><td>\u30b5\u30fc\u30d0\u30fc\u306e\u8a2d\u5b9a\u3084\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u306e\u5c0e\u5165\u306a\u3069\u306e\u69cb\u6210\u7ba1\u7406<\/td><\/tr><tr><td><strong>\u5bfe\u5fdc\u7bc4\u56f2<\/strong><\/td><td>AWS\u30fbAzure\u30fbGoogle Cloud\u306a\u3069\u591a\u6570\uff08Provider\u7d4c\u7531\uff09<\/td><td>\u4e3b\u306bAWS<\/td><td>\u30b5\u30fc\u30d0\u30fc\u3084\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u6a5f\u5668\u3001\u30af\u30e9\u30a6\u30c9\u306a\u3069<\/td><\/tr><tr><td><strong>\u8a18\u8ff0\u5f62\u5f0f<\/strong><\/td><td>HCL<\/td><td>JSON\uff0fYAML<\/td><td>YAML\uff08Playbook\uff09<\/td><\/tr><tr><td><strong>\u72b6\u614b\u306e\u7ba1\u7406<\/strong><\/td><td>State\u30d5\u30a1\u30a4\u30eb\u3092\u5229\u7528\u8005\u304c\u7ba1\u7406\u3059\u308b<\/td><td>AWS\u5074\uff08\u30b9\u30bf\u30c3\u30af\uff09\u3067\u7ba1\u7406\u3055\u308c\u308b<\/td><td>State\u30d5\u30a1\u30a4\u30eb\u306e\u3088\u3046\u306a\u72b6\u614b\u30d5\u30a1\u30a4\u30eb\u306f\u6301\u305f\u306a\u3044<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 id=\"outline__6_1\" class=\"wp-block-heading\">CloudFormation\u3068\u306e\u9055\u3044<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/docs.aws.amazon.com\/ja_jp\/AWSCloudFormation\/latest\/UserGuide\/Welcome.html\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">CloudFormation<\/a>\u306f\u3001AWS\u304c\u63d0\u4f9b\u3057\u3066\u3044\u308bIaC\u30b5\u30fc\u30d3\u30b9\u3067\u3059\u3002<br>Terraform\u3068\u540c\u3058\u3088\u3046\u306b\u3001\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\uff08JSON\u307e\u305f\u306fYAML\u5f62\u5f0f\u306e\u30d5\u30a1\u30a4\u30eb\uff09\u3067AWS\u306e\u30ea\u30bd\u30fc\u30b9\u3092\u5b9a\u7fa9\u3057\u3001\u305d\u306e\u5185\u5bb9\u3092\u3082\u3068\u306b\u30a4\u30f3\u30d5\u30e9\u3092\u69cb\u7bc9\u30fb\u7ba1\u7406\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Terraform\u304c\u8907\u6570\u306e\u30af\u30e9\u30a6\u30c9\u30b5\u30fc\u30d3\u30b9\u306b\u5bfe\u5fdc\u3057\u3066\u3044\u308b\u306e\u306b\u5bfe\u3057\u3001<span class=\"c-user01\" style=\"font-weight:bold;\">CloudFormation\u306f\u57fa\u672c\u7684\u306bAWS\u306e\u30b5\u30fc\u30d3\u30b9\u3092\u5bfe\u8c61<\/span>\u3068\u3057\u3066\u3044\u307e\u3059\u3002<br>\u305d\u306e\u305f\u3081\u3001\u8907\u6570\u306e\u30af\u30e9\u30a6\u30c9\u30b5\u30fc\u30d3\u30b9\u3092\u5229\u7528\u3059\u308b\u5834\u5408\u306f\u3001Terraform\u306e\u3088\u3046\u306a\u30de\u30eb\u30c1\u30af\u30e9\u30a6\u30c9\u306b\u5bfe\u5fdc\u3057\u305f\u30c4\u30fc\u30eb\u304c\u9069\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u8a18\u8ff0\u65b9\u6cd5\u3082\u7570\u306a\u308a\u307e\u3059\u3002<br>\u540c\u3058S3\u30d0\u30b1\u30c3\u30c8\u3092\u4f5c\u6210\u3059\u308b\u30b3\u30fc\u30c9\u3092\u6bd4\u3079\u308b\u3068\u3001\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">Terraform\uff08HCL\uff09\u306e\u5834\u5408<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>provider \"aws\" {\n  region = \"ap-northeast-1\"\n}\n\nresource \"aws_s3_bucket\" \"example\" {\n  bucket = \"my-example-bucket\"\n}<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #FFCB6B\">provider<\/span><span style=\"color: #F07178\"> <\/span><span style=\"color: #EEFFFF\">&quot;aws&quot;<\/span><span style=\"color: #F07178\"> <\/span><span style=\"color: #89DDFF\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F07178\">  <\/span><span style=\"color: #EEFFFF\">region <\/span><span style=\"color: #89DDFF\">=<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #C3E88D\">ap-northeast-1<\/span><span style=\"color: #89DDFF\">&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #89DDFF\">}<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #FFCB6B\">resource<\/span><span style=\"color: #F07178\"> <\/span><span style=\"color: #EEFFFF\">&quot;aws_s3_bucket&quot;<\/span><span style=\"color: #F07178\"> <\/span><span style=\"color: #EEFFFF\">&quot;example&quot;<\/span><span style=\"color: #F07178\"> <\/span><span style=\"color: #89DDFF\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F07178\">  <\/span><span style=\"color: #EEFFFF\">bucket <\/span><span style=\"color: #89DDFF\">=<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #C3E88D\">my-example-bucket<\/span><span style=\"color: #89DDFF\">&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #89DDFF\">}<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">CloudFormation\uff08YAML\uff09\u306e\u5834\u5408<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>AWSTemplateFormatVersion: \"2010-09-09\"\nResources:\n  ExampleBucket:\n    Type: AWS::S3::Bucket\n    Properties:\n      BucketName: my-example-bucket<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #F07178\">AWSTemplateFormatVersion<\/span><span style=\"color: #89DDFF\">:<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #C3E88D\">2010-09-09<\/span><span style=\"color: #89DDFF\">&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F07178\">Resources<\/span><span style=\"color: #89DDFF\">:<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">  <\/span><span style=\"color: #F07178\">ExampleBucket<\/span><span style=\"color: #89DDFF\">:<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">    <\/span><span style=\"color: #F07178\">Type<\/span><span style=\"color: #89DDFF\">:<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">AWS::S3::Bucket<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">    <\/span><span style=\"color: #F07178\">Properties<\/span><span style=\"color: #89DDFF\">:<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">      <\/span><span style=\"color: #F07178\">BucketName<\/span><span style=\"color: #89DDFF\">:<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">my-example-bucket<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">CloudFormation\u306fYAML\u307e\u305f\u306fJSON\u3067\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u66f8\u304d\u3001\u30ea\u30fc\u30b8\u30e7\u30f3\u306f\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u30c7\u30d7\u30ed\u30a4\u3059\u308b\u969b\u306b\u6307\u5b9a\u3057\u307e\u3059\u3002<br>Terraform\u306f\u3001HCL\u306e<span class=\"c-user01\" style=\"font-weight:bold;\">\u300cresource &#8220;\u30ea\u30bd\u30fc\u30b9\u30bf\u30a4\u30d7&#8221; &#8220;\u30ea\u30bd\u30fc\u30b9\u540d&#8221;\u300d\u3068\u3044\u3046\u5171\u901a\u306e\u66f8\u304d\u65b9\u3067\u3001AWS\u4ee5\u5916\u306e\u30b5\u30fc\u30d3\u30b9\u3082\u540c\u3058\u3088\u3046\u306b\u5b9a\u7fa9\u3067\u304d\u308b<\/span>\u306e\u304c\u7279\u5fb4\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e00\u65b9\u3067\u3001CloudFormation\u306fAWS\u306e\u30b5\u30fc\u30d3\u30b9\u3068\u3057\u3066\u63d0\u4f9b\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u3001AWS\u306e\u5404\u7a2e\u30b5\u30fc\u30d3\u30b9\u3068\u306e\u9023\u643a\u3092\u884c\u3044\u3084\u3059\u3044\u70b9\u304c\u7279\u5fb4\u3067\u3059\u3002<br>\u307e\u305f\u3001\u30ea\u30bd\u30fc\u30b9\u306e\u72b6\u614b\u306fAWS\u5074\u3067\u7ba1\u7406\u3055\u308c\u308b\u305f\u3081\u3001Terraform\u306e\u3088\u3046\u306b\u5229\u7528\u8005\u304cState\u30d5\u30a1\u30a4\u30eb\u3092\u7ba1\u7406\u3059\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<div class=\"techmania-recirc\">\n<style>\n.techmania-recirc{margin:24px 0;font-family:-apple-system,\"Hiragino Kaku Gothic ProN\",\"Yu Gothic\",sans-serif;}\n.techmania-recirc__label{font-size:14px;color:#333;margin-bottom:8px;font-weight:bold;}\n.techmania-recirc__box{display:flex;align-items:center;gap:16px;border:1px solid #ddd;border-radius:4px;padding:12px 16px;text-decoration:none;transition:background .2s;}\n.techmania-recirc__box:hover{background:#f7f9fc;}\n.techmania-recirc__thumb{width:96px;aspect-ratio:6\/4;object-fit:cover;border-radius:4px;flex-shrink:0;}\n.techmania-recirc__title{color:#2952cc;font-size:15px;line-height:1.6;flex:1;}\n.techmania-recirc__arrow{flex-shrink:0;width:28px;height:28px;border-radius:50%;background:#2952cc;color:#fff;display:flex;align-items:center;justify-content:center;font-size:12px;}\n<\/style>\n<div class=\"techmania-recirc__label\">\u25bc\u3053\u3061\u3089\u3082\u30c1\u30a7\u30c3\u30af\u25bc<\/div>\n<a class=\"techmania-recirc__box\" href=\"https:\/\/techmania.jp\/blog\/aws0009\/\">\n  <img decoding=\"async\" class=\"techmania-recirc__thumb\" src=\"https:\/\/web-img.rensa.jp.net\/rensa\/images\/techmania\/thumbnail\/images\/CF0.png\" alt=\"\u3010AWS\u5165\u9580\u3011CloudFormation\u3068\u306f\uff5c\u57fa\u790e\u304b\u3089\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\" loading=\"lazy\">\n  <span class=\"techmania-recirc__title\">\u3010AWS\u5165\u9580\u3011CloudFormation\u3068\u306f\uff5c\u57fa\u790e\u304b\u3089\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac<\/span>\n  <span class=\"techmania-recirc__arrow\">\u25b6<\/span>\n<\/a>\n<\/div>\n\n\n\n<h3 id=\"outline__6_2\" class=\"wp-block-heading\">Ansible\u3068\u306e\u9055\u3044<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/docs.ansible.com\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Ansible<\/a>\u306f\u3001\u30b5\u30fc\u30d0\u30fc\u306a\u3069\u306e\u69cb\u6210\u7ba1\u7406\u3084\u4f5c\u696d\u306e\u81ea\u52d5\u5316\u3092\u884c\u3046\u305f\u3081\u306e\u30c4\u30fc\u30eb\u3067\u3059\u3002<br>Terraform\u3068Ansible\u306f\u3069\u3061\u3089\u3082\u30a4\u30f3\u30d5\u30e9\u7ba1\u7406\u306b\u5229\u7528\u3055\u308c\u307e\u3059\u304c\u3001\u5f97\u610f\u3068\u3059\u308b\u51e6\u7406\u304c\u7570\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Terraform\u306f\u3001AWS\u306eS3\u3084EC2\u3001VPC\u306a\u3069\u3001<span class=\"c-user01\" style=\"font-weight:bold;\">\u30a4\u30f3\u30d5\u30e9\u30ea\u30bd\u30fc\u30b9\u305d\u306e\u3082\u306e\u3092\u4f5c\u6210\u30fb\u5909\u66f4\u30fb\u524a\u9664\u3059\u308b\u3053\u3068<\/span>\u3092\u5f97\u610f\u3068\u3057\u3066\u3044\u307e\u3059\u3002<br>\u4e00\u65b9\u3001Ansible\u306f\u3001<span class=\"c-user01\" style=\"font-weight:bold;\">\u65e2\u5b58\u306e\u30b5\u30fc\u30d0\u30fc\u306b\u5bfe\u3057\u3066\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3084\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u5909\u66f4\u3001\u30b5\u30fc\u30d3\u30b9\u306e\u8d77\u52d5\u306a\u3069\u3092\u884c\u3046\u3053\u3068<\/span>\u3092\u5f97\u610f\u3068\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3069\u3061\u3089\u304b\u7247\u65b9\u306e\u307f\u3057\u304b\u5229\u7528\u3067\u304d\u306a\u3044\u3068\u3044\u3046\u308f\u3051\u3067\u306f\u306a\u304f\u3001\u305f\u3068\u3048\u3070\u300cTerraform\u3067EC2\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u4f5c\u6210\u3057\u3001Ansible\u3067\u305d\u306e\u4e2d\u306e\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3092\u8a2d\u5b9a\u3059\u308b\u300d\u3068\u3044\u3063\u305f\u3088\u3046\u306b\u3001\u305d\u308c\u305e\u308c\u306e\u5f97\u610f\u5206\u91ce\u3092\u6d3b\u304b\u3057\u3066\u5f79\u5272\u5206\u62c5\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<h3 id=\"outline__6_3\" class=\"wp-block-heading\">AWS CDK\u30fbPulumi\u30fbOpenTofu\u3068\u306e\u9055\u3044<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">CloudFormation\u3084Ansible\u4ee5\u5916\u306b\u3082\u3001IaC\u3092\u5b9f\u73fe\u3059\u308b\u30c4\u30fc\u30eb\u306f\u3044\u304f\u3064\u304b\u3042\u308a\u307e\u3059\u3002<br>Terraform\u3068\u6bd4\u8f03\u3055\u308c\u308b\u3053\u3068\u304c\u591a\u3044\u4ee3\u8868\u7684\u306a\u30c4\u30fc\u30eb\u306f\u3001\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><th>\u30c4\u30fc\u30eb<\/th><th>\u8a18\u8ff0\u65b9\u6cd5<\/th><th>\u7279\u5fb4<\/th><\/tr><tr><td><strong><a href=\"https:\/\/docs.aws.amazon.com\/ja_jp\/cdk\/v2\/guide\/home.html\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">AWS CDK<\/a><\/strong><\/td><td>TypeScript\u30fbPython\u306a\u3069\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e<\/td><td>AWS\u304c\u63d0\u4f9b\u3002\u30b3\u30fc\u30c9\u304b\u3089CloudFormation\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u751f\u6210\u3057\u3066\u30c7\u30d7\u30ed\u30a4\u3059\u308b\u3002\u5bfe\u8c61\u306f\u4e3b\u306bAWS<\/td><\/tr><tr><td><strong><a href=\"https:\/\/www.pulumi.com\/docs\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Pulumi<\/a><\/strong><\/td><td>TypeScript\u30fbPython\u30fbGo\u306a\u3069\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e<\/td><td>Terraform\u3068\u540c\u69d8\u306b\u8907\u6570\u306e\u30af\u30e9\u30a6\u30c9\u306b\u5bfe\u5fdc\u3002\u6761\u4ef6\u5206\u5c90\u3084\u7e70\u308a\u8fd4\u3057\u3092\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u306e\u6a5f\u80fd\u3067\u66f8\u3051\u308b<\/td><\/tr><tr><td><strong><a href=\"https:\/\/opentofu.org\/docs\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">OpenTofu<\/a><\/strong><\/td><td>HCL\uff08Terraform\u3068\u307b\u307c\u540c\u3058\uff09<\/td><td>2023\u5e74\u306eTerraform\u306e\u30e9\u30a4\u30bb\u30f3\u30b9\u5909\u66f4\u3092\u304d\u3063\u304b\u3051\u306b\u3001\u5909\u66f4\u524d\u306eTerraform\u3092\u3082\u3068\u306b\u4f5c\u3089\u308c\u305f\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u306e\u30c4\u30fc\u30eb\u3002Linux Foundation\u5098\u4e0b\u3067\u958b\u767a\u3055\u308c\u3066\u3044\u308b<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Terraform\u306f\u30012023\u5e74\u306b\u30e9\u30a4\u30bb\u30f3\u30b9\u304c\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u30e9\u30a4\u30bb\u30f3\u30b9\uff08MPL 2.0\uff09\u304b\u3089BSL\uff08Business Source License\uff09\u306b\u5909\u66f4\u3055\u308c\u307e\u3057\u305f\u3002<br>\u305f\u3060\u3057\u3001<span class=\"c-user01\" style=\"font-weight:bold;\">\u5b66\u7fd2\u3084\u81ea\u793e\u306e\u30a4\u30f3\u30d5\u30e9\u7ba1\u7406\u306b\u4f7f\u3046\u7bc4\u56f2\u3067\u3042\u308c\u3070\u3001\u3053\u308c\u307e\u3067\u3069\u304a\u308a\u7121\u6599\u3067\u5229\u7528\u3067\u304d\u307e\u3059<\/span>\u3002<br>\u4f7f\u3044\u6163\u308c\u305f\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3067\u30a4\u30f3\u30d5\u30e9\u3092\u66f8\u304d\u305f\u3044\u5834\u5408\u306fAWS CDK\u3084Pulumi\u3001HCL\u306e\u60c5\u5831\u91cf\u3084\u5bfe\u5fdc\u30b5\u30fc\u30d3\u30b9\u306e\u591a\u3055\u3092\u91cd\u8996\u3059\u308b\u5834\u5408\u306fTerraform\u3068\u3044\u3046\u3088\u3046\u306b\u3001\u76ee\u7684\u3084\u30c1\u30fc\u30e0\u306e\u30b9\u30ad\u30eb\u306b\u5408\u308f\u305b\u3066\u9078\u3076\u3068\u826f\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<h2 id=\"outline__7\" class=\"wp-block-heading\">\u6b21\u306e\u30b9\u30c6\u30c3\u30d7\uff1a\u5b9f\u52d9\u3067Terraform\u3092\u4f7f\u3046\u305f\u3081\u306b<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u672c\u8a18\u4e8b\u306e\u30cf\u30f3\u30ba\u30aa\u30f3\u3067\u306f\u30011\u3064\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u30671\u3064\u306eS3\u30d0\u30b1\u30c3\u30c8\u3092\u7ba1\u7406\u3057\u307e\u3057\u305f\u3002<br>\u5b9f\u52d9\u3067\u306f\u3001\u7ba1\u7406\u3059\u308b\u30ea\u30bd\u30fc\u30b9\u3084\u74b0\u5883\u304c\u5897\u3048\u3066\u3044\u304f\u305f\u3081\u3001\u6b21\u306e\u3088\u3046\u306a\u4ed5\u7d44\u307f\u3092\u7d44\u307f\u5408\u308f\u305b\u3066\u904b\u7528\u3059\u308b\u306e\u304c\u4e00\u822c\u7684\u3067\u3059\u3002<\/p>\n\n\n\n<h3 id=\"outline__7_1\" class=\"wp-block-heading\">\u30e2\u30b8\u30e5\u30fc\u30eb\u3067\u69cb\u6210\u3092\u90e8\u54c1\u5316\u3059\u308b<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><span class=\"c-user01\" style=\"font-weight:bold;\">\u30e2\u30b8\u30e5\u30fc\u30eb\uff08module\uff09<\/span>\u306f\u3001\u8907\u6570\u306e\u30ea\u30bd\u30fc\u30b9\u5b9a\u7fa9\u3092\u3072\u3068\u307e\u3068\u3081\u306b\u3057\u3066\u3001\u90e8\u54c1\u306e\u3088\u3046\u306b\u518d\u5229\u7528\u3067\u304d\u308b\u4ed5\u7d44\u307f\u3067\u3059\u3002<br>\u305f\u3068\u3048\u3070\u3001S3\u30d0\u30b1\u30c3\u30c8\u306e\u5b9a\u7fa9\u3092\u300cmodules\/s3-bucket\u300d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u307e\u3068\u3081\u3066\u304a\u304f\u3068\u3001\u6b21\u306e\u3088\u3046\u306b\u547c\u3073\u51fa\u3059\u3060\u3051\u3067\u540c\u3058\u69cb\u6210\u306e\u30d0\u30b1\u30c3\u30c8\u3092\u4f55\u5ea6\u3067\u3082\u4f5c\u6210\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u547c\u3073\u51fa\u3057\u4f8b<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>module \"log_bucket\" {\n  source      = \".\/modules\/s3-bucket\"\n  bucket_name = \"my-log-bucket-20261005\"\n}<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #FFCB6B\">module<\/span><span style=\"color: #F07178\"> <\/span><span style=\"color: #EEFFFF\">&quot;log_bucket&quot;<\/span><span style=\"color: #F07178\"> <\/span><span style=\"color: #89DDFF\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F07178\">  <\/span><span style=\"color: #EEFFFF\">source      <\/span><span style=\"color: #89DDFF\">=<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #C3E88D\">.\/modules\/s3-bucket<\/span><span style=\"color: #89DDFF\">&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F07178\">  <\/span><span style=\"color: #EEFFFF\">bucket_name <\/span><span style=\"color: #89DDFF\">=<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #C3E88D\">my-log-bucket-20261005<\/span><span style=\"color: #89DDFF\">&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #89DDFF\">}<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">source\u306b\u306f\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u5834\u6240\u3092\u6307\u5b9a\u3057\u3001\u305d\u308c\u4ee5\u5916\u306e\u5f15\u6570\u3067\u30e2\u30b8\u30e5\u30fc\u30eb\u5074\u306b\u5b9a\u7fa9\u3057\u305f\u5909\u6570\u3078\u5024\u3092\u6e21\u3057\u307e\u3059\u3002<br>Terraform Registry\u3067\u306f\u3001\u591a\u304f\u306e\u4eba\u304c\u5229\u7528\u3057\u3066\u3044\u308b\u516c\u958b\u30e2\u30b8\u30e5\u30fc\u30eb\u3082\u63a2\u305b\u307e\u3059\uff08<a href=\"https:\/\/developer.hashicorp.com\/terraform\/language\/modules\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/a>\uff09\u3002<\/p>\n\n\n\n<h3 id=\"outline__7_2\" class=\"wp-block-heading\">\u958b\u767a\u74b0\u5883\u30fb\u672c\u756a\u74b0\u5883\u3054\u3068\u306b\u7ba1\u7406\u3092\u5206\u3051\u308b<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u5b9f\u969b\u306e\u30b7\u30b9\u30c6\u30e0\u3067\u306f\u3001\u958b\u767a\u74b0\u5883\u30fb\u691c\u8a3c\u74b0\u5883\u30fb\u672c\u756a\u74b0\u5883\u306e\u3088\u3046\u306b\u3001\u540c\u3058\u69cb\u6210\u306e\u74b0\u5883\u3092\u8907\u6570\u7528\u610f\u3059\u308b\u3053\u3068\u304c\u3088\u304f\u3042\u308a\u307e\u3059\u3002<br>\u3053\u306e\u3068\u304d\u91cd\u8981\u306a\u306e\u304c\u3001<span class=\"c-user01\" style=\"font-weight:bold;\">\u74b0\u5883\u3054\u3068\u306bState\u3092\u5206\u3051\u3066\u7ba1\u7406\u3059\u308b<\/span>\u3053\u3068\u3067\u3059\u3002<br>\u540c\u3058State\u306e\u307e\u307e\u8a2d\u5b9a\u5024\u3060\u3051\u3092\u5207\u308a\u66ff\u3048\u308b\u3068\u3001\u958b\u767a\u7528\u306e\u5909\u66f4\u304c\u672c\u756a\u306e\u30ea\u30bd\u30fc\u30b9\u306b\u9069\u7528\u3055\u308c\u308b\u304a\u305d\u308c\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4ee3\u8868\u7684\u306a\u65b9\u6cd5\u306f\u3001\u6b21\u306e\u3088\u3046\u306b\u74b0\u5883\u3054\u3068\u306b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u5206\u3051\u3001\u5171\u901a\u90e8\u5206\u306f\u30e2\u30b8\u30e5\u30fc\u30eb\u3068\u3057\u3066\u547c\u3073\u51fa\u3059\u69cb\u6210\u3067\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">\u74b0\u5883\u3054\u3068\u306b\u5206\u3051\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u69cb\u6210\u306e\u4f8b<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>terraform\/\n\u251c\u2500\u2500 modules\/\n\u2502   \u2514\u2500\u2500 s3-bucket\/        # \u5171\u901a\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\n\u2502       \u251c\u2500\u2500 main.tf\n\u2502       \u251c\u2500\u2500 variables.tf\n\u2502       \u2514\u2500\u2500 outputs.tf\n\u2514\u2500\u2500 environments\/\n    \u251c\u2500\u2500 dev\/              # \u958b\u767a\u74b0\u5883\uff08State\u3082\u5225\uff09\n    \u2502   \u251c\u2500\u2500 main.tf\n    \u2502   \u2514\u2500\u2500 terraform.tfvars\n    \u2514\u2500\u2500 prod\/             # \u672c\u756a\u74b0\u5883\uff08State\u3082\u5225\uff09\n        \u251c\u2500\u2500 main.tf\n        \u2514\u2500\u2500 terraform.tfvars<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #EEFFFF\">terraform\/<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">\u251c\u2500\u2500 modules\/<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">\u2502   \u2514\u2500\u2500 s3-bucket\/        # \u5171\u901a\u306e\u30e2\u30b8\u30e5\u30fc\u30eb<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">\u2502       \u251c\u2500\u2500 main.tf<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">\u2502       \u251c\u2500\u2500 variables.tf<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">\u2502       \u2514\u2500\u2500 outputs.tf<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">\u2514\u2500\u2500 environments\/<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">    \u251c\u2500\u2500 dev\/              # \u958b\u767a\u74b0\u5883\uff08State\u3082\u5225\uff09<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">    \u2502   \u251c\u2500\u2500 main.tf<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">    \u2502   \u2514\u2500\u2500 terraform.tfvars<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">    \u2514\u2500\u2500 prod\/             # \u672c\u756a\u74b0\u5883\uff08State\u3082\u5225\uff09<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">        \u251c\u2500\u2500 main.tf<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">        \u2514\u2500\u2500 terraform.tfvars<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u5404\u74b0\u5883\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3067init\u30fbplan\u30fbapply\u3092\u5b9f\u884c\u3059\u308c\u3070\u3001State\u3082\u74b0\u5883\u3054\u3068\u306b\u5225\u3005\u306b\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002<br>\u74b0\u5883\u3054\u3068\u306e\u9055\u3044\uff08\u30d0\u30b1\u30c3\u30c8\u540d\u306a\u3069\uff09\u306f\u3001\u305d\u308c\u305e\u308c\u306eterraform.tfvars\u3067\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 id=\"outline__7_3\" class=\"wp-block-heading\">State\u3092\u30ea\u30e2\u30fc\u30c8\u3067\u7ba1\u7406\u3059\u308b<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u30c1\u30fc\u30e0\u3067Terraform\u3092\u4f7f\u3046\u5834\u5408\u306f\u3001State\u30d5\u30a1\u30a4\u30eb\u3092\u5404\u81ea\u306ePC\u3067\u306f\u306a\u304f\u3001S3\u306a\u3069\u306e\u30ea\u30e2\u30fc\u30c8\u306e\u4fdd\u5b58\u5148\uff08\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\uff09\u3067\u5171\u6709\u3057\u307e\u3059\u3002<br>S3\u3092\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u306b\u3059\u308b\u5834\u5408\u306f\u3001terraform\u30d6\u30ed\u30c3\u30af\u306b\u6b21\u306e\u3088\u3046\u306abackend\u30d6\u30ed\u30c3\u30af\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">main.tf\uff08S3\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u306e\u8a2d\u5b9a\u4f8b\uff09<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>terraform {\n  backend \"s3\" {\n    bucket       = \"my-terraform-state-bucket\"\n    key          = \"terraform-s3\/terraform.tfstate\"\n    region       = \"ap-northeast-1\"\n    use_lockfile = true\n  }\n}<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #FFCB6B\">terraform<\/span><span style=\"color: #F07178\"> <\/span><span style=\"color: #89DDFF\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F07178\">  <\/span><span style=\"color: #FFCB6B\">backend<\/span><span style=\"color: #F07178\"> <\/span><span style=\"color: #EEFFFF\">&quot;s3&quot;<\/span><span style=\"color: #F07178\"> <\/span><span style=\"color: #89DDFF\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F07178\">    <\/span><span style=\"color: #EEFFFF\">bucket       <\/span><span style=\"color: #89DDFF\">=<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #C3E88D\">my-terraform-state-bucket<\/span><span style=\"color: #89DDFF\">&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F07178\">    <\/span><span style=\"color: #EEFFFF\">key          <\/span><span style=\"color: #89DDFF\">=<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #C3E88D\">terraform-s3\/terraform.tfstate<\/span><span style=\"color: #89DDFF\">&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F07178\">    <\/span><span style=\"color: #EEFFFF\">region       <\/span><span style=\"color: #89DDFF\">=<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #C3E88D\">ap-northeast-1<\/span><span style=\"color: #89DDFF\">&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F07178\">    <\/span><span style=\"color: #EEFFFF\">use_lockfile <\/span><span style=\"color: #89DDFF\">=<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #89DDFF\">true<\/span><\/span>\n<span class=\"line\"><span style=\"color: #F07178\">  <\/span><span style=\"color: #89DDFF\">}<\/span><\/span>\n<span class=\"line\"><span style=\"color: #89DDFF\">}<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">bucket\u306b\u306fState\u3092\u4fdd\u5b58\u3059\u308b\u65e2\u5b58\u306eS3\u30d0\u30b1\u30c3\u30c8\u3092\u3001key\u306b\u306f\u30d0\u30b1\u30c3\u30c8\u5185\u3067\u306e\u4fdd\u5b58\u5148\u306e\u30d1\u30b9\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<br><code>use_lockfile = true<\/code>\u3092\u6307\u5b9a\u3059\u308b\u3068\u3001S3\u4e0a\u306e\u30ed\u30c3\u30af\u30d5\u30a1\u30a4\u30eb\u306b\u3088\u3063\u3066\u8907\u6570\u4eba\u306e\u540c\u6642\u64cd\u4f5c\u3092\u9632\u3052\u307e\u3059\uff08Terraform 1.10\u4ee5\u964d\u3067\u5229\u7528\u53ef\u80fd\uff09\u3002<br>backend\u30d6\u30ed\u30c3\u30af\u3092\u8ffd\u52a0\u30fb\u5909\u66f4\u3057\u305f\u5f8c\u306f\u3001<code>terraform init<\/code>\u3092\u518d\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br>State\u3092\u4fdd\u5b58\u3059\u308b\u30d0\u30b1\u30c3\u30c8\u306f\u3001\u8aa4\u3063\u3066\u524a\u9664\u30fb\u4e0a\u66f8\u304d\u3057\u3066\u3082\u5fa9\u5143\u3067\u304d\u308b\u3088\u3046\u3001\u30d0\u30fc\u30b8\u30e7\u30cb\u30f3\u30b0\u3092\u6709\u52b9\u306b\u3057\u3066\u304a\u304f\u306e\u304c\u304a\u3059\u3059\u3081\u3067\u3059\u3002<\/p>\n\n\n\n<h3 id=\"outline__7_4\" class=\"wp-block-heading\">CI\/CD\u3067plan\u3068apply\u3092\u81ea\u52d5\u5316\u3059\u308b<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u30c1\u30fc\u30e0\u958b\u767a\u3067\u306f\u3001Terraform\u306e\u30b3\u30fc\u30c9\u3092<span class=\"c-user01\" style=\"font-weight:bold;\">GitHub Actions\u306a\u3069\u306eCI\/CD\u30c4\u30fc\u30eb\u3068\u9023\u643a<\/span>\u3055\u305b\u308b\u904b\u7528\u3082\u4e00\u822c\u7684\u3067\u3059\u3002<br>\u305f\u3068\u3048\u3070\u3001\u30d7\u30eb\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u4f5c\u6210\u3057\u305f\u30bf\u30a4\u30df\u30f3\u30b0\u3067plan\u3092\u81ea\u52d5\u5b9f\u884c\u3057\u3066\u7d50\u679c\u3092\u30ec\u30d3\u30e5\u30fc\u3057\u3001main\u30d6\u30e9\u30f3\u30c1\u306b\u30de\u30fc\u30b8\u3055\u308c\u305f\u3089apply\u3092\u5b9f\u884c\u3059\u308b\u3001\u3068\u3044\u3063\u305f\u6d41\u308c\u3092\u81ea\u52d5\u5316\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u3068\u304d\u3001AWS\u306e\u8a8d\u8a3c\u306b\u306f\u30a2\u30af\u30bb\u30b9\u30ad\u30fc\u3092\u4f7f\u308f\u305a\u3001<span class=\"c-user01\" style=\"font-weight:bold;\">OIDC\uff08OpenID Connect\uff09\u3067IAM\u30ed\u30fc\u30eb\u3092\u5f15\u304d\u53d7\u3051\u308b\u65b9\u6cd5<\/span>\u304c\u63a8\u5968\u3055\u308c\u3066\u3044\u307e\u3059\u3002<br>\u5177\u4f53\u7684\u306a\u624b\u9806\u306f\u3001<a href=\"https:\/\/developer.hashicorp.com\/terraform\/tutorials\/automation\/github-actions\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">HashiCorp\u516c\u5f0f\u306eGitHub Actions\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb<\/a>\u3084<a href=\"https:\/\/docs.github.com\/ja\/actions\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">GitHub Actions\u306e\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/a>\u3092\u53c2\u8003\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<div class=\"techmania-recirc\">\n<style>\n.techmania-recirc{margin:24px 0;font-family:-apple-system,\"Hiragino Kaku Gothic ProN\",\"Yu Gothic\",sans-serif;}\n.techmania-recirc__label{font-size:14px;color:#333;margin-bottom:8px;font-weight:bold;}\n.techmania-recirc__box{display:flex;align-items:center;gap:16px;border:1px solid #ddd;border-radius:4px;padding:12px 16px;text-decoration:none;transition:background .2s;}\n.techmania-recirc__box:hover{background:#f7f9fc;}\n.techmania-recirc__thumb{width:96px;aspect-ratio:6\/4;object-fit:cover;border-radius:4px;flex-shrink:0;}\n.techmania-recirc__title{color:#2952cc;font-size:15px;line-height:1.6;flex:1;}\n.techmania-recirc__arrow{flex-shrink:0;width:28px;height:28px;border-radius:50%;background:#2952cc;color:#fff;display:flex;align-items:center;justify-content:center;font-size:12px;}\n<\/style>\n<div class=\"techmania-recirc__label\">\u25bc\u3053\u3061\u3089\u3082\u30c1\u30a7\u30c3\u30af\u25bc<\/div>\n<a class=\"techmania-recirc__box\" href=\"https:\/\/techmania.jp\/blog\/devops0001\/\">\n  <img decoding=\"async\" class=\"techmania-recirc__thumb\" src=\"https:\/\/web-img.rensa.jp.net\/rensa\/images\/techmania\/thumbnail\/images\/devops.png\" alt=\"DevOps\u3068\u306f\uff1f\u3010\u5165\u9580\u3011\u30a2\u30b8\u30e3\u30a4\u30eb\u958b\u767a\u3068\u306e\u9055\u3044\u3001\u30e1\u30ea\u30c3\u30c8\u3092\u89e3\u8aac\" loading=\"lazy\">\n  <span class=\"techmania-recirc__title\">DevOps\u3068\u306f\uff1f\u3010\u5165\u9580\u3011\u30a2\u30b8\u30e3\u30a4\u30eb\u958b\u767a\u3068\u306e\u9055\u3044\u3001\u30e1\u30ea\u30c3\u30c8\u3092\u89e3\u8aac<\/span>\n  <span class=\"techmania-recirc__arrow\">\u25b6<\/span>\n<\/a>\n<\/div>\n\n\n\n<h2 id=\"outline__8\" class=\"wp-block-heading\">Terraform\u306b\u95a2\u3059\u308b\u3088\u304f\u3042\u308b\u8cea\u554f<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Q. Terraform\u306f\u7121\u6599\u3067\u4f7f\u3048\u307e\u3059\u304b\uff1f<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A. \u672c\u8a18\u4e8b\u3067\u4f7f\u7528\u3057\u305fTerraform\u306eCLI\uff08\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u30c4\u30fc\u30eb\uff09\u306f\u3001<span class=\"c-user01\" style=\"font-weight:bold;\">\u5b66\u7fd2\u3084\u81ea\u793e\u306e\u30a4\u30f3\u30d5\u30e9\u7ba1\u7406\u306b\u4f7f\u3046\u7bc4\u56f2\u3067\u3042\u308c\u3070\u7121\u6599\u3067\u5229\u7528\u3067\u304d\u307e\u3059<\/span>\u3002<br>\u30c1\u30fc\u30e0\u3067\u306e\u904b\u7528\u3092\u652f\u63f4\u3059\u308b\u30af\u30e9\u30a6\u30c9\u30b5\u30fc\u30d3\u30b9\u300cHCP Terraform\u300d\u306b\u306f\u3001\u7121\u6599\u30d7\u30e9\u30f3\u3068\u6709\u6599\u30d7\u30e9\u30f3\u304c\u3042\u308a\u307e\u3059\u3002<br>\u306a\u304a\u3001Terraform\u3067\u4f5c\u6210\u3057\u305fAWS\u306a\u3069\u306e\u30ea\u30bd\u30fc\u30b9\u306b\u306f\u3001\u5404\u30af\u30e9\u30a6\u30c9\u30b5\u30fc\u30d3\u30b9\u306e\u5229\u7528\u6599\u91d1\u304c\u5225\u9014\u304b\u304b\u308b\u70b9\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Q. Terraform\u3092\u5b66\u3076\u306e\u306b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u7d4c\u9a13\u306f\u5fc5\u8981\u3067\u3059\u304b\uff1f<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A. HCL\u306f\u300c\u3069\u306e\u3088\u3046\u306a\u30ea\u30bd\u30fc\u30b9\u3092\u3001\u3069\u306e\u3088\u3046\u306a\u8a2d\u5b9a\u3067\u4f5c\u308b\u304b\u300d\u3092\u5ba3\u8a00\u7684\u306b\u66f8\u304f\u8a00\u8a9e\u306e\u305f\u3081\u3001<span class=\"c-user01\" style=\"font-weight:bold;\">\u672c\u683c\u7684\u306a\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u7d4c\u9a13\u304c\u306a\u304f\u3066\u3082\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u306f\u7fd2\u5f97\u3067\u304d\u307e\u3059<\/span>\u3002<br>\u305f\u3060\u3057\u3001\u4f55\u3092\u30b3\u30fc\u30c9\u3067\u5b9a\u7fa9\u3059\u308b\u306e\u304b\u3092\u7406\u89e3\u3059\u308b\u305f\u3081\u306b\u3001AWS\u306a\u3069\u306e\u30af\u30e9\u30a6\u30c9\u30b5\u30fc\u30d3\u30b9\u3084\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306e\u57fa\u790e\u77e5\u8b58\u306f\u3042\u3063\u305f\u307b\u3046\u304c\u30b9\u30e0\u30fc\u30ba\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Q. State\u30d5\u30a1\u30a4\u30eb\u3092\u524a\u9664\u3057\u3066\u3057\u307e\u3063\u305f\u5834\u5408\u306f\u3069\u3046\u306a\u308a\u307e\u3059\u304b\uff1f<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A. State\u30d5\u30a1\u30a4\u30eb\u3092\u524a\u9664\u3057\u3066\u3082\u3001AWS\u4e0a\u306e\u30ea\u30bd\u30fc\u30b9\u306f\u524a\u9664\u3055\u308c\u305a\u306b\u6b8b\u308a\u307e\u3059\u3002<br>\u305f\u3060\u3057\u3001Terraform\u306f\u305d\u306e\u30ea\u30bd\u30fc\u30b9\u3092\u7ba1\u7406\u3057\u3066\u3044\u306a\u3044\u3068\u5224\u65ad\u3059\u308b\u305f\u3081\u3001\u305d\u306e\u307e\u307eapply\u3059\u308b\u3068\u540c\u3058\u30ea\u30bd\u30fc\u30b9\u3092\u65b0\u3057\u304f\u4f5c\u6210\u3057\u3088\u3046\u3068\u3057\u3066\u3001\u30a8\u30e9\u30fc\u3084\u91cd\u8907\u306e\u539f\u56e0\u306b\u306a\u308a\u307e\u3059\u3002<br>\u65e2\u5b58\u306e\u30ea\u30bd\u30fc\u30b9\u3092Terraform\u306e\u7ba1\u7406\u4e0b\u306b\u623b\u3059\u306b\u306f\u3001<a href=\"https:\/\/developer.hashicorp.com\/terraform\/language\/import\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">\u30a4\u30f3\u30dd\u30fc\u30c8\u6a5f\u80fd<\/a>\u3092\u4f7f\u3044\u307e\u3059\u3002<br>State\u30d5\u30a1\u30a4\u30eb\u3092\u5931\u308f\u306a\u3044\u305f\u3081\u306b\u3082\u3001<span class=\"c-user01\" style=\"font-weight:bold;\">\u5b9f\u52d9\u3067\u306f\u30ea\u30e2\u30fc\u30c8\u306e\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u3067State\u30d5\u30a1\u30a4\u30eb\u3092\u7ba1\u7406\u3059\u308b<\/span>\u306e\u304c\u304a\u3059\u3059\u3081\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Q. AWS\u7528\u306b\u66f8\u3044\u305f\u30b3\u30fc\u30c9\u306f\u3001\u307b\u304b\u306e\u30af\u30e9\u30a6\u30c9\u3067\u3082\u305d\u306e\u307e\u307e\u4f7f\u3048\u307e\u3059\u304b\uff1f<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A. \u305d\u306e\u307e\u307e\u3067\u306f\u4f7f\u3048\u307e\u305b\u3093\u3002<br>HCL\u306e\u66f8\u304d\u65b9\u3084init\u30fbplan\u30fbapply\u3068\u3044\u3063\u305f\u64cd\u4f5c\u306e\u6d41\u308c\u306f\u5171\u901a\u3067\u3059\u304c\u3001<span class=\"c-user01\" style=\"font-weight:bold;\">\u30ea\u30bd\u30fc\u30b9\u30bf\u30a4\u30d7\u3084\u5f15\u6570\u306fProvider\u3054\u3068\u306b\u7570\u306a\u308a\u307e\u3059<\/span>\u3002<br>\u305f\u3068\u3048\u3070\u3001AWS\u306eS3\u30d0\u30b1\u30c3\u30c8\u306f\u300caws_s3_bucket\u300d\u3001Google Cloud\u306eCloud Storage\u30d0\u30b1\u30c3\u30c8\u306f\u300cgoogle_storage_bucket\u300d\u306e\u3088\u3046\u306b\u5225\u306e\u30ea\u30bd\u30fc\u30b9\u3068\u3057\u3066\u5b9a\u7fa9\u3059\u308b\u305f\u3081\u3001\u5229\u7528\u3059\u308b\u30af\u30e9\u30a6\u30c9\u306b\u5408\u308f\u305b\u3066\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h2 id=\"outline__9\" class=\"wp-block-heading\">\u307e\u3068\u3081<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Terraform\u306f\u3001<span class=\"c-user01\" style=\"font-weight:bold;\">\u30a4\u30f3\u30d5\u30e9\u306e\u69cb\u6210\u3092\u30b3\u30fc\u30c9\u3068\u3057\u3066\u5b9a\u7fa9\u3057\u3001\u305d\u306e\u30b3\u30fc\u30c9\u3092\u3082\u3068\u306b\u30a4\u30f3\u30d5\u30e9\u3092\u69cb\u7bc9\u30fb\u7ba1\u7406\u3067\u304d\u308bIaC\u30c4\u30fc\u30eb<\/span>\u3067\u3059\u3002<br>S3\u3084EC2\u3001VPC\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306a\u3069\u3001\u69d8\u3005\u306a\u30a4\u30f3\u30d5\u30e9\u30ea\u30bd\u30fc\u30b9\u3092\u7ba1\u7406\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u306f\u3001\u30b3\u30fc\u30c9\u3092\u66f8\u3044\u305f\u3089<span class=\"c-user01\" style=\"font-weight:bold;\">\u300cterraform init \u2192 terraform plan \u2192 terraform apply\u300d\u306e\u9806\u306b\u5b9f\u884c\u3057\u3001\u4e0d\u8981\u306b\u306a\u3063\u305f\u3089\u524a\u9664\u3059\u308b<\/span>\u3068\u3044\u3046\u6d41\u308c\u3067\u3059\u3002<br>\u307e\u305a\u306f\u672c\u8a18\u4e8b\u306e\u624b\u9806\u306e\u3088\u3046\u306b\u5c0f\u3055\u306a\u30ea\u30bd\u30fc\u30b9\u304b\u3089\u8a66\u3057\u3001plan\u306e\u7d50\u679c\u3092\u78ba\u8a8d\u3059\u308b\u7fd2\u6163\u3092\u8eab\u306b\u3064\u3051\u307e\u3057\u3087\u3046\u3002<br>\u6163\u308c\u3066\u304d\u305f\u3089\u3001\u5909\u6570\u30fb\u51fa\u529b\u3084\u30e2\u30b8\u30e5\u30fc\u30eb\u3001State\u306e\u30ea\u30e2\u30fc\u30c8\u7ba1\u7406\u306a\u3069\u3092\u53d6\u308a\u5165\u308c\u3001\u5b9f\u52d9\u306b\u8fd1\u3044\u69cb\u6210\u306b\u6311\u6226\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5c0e\u5165\u3092\u691c\u8a0e\u3059\u308b\u969b\u306f\u3001CloudFormation\u3084Ansible\u306a\u3069\u306e\u30c4\u30fc\u30eb\u3068\u7279\u5fb4\u3092\u6bd4\u8f03\u3057\u306a\u304c\u3089\u3001\u74b0\u5883\u3084\u4f7f\u7528\u76ee\u7684\u306b\u9069\u3057\u305f\u3082\u306e\u3092\u9078\u629e\u3059\u308b\u3068\u826f\u3044\u3067\u3057\u3087\u3046\u3002<br>\u3055\u3089\u306b\u8a73\u3057\u304f\u5b66\u3073\u305f\u3044\u5834\u5408\u306f\u3001<a href=\"https:\/\/developer.hashicorp.com\/terraform\/tutorials\/aws-get-started\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Terraform\u516c\u5f0f\u306eAWS\u5165\u9580\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb<\/a>\u3082\u53c2\u8003\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Terraform\u3068\u306f\u3001\u30a4\u30f3\u30d5\u30e9\u3092\u30b3\u30fc\u30c9\u3067\u69cb\u7bc9\u30fb\u7ba1\u7406\u3067\u304d\u308bIaC\u30c4\u30fc\u30eb\u3067\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001Terraform\u306e\u4ed5\u7d44\u307f\u304b\u3089\u3001AWS\u306bS3\u30d0\u30b1\u30c3\u30c8\u3092\u4f5c\u6210\u30fb\u5909\u66f4\u30fb\u524a\u9664\u3059\u308b\u307e\u3067\u306e\u4f7f\u3044\u65b9\u3092\u3001\u5b9f\u884c\u753b\u9762\u3064\u304d\u3067\u521d\u5fc3\u8005\u5411\u3051\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3088\u304f\u3042\u308b\u30a8\u30e9\u30fc\u306e\u5bfe\u51e6\u6cd5\u3084\u3001CloudFormation\u30fbAnsible\u3068\u306e\u9055\u3044\u3082\u7d39\u4ecb\u3057\u307e\u3059\u3002","protected":false},"author":12,"featured_media":11380,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"fifu_image_url":"https:\/\/web-img.rensa.jp.net\/images\/techmania\/thumbnail\/images\/terraform.webp","fifu_image_alt":"\u3010Terraform\u3011\u30a4\u30f3\u30d5\u30e9\u3092\u30b3\u30fc\u30c9\u3067\u69cb\u7bc9\u30fb\u7ba1\u7406\u3059\u308b","footnotes":""},"categories":[3],"tags":[],"class_list":["post-11372","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-aws"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"Terraform\u3068\u306f\u3001\u30a4\u30f3\u30d5\u30e9\u3092\u30b3\u30fc\u30c9\u3067\u69cb\u7bc9\u30fb\u7ba1\u7406\u3067\u304d\u308bIaC\u30c4\u30fc\u30eb\u3067\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001Terraform\u306e\u4ed5\u7d44\u307f\u304b\u3089\u3001AWS\u306bS3\u30d0\u30b1\u30c3\u30c8\u3092\u4f5c\u6210\u30fb\u5909\u66f4\u30fb\u524a\u9664\u3059\u308b\u307e\u3067\u306e\u4f7f\u3044\u65b9\u3092\u3001\u5b9f\u884c\u753b\u9762\u3064\u304d\u3067\u521d\u5fc3\u8005\u5411\u3051\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3088\u304f\u3042\u308b\u30a8\u30e9\u30fc\u306e\u5bfe\u51e6\u6cd5\u3084\u3001CloudFormation\u30fbAnsible\u3068\u306e\u9055\u3044\u3082\u7d39\u4ecb\u3057\u307e\u3059\u3002\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"\u30c6\u30c3\u30af\u30de\u30cb\u30a2\u7de8\u96c6\u90e8\u3000\u65e9\u5ddd\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/techmania.jp\/blog\/terraform\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"ja_JP\" \/>\n\t\t<meta property=\"og:site_name\" content=\"TechMania |\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Terraform\u3068\u306f\uff1fAWS\u3067\u306e\u4f7f\u3044\u65b9\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304b\u3089\u5b9f\u8df5\u307e\u3067\u5b9f\u969b\u306e\u753b\u9762\u3067\u89e3\u8aac\" \/>\n\t\t<meta property=\"og:description\" content=\"Terraform\u3068\u306f\u3001\u30a4\u30f3\u30d5\u30e9\u3092\u30b3\u30fc\u30c9\u3067\u69cb\u7bc9\u30fb\u7ba1\u7406\u3067\u304d\u308bIaC\u30c4\u30fc\u30eb\u3067\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001Terraform\u306e\u4ed5\u7d44\u307f\u304b\u3089\u3001AWS\u306bS3\u30d0\u30b1\u30c3\u30c8\u3092\u4f5c\u6210\u30fb\u5909\u66f4\u30fb\u524a\u9664\u3059\u308b\u307e\u3067\u306e\u4f7f\u3044\u65b9\u3092\u3001\u5b9f\u884c\u753b\u9762\u3064\u304d\u3067\u521d\u5fc3\u8005\u5411\u3051\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3088\u304f\u3042\u308b\u30a8\u30e9\u30fc\u306e\u5bfe\u51e6\u6cd5\u3084\u3001CloudFormation\u30fbAnsible\u3068\u306e\u9055\u3044\u3082\u7d39\u4ecb\u3057\u307e\u3059\u3002\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/techmania.jp\/blog\/terraform\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/techmania.jp\/blog\/wp-content\/uploads\/2023\/07\/logo2.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/techmania.jp\/blog\/wp-content\/uploads\/2023\/07\/logo2.png\" \/>\n\t\t<meta property=\"og:image:width\" content=\"1368\" \/>\n\t\t<meta property=\"og:image:height\" content=\"196\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2026-10-09T13:18:20+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2026-10-09T13:18:23+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Terraform\u3068\u306f\uff1fAWS\u3067\u306e\u4f7f\u3044\u65b9\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304b\u3089\u5b9f\u8df5\u307e\u3067\u5b9f\u969b\u306e\u753b\u9762\u3067\u89e3\u8aac\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Terraform\u3068\u306f\u3001\u30a4\u30f3\u30d5\u30e9\u3092\u30b3\u30fc\u30c9\u3067\u69cb\u7bc9\u30fb\u7ba1\u7406\u3067\u304d\u308bIaC\u30c4\u30fc\u30eb\u3067\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001Terraform\u306e\u4ed5\u7d44\u307f\u304b\u3089\u3001AWS\u306bS3\u30d0\u30b1\u30c3\u30c8\u3092\u4f5c\u6210\u30fb\u5909\u66f4\u30fb\u524a\u9664\u3059\u308b\u307e\u3067\u306e\u4f7f\u3044\u65b9\u3092\u3001\u5b9f\u884c\u753b\u9762\u3064\u304d\u3067\u521d\u5fc3\u8005\u5411\u3051\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3088\u304f\u3042\u308b\u30a8\u30e9\u30fc\u306e\u5bfe\u51e6\u6cd5\u3084\u3001CloudFormation\u30fbAnsible\u3068\u306e\u9055\u3044\u3082\u7d39\u4ecb\u3057\u307e\u3059\u3002\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/web-img.rensa.jp.net\/images\/techmania\/thumbnail\/images\/terraform.webp\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/terraform\\\/#blogposting\",\"name\":\"Terraform\\u3068\\u306f\\uff1fAWS\\u3067\\u306e\\u4f7f\\u3044\\u65b9\\u3092\\u30a4\\u30f3\\u30b9\\u30c8\\u30fc\\u30eb\\u304b\\u3089\\u5b9f\\u8df5\\u307e\\u3067\\u5b9f\\u969b\\u306e\\u753b\\u9762\\u3067\\u89e3\\u8aac\",\"headline\":\"Terraform\\u3068\\u306f\\uff1fAWS\\u3067\\u306e\\u4f7f\\u3044\\u65b9\\u3092\\u30a4\\u30f3\\u30b9\\u30c8\\u30fc\\u30eb\\u304b\\u3089\\u5b9f\\u8df5\\u307e\\u3067\\u5b9f\\u969b\\u306e\\u753b\\u9762\\u3067\\u89e3\\u8aac\",\"author\":{\"@id\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/author\\\/k-h\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/web-img.rensa.jp.net\\\/images\\\/techmania\\\/thumbnail\\\/images\\\/terraform.webp\",\"width\":599,\"height\":401,\"caption\":\"\\u3010Terraform\\u3011\\u30a4\\u30f3\\u30d5\\u30e9\\u3092\\u30b3\\u30fc\\u30c9\\u3067\\u69cb\\u7bc9\\u30fb\\u7ba1\\u7406\\u3059\\u308b\"},\"datePublished\":\"2026-10-09T22:18:20+09:00\",\"dateModified\":\"2026-10-09T22:18:23+09:00\",\"inLanguage\":\"ja\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/terraform\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/terraform\\\/#webpage\"},\"articleSection\":\"AWS\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/terraform\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/techmania.jp\\\/blog#listItem\",\"position\":1,\"name\":\"\\u30db\\u30fc\\u30e0\",\"item\":\"https:\\\/\\\/techmania.jp\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/category\\\/aws\\\/#listItem\",\"name\":\"AWS\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/category\\\/aws\\\/#listItem\",\"position\":2,\"name\":\"AWS\",\"item\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/category\\\/aws\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/terraform\\\/#listItem\",\"name\":\"Terraform\\u3068\\u306f\\uff1fAWS\\u3067\\u306e\\u4f7f\\u3044\\u65b9\\u3092\\u30a4\\u30f3\\u30b9\\u30c8\\u30fc\\u30eb\\u304b\\u3089\\u5b9f\\u8df5\\u307e\\u3067\\u5b9f\\u969b\\u306e\\u753b\\u9762\\u3067\\u89e3\\u8aac\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/techmania.jp\\\/blog#listItem\",\"name\":\"\\u30db\\u30fc\\u30e0\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/terraform\\\/#listItem\",\"position\":3,\"name\":\"Terraform\\u3068\\u306f\\uff1fAWS\\u3067\\u306e\\u4f7f\\u3044\\u65b9\\u3092\\u30a4\\u30f3\\u30b9\\u30c8\\u30fc\\u30eb\\u304b\\u3089\\u5b9f\\u8df5\\u307e\\u3067\\u5b9f\\u969b\\u306e\\u753b\\u9762\\u3067\\u89e3\\u8aac\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/category\\\/aws\\\/#listItem\",\"name\":\"AWS\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/#organization\",\"name\":\"\\u682a\\u5f0f\\u4f1a\\u793e\\u30ec\\u30f3\\u30b5\",\"description\":\"\\u682a\\u5f0f\\u4f1a\\u793e\\u30ec\\u30f3\\u30b5\\u306f\\u3001\\u81ea\\u793e\\u30b3\\u30f3\\u30c6\\u30f3\\u30c4\\u904b\\u7528\\u3092\\u8ef8\\u306b\\u300c\\u30aa\\u30a6\\u30f3\\u30c9\\u30e1\\u30c7\\u30a3\\u30a2\\u904b\\u55b6\\u300d\\u300c\\u5404\\u30e1\\u30c7\\u30a3\\u30a2\\u306e\\u5e83\\u544a\\u904b\\u7528\\u300d\\u300c\\u30a8\\u30f3\\u30b8\\u30cb\\u30a2\\u306e\\u80b2\\u6210\\u300d\\u300c\\u30b7\\u30b9\\u30c6\\u30e0\\u30a8\\u30f3\\u30b8\\u30cb\\u30a2\\u30ea\\u30f3\\u30b0\\u4e8b\\u696d\\u300d\\u3092\\u5c55\\u958b\\u3057\\u3066\\u3044\\u307e\\u3059\\u3002\\u6e29\\u5ea6\\u3092\\u611f\\u3058\\u308b\\u30af\\u30ea\\u30a8\\u30a4\\u30c6\\u30a3\\u30d6\\u3068\\u30a8\\u30f3\\u30b8\\u30cb\\u30a2\\u30ea\\u30f3\\u30b0\\u3067\\u793e\\u4f1a\\u306b\\u8ca2\\u732e\\u3057\\u307e\\u3059\\u3002\",\"url\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/\",\"telephone\":\"+81364575500\",\"foundingDate\":\"2011-02-18\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/web-img.rensa.jp.net\\\/images\\\/techmania\\\/thumbnail\\\/images\\\/logo2.webp\",\"@id\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/terraform\\\/#organizationLogo\"},\"image\":{\"@id\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/terraform\\\/#organizationLogo\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/author\\\/k-h\\\/#author\",\"url\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/author\\\/k-h\\\/\",\"name\":\"\\u30c6\\u30c3\\u30af\\u30de\\u30cb\\u30a2\\u7de8\\u96c6\\u90e8\\u3000\\u65e9\\u5ddd\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/terraform\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f3efd10a50c6027d326cce83db9bfd1e00de2edb5a323b312022e637f1c55f3e?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"\\u30c6\\u30c3\\u30af\\u30de\\u30cb\\u30a2\\u7de8\\u96c6\\u90e8\\u3000\\u65e9\\u5ddd\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/terraform\\\/#webpage\",\"url\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/terraform\\\/\",\"name\":\"Terraform\\u3068\\u306f\\uff1fAWS\\u3067\\u306e\\u4f7f\\u3044\\u65b9\\u3092\\u30a4\\u30f3\\u30b9\\u30c8\\u30fc\\u30eb\\u304b\\u3089\\u5b9f\\u8df5\\u307e\\u3067\\u5b9f\\u969b\\u306e\\u753b\\u9762\\u3067\\u89e3\\u8aac\",\"description\":\"Terraform\\u3068\\u306f\\u3001\\u30a4\\u30f3\\u30d5\\u30e9\\u3092\\u30b3\\u30fc\\u30c9\\u3067\\u69cb\\u7bc9\\u30fb\\u7ba1\\u7406\\u3067\\u304d\\u308bIaC\\u30c4\\u30fc\\u30eb\\u3067\\u3059\\u3002\\u3053\\u306e\\u8a18\\u4e8b\\u3067\\u306f\\u3001Terraform\\u306e\\u4ed5\\u7d44\\u307f\\u304b\\u3089\\u3001AWS\\u306bS3\\u30d0\\u30b1\\u30c3\\u30c8\\u3092\\u4f5c\\u6210\\u30fb\\u5909\\u66f4\\u30fb\\u524a\\u9664\\u3059\\u308b\\u307e\\u3067\\u306e\\u4f7f\\u3044\\u65b9\\u3092\\u3001\\u5b9f\\u884c\\u753b\\u9762\\u3064\\u304d\\u3067\\u521d\\u5fc3\\u8005\\u5411\\u3051\\u306b\\u89e3\\u8aac\\u3057\\u307e\\u3059\\u3002\\u3088\\u304f\\u3042\\u308b\\u30a8\\u30e9\\u30fc\\u306e\\u5bfe\\u51e6\\u6cd5\\u3084\\u3001CloudFormation\\u30fbAnsible\\u3068\\u306e\\u9055\\u3044\\u3082\\u7d39\\u4ecb\\u3057\\u307e\\u3059\\u3002\",\"inLanguage\":\"ja\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/terraform\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/author\\\/k-h\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/author\\\/k-h\\\/#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/web-img.rensa.jp.net\\\/images\\\/techmania\\\/thumbnail\\\/images\\\/terraform.webp\",\"@id\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/terraform\\\/#mainImage\",\"width\":599,\"height\":401,\"caption\":\"\\u3010Terraform\\u3011\\u30a4\\u30f3\\u30d5\\u30e9\\u3092\\u30b3\\u30fc\\u30c9\\u3067\\u69cb\\u7bc9\\u30fb\\u7ba1\\u7406\\u3059\\u308b\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/terraform\\\/#mainImage\"},\"datePublished\":\"2026-10-09T22:18:20+09:00\",\"dateModified\":\"2026-10-09T22:18:23+09:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/\",\"name\":\"TechMania\",\"inLanguage\":\"ja\",\"publisher\":{\"@id\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Terraform\u3068\u306f\uff1fAWS\u3067\u306e\u4f7f\u3044\u65b9\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304b\u3089\u5b9f\u8df5\u307e\u3067\u5b9f\u969b\u306e\u753b\u9762\u3067\u89e3\u8aac","description":"Terraform\u3068\u306f\u3001\u30a4\u30f3\u30d5\u30e9\u3092\u30b3\u30fc\u30c9\u3067\u69cb\u7bc9\u30fb\u7ba1\u7406\u3067\u304d\u308bIaC\u30c4\u30fc\u30eb\u3067\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001Terraform\u306e\u4ed5\u7d44\u307f\u304b\u3089\u3001AWS\u306bS3\u30d0\u30b1\u30c3\u30c8\u3092\u4f5c\u6210\u30fb\u5909\u66f4\u30fb\u524a\u9664\u3059\u308b\u307e\u3067\u306e\u4f7f\u3044\u65b9\u3092\u3001\u5b9f\u884c\u753b\u9762\u3064\u304d\u3067\u521d\u5fc3\u8005\u5411\u3051\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3088\u304f\u3042\u308b\u30a8\u30e9\u30fc\u306e\u5bfe\u51e6\u6cd5\u3084\u3001CloudFormation\u30fbAnsible\u3068\u306e\u9055\u3044\u3082\u7d39\u4ecb\u3057\u307e\u3059\u3002","canonical_url":"https:\/\/techmania.jp\/blog\/terraform\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/techmania.jp\/blog\/terraform\/#blogposting","name":"Terraform\u3068\u306f\uff1fAWS\u3067\u306e\u4f7f\u3044\u65b9\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304b\u3089\u5b9f\u8df5\u307e\u3067\u5b9f\u969b\u306e\u753b\u9762\u3067\u89e3\u8aac","headline":"Terraform\u3068\u306f\uff1fAWS\u3067\u306e\u4f7f\u3044\u65b9\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304b\u3089\u5b9f\u8df5\u307e\u3067\u5b9f\u969b\u306e\u753b\u9762\u3067\u89e3\u8aac","author":{"@id":"https:\/\/techmania.jp\/blog\/author\/k-h\/#author"},"publisher":{"@id":"https:\/\/techmania.jp\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/web-img.rensa.jp.net\/images\/techmania\/thumbnail\/images\/terraform.webp","width":599,"height":401,"caption":"\u3010Terraform\u3011\u30a4\u30f3\u30d5\u30e9\u3092\u30b3\u30fc\u30c9\u3067\u69cb\u7bc9\u30fb\u7ba1\u7406\u3059\u308b"},"datePublished":"2026-10-09T22:18:20+09:00","dateModified":"2026-10-09T22:18:23+09:00","inLanguage":"ja","mainEntityOfPage":{"@id":"https:\/\/techmania.jp\/blog\/terraform\/#webpage"},"isPartOf":{"@id":"https:\/\/techmania.jp\/blog\/terraform\/#webpage"},"articleSection":"AWS"},{"@type":"BreadcrumbList","@id":"https:\/\/techmania.jp\/blog\/terraform\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/techmania.jp\/blog#listItem","position":1,"name":"\u30db\u30fc\u30e0","item":"https:\/\/techmania.jp\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/techmania.jp\/blog\/category\/aws\/#listItem","name":"AWS"}},{"@type":"ListItem","@id":"https:\/\/techmania.jp\/blog\/category\/aws\/#listItem","position":2,"name":"AWS","item":"https:\/\/techmania.jp\/blog\/category\/aws\/","nextItem":{"@type":"ListItem","@id":"https:\/\/techmania.jp\/blog\/terraform\/#listItem","name":"Terraform\u3068\u306f\uff1fAWS\u3067\u306e\u4f7f\u3044\u65b9\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304b\u3089\u5b9f\u8df5\u307e\u3067\u5b9f\u969b\u306e\u753b\u9762\u3067\u89e3\u8aac"},"previousItem":{"@type":"ListItem","@id":"https:\/\/techmania.jp\/blog#listItem","name":"\u30db\u30fc\u30e0"}},{"@type":"ListItem","@id":"https:\/\/techmania.jp\/blog\/terraform\/#listItem","position":3,"name":"Terraform\u3068\u306f\uff1fAWS\u3067\u306e\u4f7f\u3044\u65b9\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304b\u3089\u5b9f\u8df5\u307e\u3067\u5b9f\u969b\u306e\u753b\u9762\u3067\u89e3\u8aac","previousItem":{"@type":"ListItem","@id":"https:\/\/techmania.jp\/blog\/category\/aws\/#listItem","name":"AWS"}}]},{"@type":"Organization","@id":"https:\/\/techmania.jp\/blog\/#organization","name":"\u682a\u5f0f\u4f1a\u793e\u30ec\u30f3\u30b5","description":"\u682a\u5f0f\u4f1a\u793e\u30ec\u30f3\u30b5\u306f\u3001\u81ea\u793e\u30b3\u30f3\u30c6\u30f3\u30c4\u904b\u7528\u3092\u8ef8\u306b\u300c\u30aa\u30a6\u30f3\u30c9\u30e1\u30c7\u30a3\u30a2\u904b\u55b6\u300d\u300c\u5404\u30e1\u30c7\u30a3\u30a2\u306e\u5e83\u544a\u904b\u7528\u300d\u300c\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u80b2\u6210\u300d\u300c\u30b7\u30b9\u30c6\u30e0\u30a8\u30f3\u30b8\u30cb\u30a2\u30ea\u30f3\u30b0\u4e8b\u696d\u300d\u3092\u5c55\u958b\u3057\u3066\u3044\u307e\u3059\u3002\u6e29\u5ea6\u3092\u611f\u3058\u308b\u30af\u30ea\u30a8\u30a4\u30c6\u30a3\u30d6\u3068\u30a8\u30f3\u30b8\u30cb\u30a2\u30ea\u30f3\u30b0\u3067\u793e\u4f1a\u306b\u8ca2\u732e\u3057\u307e\u3059\u3002","url":"https:\/\/techmania.jp\/blog\/","telephone":"+81364575500","foundingDate":"2011-02-18","logo":{"@type":"ImageObject","url":"https:\/\/web-img.rensa.jp.net\/images\/techmania\/thumbnail\/images\/logo2.webp","@id":"https:\/\/techmania.jp\/blog\/terraform\/#organizationLogo"},"image":{"@id":"https:\/\/techmania.jp\/blog\/terraform\/#organizationLogo"}},{"@type":"Person","@id":"https:\/\/techmania.jp\/blog\/author\/k-h\/#author","url":"https:\/\/techmania.jp\/blog\/author\/k-h\/","name":"\u30c6\u30c3\u30af\u30de\u30cb\u30a2\u7de8\u96c6\u90e8\u3000\u65e9\u5ddd","image":{"@type":"ImageObject","@id":"https:\/\/techmania.jp\/blog\/terraform\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/f3efd10a50c6027d326cce83db9bfd1e00de2edb5a323b312022e637f1c55f3e?s=96&d=mm&r=g","width":96,"height":96,"caption":"\u30c6\u30c3\u30af\u30de\u30cb\u30a2\u7de8\u96c6\u90e8\u3000\u65e9\u5ddd"}},{"@type":"WebPage","@id":"https:\/\/techmania.jp\/blog\/terraform\/#webpage","url":"https:\/\/techmania.jp\/blog\/terraform\/","name":"Terraform\u3068\u306f\uff1fAWS\u3067\u306e\u4f7f\u3044\u65b9\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304b\u3089\u5b9f\u8df5\u307e\u3067\u5b9f\u969b\u306e\u753b\u9762\u3067\u89e3\u8aac","description":"Terraform\u3068\u306f\u3001\u30a4\u30f3\u30d5\u30e9\u3092\u30b3\u30fc\u30c9\u3067\u69cb\u7bc9\u30fb\u7ba1\u7406\u3067\u304d\u308bIaC\u30c4\u30fc\u30eb\u3067\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001Terraform\u306e\u4ed5\u7d44\u307f\u304b\u3089\u3001AWS\u306bS3\u30d0\u30b1\u30c3\u30c8\u3092\u4f5c\u6210\u30fb\u5909\u66f4\u30fb\u524a\u9664\u3059\u308b\u307e\u3067\u306e\u4f7f\u3044\u65b9\u3092\u3001\u5b9f\u884c\u753b\u9762\u3064\u304d\u3067\u521d\u5fc3\u8005\u5411\u3051\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3088\u304f\u3042\u308b\u30a8\u30e9\u30fc\u306e\u5bfe\u51e6\u6cd5\u3084\u3001CloudFormation\u30fbAnsible\u3068\u306e\u9055\u3044\u3082\u7d39\u4ecb\u3057\u307e\u3059\u3002","inLanguage":"ja","isPartOf":{"@id":"https:\/\/techmania.jp\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/techmania.jp\/blog\/terraform\/#breadcrumblist"},"author":{"@id":"https:\/\/techmania.jp\/blog\/author\/k-h\/#author"},"creator":{"@id":"https:\/\/techmania.jp\/blog\/author\/k-h\/#author"},"image":{"@type":"ImageObject","url":"https:\/\/web-img.rensa.jp.net\/images\/techmania\/thumbnail\/images\/terraform.webp","@id":"https:\/\/techmania.jp\/blog\/terraform\/#mainImage","width":599,"height":401,"caption":"\u3010Terraform\u3011\u30a4\u30f3\u30d5\u30e9\u3092\u30b3\u30fc\u30c9\u3067\u69cb\u7bc9\u30fb\u7ba1\u7406\u3059\u308b"},"primaryImageOfPage":{"@id":"https:\/\/techmania.jp\/blog\/terraform\/#mainImage"},"datePublished":"2026-10-09T22:18:20+09:00","dateModified":"2026-10-09T22:18:23+09:00"},{"@type":"WebSite","@id":"https:\/\/techmania.jp\/blog\/#website","url":"https:\/\/techmania.jp\/blog\/","name":"TechMania","inLanguage":"ja","publisher":{"@id":"https:\/\/techmania.jp\/blog\/#organization"}}]},"og:locale":"ja_JP","og:site_name":"TechMania |","og:type":"article","og:title":"Terraform\u3068\u306f\uff1fAWS\u3067\u306e\u4f7f\u3044\u65b9\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304b\u3089\u5b9f\u8df5\u307e\u3067\u5b9f\u969b\u306e\u753b\u9762\u3067\u89e3\u8aac","og:description":"Terraform\u3068\u306f\u3001\u30a4\u30f3\u30d5\u30e9\u3092\u30b3\u30fc\u30c9\u3067\u69cb\u7bc9\u30fb\u7ba1\u7406\u3067\u304d\u308bIaC\u30c4\u30fc\u30eb\u3067\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001Terraform\u306e\u4ed5\u7d44\u307f\u304b\u3089\u3001AWS\u306bS3\u30d0\u30b1\u30c3\u30c8\u3092\u4f5c\u6210\u30fb\u5909\u66f4\u30fb\u524a\u9664\u3059\u308b\u307e\u3067\u306e\u4f7f\u3044\u65b9\u3092\u3001\u5b9f\u884c\u753b\u9762\u3064\u304d\u3067\u521d\u5fc3\u8005\u5411\u3051\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3088\u304f\u3042\u308b\u30a8\u30e9\u30fc\u306e\u5bfe\u51e6\u6cd5\u3084\u3001CloudFormation\u30fbAnsible\u3068\u306e\u9055\u3044\u3082\u7d39\u4ecb\u3057\u307e\u3059\u3002","og:url":"https:\/\/techmania.jp\/blog\/terraform\/","og:image":"https:\/\/techmania.jp\/blog\/wp-content\/uploads\/2023\/07\/logo2.png","og:image:secure_url":"https:\/\/techmania.jp\/blog\/wp-content\/uploads\/2023\/07\/logo2.png","og:image:width":1368,"og:image:height":196,"article:published_time":"2026-10-09T13:18:20+00:00","article:modified_time":"2026-10-09T13:18:23+00:00","twitter:card":"summary_large_image","twitter:title":"Terraform\u3068\u306f\uff1fAWS\u3067\u306e\u4f7f\u3044\u65b9\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304b\u3089\u5b9f\u8df5\u307e\u3067\u5b9f\u969b\u306e\u753b\u9762\u3067\u89e3\u8aac","twitter:description":"Terraform\u3068\u306f\u3001\u30a4\u30f3\u30d5\u30e9\u3092\u30b3\u30fc\u30c9\u3067\u69cb\u7bc9\u30fb\u7ba1\u7406\u3067\u304d\u308bIaC\u30c4\u30fc\u30eb\u3067\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001Terraform\u306e\u4ed5\u7d44\u307f\u304b\u3089\u3001AWS\u306bS3\u30d0\u30b1\u30c3\u30c8\u3092\u4f5c\u6210\u30fb\u5909\u66f4\u30fb\u524a\u9664\u3059\u308b\u307e\u3067\u306e\u4f7f\u3044\u65b9\u3092\u3001\u5b9f\u884c\u753b\u9762\u3064\u304d\u3067\u521d\u5fc3\u8005\u5411\u3051\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3088\u304f\u3042\u308b\u30a8\u30e9\u30fc\u306e\u5bfe\u51e6\u6cd5\u3084\u3001CloudFormation\u30fbAnsible\u3068\u306e\u9055\u3044\u3082\u7d39\u4ecb\u3057\u307e\u3059\u3002","twitter:image":"https:\/\/web-img.rensa.jp.net\/images\/techmania\/thumbnail\/images\/terraform.webp"},"aioseo_meta_data":{"post_id":"11372","title":"Terraform\u3068\u306f\uff1fAWS\u3067\u306e\u4f7f\u3044\u65b9\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304b\u3089\u5b9f\u8df5\u307e\u3067\u5b9f\u969b\u306e\u753b\u9762\u3067\u89e3\u8aac","description":"Terraform\u3068\u306f\u3001\u30a4\u30f3\u30d5\u30e9\u3092\u30b3\u30fc\u30c9\u3067\u69cb\u7bc9\u30fb\u7ba1\u7406\u3067\u304d\u308bIaC\u30c4\u30fc\u30eb\u3067\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001Terraform\u306e\u4ed5\u7d44\u307f\u304b\u3089\u3001AWS\u306bS3\u30d0\u30b1\u30c3\u30c8\u3092\u4f5c\u6210\u30fb\u5909\u66f4\u30fb\u524a\u9664\u3059\u308b\u307e\u3067\u306e\u4f7f\u3044\u65b9\u3092\u3001\u5b9f\u884c\u753b\u9762\u3064\u304d\u3067\u521d\u5fc3\u8005\u5411\u3051\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3088\u304f\u3042\u308b\u30a8\u30e9\u30fc\u306e\u5bfe\u51e6\u6cd5\u3084\u3001CloudFormation\u30fbAnsible\u3068\u306e\u9055\u3044\u3082\u7d39\u4ecb\u3057\u307e\u3059\u3002","keywords":null,"keyphrases":{"focus":{"keyphrase":"","score":0,"analysis":{"keyphraseInTitle":{"score":0,"maxScore":9,"error":1}}},"additional":[]},"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_custom_url":null,"og_image_custom_fields":null,"og_custom_image_width":null,"og_custom_image_height":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"summary_large_image","twitter_image_type":"featured","twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"created":"2026-10-09 06:27:19","updated":"2026-10-09 13:18:23","primary_term":null,"og_image_url":null,"og_image_width":null,"og_image_height":null,"twitter_image_url":"https:\/\/web-img.rensa.jp.net\/images\/techmania\/thumbnail\/images\/terraform.webp","schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"BlogPosting","isEnabled":true},"graphs":[]},"limit_modified_date":false,"ai":{"faqs":[],"keyPoints":[],"schemas":[],"titles":[],"descriptions":[],"socialPosts":{"email":{"subject":"","preview":"","content":""},"linkedin":[],"twitter":[],"facebook":[],"instagram":[]}},"breadcrumb_settings":null,"seo_analyzer_scan_date":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/techmania.jp\/blog\" title=\"\u30db\u30fc\u30e0\">\u30db\u30fc\u30e0<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/techmania.jp\/blog\/category\/aws\/\" title=\"AWS\">AWS<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tTerraform\u3068\u306f\uff1fAWS\u3067\u306e\u4f7f\u3044\u65b9\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304b\u3089\u5b9f\u8df5\u307e\u3067\u5b9f\u969b\u306e\u753b\u9762\u3067\u89e3\u8aac\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"\u30db\u30fc\u30e0","link":"https:\/\/techmania.jp\/blog"},{"label":"AWS","link":"https:\/\/techmania.jp\/blog\/category\/aws\/"},{"label":"Terraform\u3068\u306f\uff1fAWS\u3067\u306e\u4f7f\u3044\u65b9\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304b\u3089\u5b9f\u8df5\u307e\u3067\u5b9f\u969b\u306e\u753b\u9762\u3067\u89e3\u8aac","link":"https:\/\/techmania.jp\/blog\/terraform\/"}],"_links":{"self":[{"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/posts\/11372","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/comments?post=11372"}],"version-history":[{"count":4,"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/posts\/11372\/revisions"}],"predecessor-version":[{"id":11379,"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/posts\/11372\/revisions\/11379"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/media\/11380"}],"wp:attachment":[{"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/media?parent=11372"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/categories?post=11372"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/tags?post=11372"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}