{"id":29697,"date":"2025-11-27T09:28:48","date_gmt":"2025-11-27T00:28:48","guid":{"rendered":"https:\/\/www.skyarch.net\/blog\/?p=29697"},"modified":"2025-11-27T09:28:48","modified_gmt":"2025-11-27T00:28:48","slug":"cloudformation%e3%81%ae%e3%83%89%e3%83%aa%e3%83%95%e3%83%88%e8%aa%8d%e8%ad%98%e5%a4%89%e6%9b%b4%e3%82%bb%e3%83%83%e3%83%88%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e3%81%bf%e3%81%9f","status":"publish","type":"post","link":"https:\/\/www.skyarch.net\/blog\/cloudformation%e3%81%ae%e3%83%89%e3%83%aa%e3%83%95%e3%83%88%e8%aa%8d%e8%ad%98%e5%a4%89%e6%9b%b4%e3%82%bb%e3%83%83%e3%83%88%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e3%81%bf%e3%81%9f\/","title":{"rendered":"CloudFormation\u306e\u30c9\u30ea\u30d5\u30c8\u8a8d\u8b58\u5909\u66f4\u30bb\u30c3\u30c8\u3092\u4f7f\u3063\u3066\u307f\u305f"},"content":{"rendered":"<p>\u5148\u65e5\u3001CloudFormation\u306e\u65b0\u6a5f\u80fd\u3068\u3057\u3066<a href=\"https:\/\/aws.amazon.com\/jp\/blogs\/devops\/safely-handle-configuration-drift-with-cloudformation-drift-aware-change-sets\/\">\u30c9\u30ea\u30d5\u30c8\u8a8d\u8b58\u5909\u66f4\u30bb\u30c3\u30c8\u304c\u767a\u8868\u3055\u308c\u307e\u3057\u305f<\/a>\u306e\u3067\u3001\u3055\u3063\u305d\u304f\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\uff01<\/p>\n<h1>\u300c\u30c9\u30ea\u30d5\u30c8\u8a8d\u8b58\u5909\u66f4\u30bb\u30c3\u30c8\u300d\u3068\u306f\u306a\u3093\u306a\u306e\u304b<\/h1>\n<p>\u30c9\u30ea\u30d5\u30c8\u8a8d\u8b58\u5909\u66f4\u30bb\u30c3\u30c8\u3068\u306f\u3001CloudFormation\u3067\u306e\u30b9\u30bf\u30c3\u30af\u66f4\u65b0\u6642\u306b\u3001\u30b9\u30bf\u30c3\u30af\u306e\u5916\u3067\u884c\u308f\u308c\u305f\u30ea\u30bd\u30fc\u30b9\u306b\u5bfe\u3059\u308b\u5909\u66f4\u3092\u8a8d\u8b58\u3057\u3066\u5909\u66f4\u30bb\u30c3\u30c8\u3092\u4f5c\u6210\u3057\u3066\u304f\u308c\u308b\u6a5f\u80fd\u3067\u3059\u3002<br \/>\n\u3053\u308c\u307e\u3067\u306f\u3001\u300c\u73fe\u5728\uff08\uff1d\u66f4\u65b0\u524d\u30b9\u30bf\u30c3\u30af\u3068\u3057\u3066\u6700\u65b0\u72b6\u614b\uff09\u306e\u5b9a\u7fa9\u300d\u3068\u300c\u66f4\u65b0\u5f8c\u306e\u5b9a\u7fa9\u300d\u306e\u307f\u3092\u6bd4\u8f03\u3057\u3066\u5909\u66f4\u30bb\u30c3\u30c8\u306e\u4f5c\u6210\u304c\u884c\u308f\u308c\u3066\u3044\u307e\u3057\u305f\u304c\u3001\u30c9\u30ea\u30d5\u30c8\u8a8d\u8b58\u5909\u66f4\u30bb\u30c3\u30c8\u3067\u306f\u3001\u305d\u3053\u306b\u300c\u73fe\u5728\u306e\u30ea\u30bd\u30fc\u30b9\u72b6\u614b\u300d\u3092\u52a0\u3048\u305f\uff13\u7a2e\u985e\u306e\u72b6\u614b\u3092\u52a0\u5473\u3057\u305f\u3046\u3048\u3067\u5909\u66f4\u30bb\u30c3\u30c8\u3092\u4f5c\u6210\u3057\u3066\u304f\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u3082\u3046\u5c11\u3057\u308f\u304b\u308a\u3084\u3059\u304f\u8a00\u3046\u3068\u3001<strong>\u300c\u5b9a\u7fa9\u306e\u5dee\u5206\u3092\u53cd\u6620\u3059\u308b\u300d\u3060\u3051\u3067\u306f\u306a\u304f\u3001\u300c\u5b9a\u7fa9\u3068\u306e\u305a\u308c\u3092\u88dc\u6b63\u3059\u308b\u300d\u3053\u3068\u3082\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u305f<\/strong>\u3001\u3068\u3044\u3046\u3068\u3053\u308d\u3067\u3059\u306d\u3002<\/p>\n<p>\u3069\u3093\u306a\u4f7f\u3044\u52dd\u624b\u306a\u306e\u304b\u3001\u3055\u3063\u305d\u304f\u4f7f\u7528\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<h1>\u30c6\u30b9\u30c8\u7528\u30ea\u30bd\u30fc\u30b9\u3092\u6e96\u5099\u3059\u308b<\/h1>\n<p>\u6c17\u8efd\u306b\u30c9\u30ea\u30d5\u30c8\u3092\u767a\u751f\u3055\u305b\u308b\u305f\u3081\u306b\u3001\u4eca\u56de\u306f\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30b0\u30eb\u30fc\u30d7\u3067\u8a66\u3057\u3066\u307f\u307e\u3059\u3002<br \/>\n\u307e\u305a\u306f\u4e0b\u8a18\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u3082\u3068\u306b\u30b9\u30bf\u30c3\u30af\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-yaml\">AWSTemplateFormatVersion: 2010-09-09\nDescription: BLOG\nParameters:\n  VPCID:\n    Type: AWS::EC2::VPC::Id\n  RemoteCidr:\n    Type: String\n    Default: 192.168.0.0\/24\nResources:\n  SecurityGroup:\n    Type: AWS::EC2::SecurityGroup\n    Properties:\n      GroupName: BLOG\n      GroupDescription: BLOG\n      VpcId:\n        Ref: VPCID\n      SecurityGroupIngress:\n        - IpProtocol: tcp\n          FromPort: 80\n          ToPort: 80\n          CidrIp:\n            Ref: RemoteCidr<\/code><\/pre>\n<p>\u3061\u3083\u3093\u3068\u4f5c\u6210\u3055\u308c\u307e\u3057\u305f\u306d\u3002<\/p>\n<img decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/11\/resource-created.png\" alt=\"\" \/>\n<img decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/11\/original-sg.png\" alt=\"\" \/>\n<h1>IaC\u306e\u5916\u3067\u30ea\u30bd\u30fc\u30b9\u306b\u5909\u66f4\u3092\u52a0\u3048\u308b<\/h1>\n<p>\u7d9a\u3044\u3066\u3001\u4f5c\u6210\u3057\u305f\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30b0\u30eb\u30fc\u30d7\u3092\u3044\u3058\u3063\u3066\u3044\u304d\u307e\u3059\u3002<br \/>\n\u5b9f\u5229\u7528\u306f\u3057\u306a\u3044\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30b0\u30eb\u30fc\u30d7\u3067\u3059\u3057\u3001\u305b\u3063\u304b\u304f\u306a\u306e\u3067\u3001\u666e\u6bb5\u306a\u3089\u307e\u305a\u3084\u3089\u306a\u3044\u5909\u66f4\u3092\u52a0\u3048\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<img decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/11\/modified-sg.png\" alt=\"\" \/>\n<h1>\u5909\u66f4\u30bb\u30c3\u30c8\u3092\u4f5c\u6210\u3059\u308b<\/h1>\n<p>\u5909\u66f4\u304c\u7d42\u308f\u3063\u305f\u3089\u3001\u5909\u66f4\u30bb\u30c3\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<br \/>\n\u66f4\u65b0\u7528\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306f\u4e0b\u8a18\u3068\u3057\u307e\u3057\u305f\u300280\/tcp\u306b\u52a0\u3048\u3001\u540c\u3058\u30a2\u30c9\u30ec\u30b9\u304b\u3089\u306e443\/tcp\u3082\u53d7\u3051\u4ed8\u3051\u308b\u5909\u66f4\u3067\u3059\u3002<\/p>\n<pre><code class=\"language-yaml\">AWSTemplateFormatVersion: 2010-09-09\nDescription: BLOG\nParameters:\n  VPCID:\n    Type: AWS::EC2::VPC::Id\n  RemoteCidr:\n    Type: String\n    Default: 192.168.0.0\/24\nResources:\n  SecurityGroup:\n    Type: AWS::EC2::SecurityGroup\n    Properties:\n      GroupName: BLOG\n      GroupDescription: BLOG\n      VpcId:\n        Ref: VPCID\n      SecurityGroupIngress:\n        - IpProtocol: tcp\n          FromPort: 80\n          ToPort: 80\n          CidrIp:\n            Ref: RemoteCidr\n        - IpProtocol: tcp\n          FromPort: 443\n          ToPort: 443\n          CidrIp:\n            Ref: RemoteCidr<\/code><\/pre>\n<p>\u3053\u308c\u4ee5\u964d\u306f\u52d5\u4f5c\u3092\u6bd4\u8f03\u3059\u308b\u305f\u3081\u306b\u3001\u901a\u5e38\u306e\u5909\u66f4\u30bb\u30c3\u30c8\u3068\u30c9\u30ea\u30d5\u30c8\u8a8d\u8b58\u5909\u66f4\u30bb\u30c3\u30c8\u3092\u6bd4\u8f03\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u30b3\u30f3\u30bd\u30fc\u30eb\u3067\u300c\u30b9\u30bf\u30c3\u30af\u306e\u66f4\u65b0\uff1e\u5909\u66f4\u30bb\u30c3\u30c8\u3092\u4f5c\u6210\u300d\u3068\u9032\u307f\u307e\u3059\u3002<br \/>\n\u305d\u3046\u3059\u308b\u3068\u300c\u5909\u66f4\u30bb\u30c3\u30c8\u30bf\u30a4\u30d7\u300d\u3092\u805e\u304b\u308c\u308b\u306e\u3067\u3001\u3053\u3053\u3067\u305d\u308c\u305e\u308c\u306e\u5909\u66f4\u30bb\u30c3\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<img decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/11\/select-changeset.png\" alt=\"\" \/>\n<p>\u3042\u3068\u306f\u624b\u9806\u901a\u308a\u306b\u5909\u66f4\u30bb\u30c3\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<h1>\u5909\u66f4\u30bb\u30c3\u30c8\u306e\u6bd4\u8f03<\/h1>\n<p>\u5909\u66f4\u30bb\u30c3\u30c8\u306e\u4f5c\u6210\u304c\u5b8c\u4e86\u3059\u308b\u3068\u3001\u5909\u66f4\u306e\u30b5\u30de\u30ea\u30fc\u3092\u8868\u793a\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u30c9\u30ea\u30d5\u30c8\u8a8d\u8b58\u5909\u66f4\u30bb\u30c3\u30c8\u306e\u5834\u5408\u3001\u4eca\u307e\u3067\u306f\u51fa\u3066\u3053\u306a\u304b\u3063\u305f\u300c\u30c9\u30ea\u30d5\u30c8\u30b9\u30c6\u30fc\u30bf\u30b9\u300d\u304c\u51fa\u3066\u304f\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<img decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/11\/changeset-summary-driftaware.png\" alt=\"\" \/>\n<p>\u901a\u5e38\u306e\u5909\u66f4\u30bb\u30c3\u30c8\u3082\u6bd4\u8f03\u7528\u306b\u4e26\u3079\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<img decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/11\/changeset-summary-normal.png\" alt=\"\" \/>\n<p>\u305d\u3057\u3066\u5bfe\u8c61\u306e\u30ea\u30bd\u30fc\u30b9\u3092\u9078\u629e\u3059\u308b\u3068\u3001\u6bd4\u8f03\u7d50\u679c\u3092diff\u5f62\u5f0f\u3068\u8868\u5f62\u5f0f\u3067\u793a\u3057\u3066\u304f\u308c\u307e\u3059\u3002<br \/>\n\u30c9\u30ea\u30d5\u30c8\u8a8d\u8b58\u5909\u66f4\u30bb\u30c3\u30c8\u3067\u306f\u3001\u30c9\u30ea\u30d5\u30c8\u304c\u767a\u751f\u3057\u3066\u3044\u308b\u3068\u3053\u308d\u306b\u3001\u3053\u308c\u307e\u3067\u306f\u306a\u304b\u3063\u305f\u9ec4\u8272\u3067\u306e\u7db2\u639b\u3051\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<br \/>\n\u307e\u305f\u3001\u300c\u30c9\u30ea\u30d5\u30c8\u3092\u8868\u793a\u300d\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u3001\u300c\u3053\u3053\u304c\u9055\u3063\u3066\u308b\u3088\uff01\u300d\u3092\u89aa\u5207\u306b\u793a\u3057\u3066\u304f\u308c\u307e\u3059\u3002<br \/>\n\uff0880\/tcp\u306f\u3044\u3058\u3063\u3066\u306a\u3044\u306e\u3067\u3059\u304c\u3001\u51fa\u73fe\u5834\u6240\u304c\u305a\u308c\u305f\u305b\u3044\u3067\u88dc\u6b63\u5bfe\u8c61\u306b\u306a\u3063\u3066\u307e\u3059\u306d\u3002\u3053\u3053\u306f\u3054\u611b\u5b0c\uff09<\/p>\n<img decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/11\/changeset-detail-driftaware-diff.png\" alt=\"\" \/>\n<p>\u901a\u5e38\u306e\u5909\u66f4\u30bb\u30c3\u30c8\u3060\u3068\u3001\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u5909\u66f4\u306b\u57fa\u3065\u304f\u5dee\u5206\u306e\u307f\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<img decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/11\/changeset-detail-normal-diff.png\" alt=\"\" \/>\n<p>\u3053\u306e\u72b6\u614b\u3067\u305d\u308c\u305e\u308c\u5909\u66f4\u30bb\u30c3\u30c8\u3092\u5b9f\u884c\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<h1>\u5909\u66f4\u30bb\u30c3\u30c8\u3092\u5b9f\u884c\u3057\u3066\u307f\u308b\u3068...\uff1f<\/h1>\n<p>\u5909\u66f4\u30bb\u30c3\u30c8\u5b9f\u884c\u5f8c\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30b0\u30eb\u30fc\u30d7\u306e\u72b6\u614b\u306f\u3001\u305d\u308c\u305e\u308c\u3053\u3046\u306a\u308a\u307e\u3057\u305f\u3002<br \/>\n\u30c9\u30ea\u30d5\u30c8\u8a8d\u8b58\u5909\u66f4\u30bb\u30c3\u30c8\u3067\u306f\u3001\u624b\u52d5\u3067\u5165\u308c\u305f\u8a2d\u5b9a\u304c\u691c\u77e5\u3055\u308c\u305f\u3046\u3048\u3067\u3001\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u72b6\u614b\u3092\u6b63\u3068\u3057\u3066\u30ea\u30bd\u30fc\u30b9\u306e\u4fee\u6b63\u304c\u884c\u308f\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/p>\n<img decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/11\/updated-sg-driftaware.png\" alt=\"\" \/>\n<p>\u5bfe\u3057\u3066\u3001\u901a\u5e38\u306e\u5909\u66f4\u30bb\u30c3\u30c8\u3067\u306f\u3001\u5b9a\u7fa9\u306e\u5dee\u5206\u306b\u57fa\u3065\u304f443\/tcp\u306e\u30eb\u30fc\u30eb\u304c\u8ffd\u52a0\u3055\u308c\u305f\u306e\u307f\u3067\u3001\u624b\u52d5\u3067\u52a0\u3048\u305f\u5909\u66f4\u306f\u305d\u306e\u307e\u307e\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u306d\u3002<\/p>\n<img decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/11\/updated-sg-normal.png\" alt=\"\" \/>\n<h1>\u307e\u3068\u3081<\/h1>\n<p>\u4eca\u56de\u306f\u3001CloudFormation\u306e\u65b0\u6a5f\u80fd\u3067\u3042\u308b\u300c\u30c9\u30ea\u30d5\u30c8\u8a8d\u8b58\u5909\u66f4\u30bb\u30c3\u30c8\u300d\u3092\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\u3002<br \/>\n\u300c\u624b\u52d5\u3067\u3044\u3058\u3063\u305f\u3068\u3053\u308d\u3092\u899a\u3048\u3066\u306a\u3044\u3001\u3067\u3082\u30b9\u30bf\u30c3\u30af\u306f\u7d99\u7d9a\u5229\u7528\u3057\u305f\u3044\u300d\u3068\u3044\u3046\u6642\u306b\u4fbf\u5229\u305d\u3046\u3067\u3059\u306d\u3002<br \/>\n\u305f\u3060\u3001\u3053\u306e\u6a5f\u80fd\u306f\u300c\u610f\u56f3\u3057\u3066\u52a0\u3048\u305f\u5909\u66f4\u300d\u3082\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u901a\u308a\u306e\u5185\u5bb9\u306b\u88dc\u6b63\u3055\u308c\u308b\u3053\u3068\u304b\u3089\u3001\u7a3c\u50cd\u4e2d\u306e\u30ea\u30bd\u30fc\u30b9\u306b\u9069\u7528\u3059\u308b\u5834\u5408\u306f\u5341\u5206\u6ce8\u610f\u3057\u307e\u3057\u3087\u3046\u3002<br \/>\n\u305d\u308c\u3067\u306f\u307e\u305f\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5148\u65e5\u3001CloudFormation\u306e\u65b0\u6a5f\u80fd\u3068\u3057\u3066\u30c9\u30ea\u30d5\u30c8\u8a8d\u8b58\u5909\u66f4\u30bb\u30c3\u30c8\u304c\u767a\u8868\u3055\u308c\u307e\u3057\u305f\u306e\u3067\u3001\u3055\u3063\u305d\u304f\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\uff01 \u300c\u30c9\u30ea\u30d5\u30c8\u8a8d\u8b58\u5909\u66f4\u30bb\u30c3\u30c8\u300d\u3068\u306f\u306a\u3093\u306a\u306e\u304b \u30c9\u30ea\u30d5\u30c8\u8a8d\u8b58\u5909\u66f4\u30bb\u30c3\u30c8\u3068\u306f\u3001CloudFormation\u3067\u306e&#8230;<\/p>\n","protected":false},"author":205,"featured_media":29719,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_locale":"ja","_original_post":"https:\/\/www.skyarch.net\/blog\/?p=29697","footnotes":""},"categories":[20,1079],"tags":[],"class_list":{"0":"post-29697","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-aws","8":"category-cloudformation","9":"ja"},"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/29697","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/users\/205"}],"replies":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/comments?post=29697"}],"version-history":[{"count":8,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/29697\/revisions"}],"predecessor-version":[{"id":29717,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/29697\/revisions\/29717"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/media\/29719"}],"wp:attachment":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/media?parent=29697"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/categories?post=29697"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/tags?post=29697"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}