{"id":29776,"date":"2025-12-04T08:57:50","date_gmt":"2025-12-03T23:57:50","guid":{"rendered":"https:\/\/www.skyarch.net\/blog\/?p=29776"},"modified":"2025-12-04T09:21:56","modified_gmt":"2025-12-04T00:21:56","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%ef%bc%88%e7%b6%9a","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%ef%bc%88%e7%b6%9a\/","title":{"rendered":"CloudFormation\u306e\u30c9\u30ea\u30d5\u30c8\u8a8d\u8b58\u5909\u66f4\u30bb\u30c3\u30c8\u3092\u4f7f\u3063\u3066\u307f\u305f\uff08\u7d9a\u7de8\uff09"},"content":{"rendered":"<h2>\u306f\u3058\u3081\u306b<\/h2>\n<p>\u524d\u56de\u3001<a href=\"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\/\">CloudFormation\u306e\u30c9\u30ea\u30d5\u30c8\u8a8d\u8b58\u5909\u66f4\u30bb\u30c3\u30c8\u3092\u4f7f\u3063\u3066\u307f\u305f<\/a>\u3068\u3044\u3046\u8a18\u4e8b\u3092\u66f8\u3044\u305f\u969b\u306b\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30b0\u30eb\u30fc\u30d7\u3092\u984c\u6750\u306b\u3057\u3066\u3044\u307e\u3057\u305f\u304c\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30b0\u30eb\u30fc\u30d7\u5185\u306e\u30eb\u30fc\u30eb\u306b\u3064\u3044\u3066\u306f\u8907\u6570\u306e\u69cb\u6210\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<ol>\n<li>\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30b0\u30eb\u30fc\u30d7\u672c\u4f53\u306e\u5b9a\u7fa9\u306e\u4e2d\u306b\u30eb\u30fc\u30eb\u3092\u66f8\u304f\u65b9\u6cd5<br \/>\n\uff08<code>AWS::EC2::SecurityGroup<\/code>\u5185\u306e<code>$.SecurityGroupIngress<\/code>\u306b\u8a18\u8ff0\uff09<\/li>\n<li>\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30b0\u30eb\u30fc\u30d7\u30eb\u30fc\u30eb\u3092\u500b\u5225\u306b\u30ea\u30bd\u30fc\u30b9\u3068\u3057\u3066\u5b9a\u7fa9\u3059\u308b\u65b9\u6cd5<br \/>\n\uff08<code>AWS::EC2::SecurityGroupIngress<\/code>\u3067\u30eb\u30fc\u30eb\u3092\u8a18\u8ff0\u3057\u3001\u9069\u7528\u5148\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30b0\u30eb\u30fc\u30d7\u3092<code>$.GroupId<\/code>\u3067\u6307\u5b9a\uff09<\/li>\n<\/ol>\n<p>\u524d\u56de\u306e\u8a18\u4e8b\u3067\u306f1\u306e\u65b9\u6cd5\u3092\u8a66\u3057\u307e\u3057\u305f\u306e\u3067\u3001\u4eca\u56de\u306f2\u306e\u65b9\u6cd5\u3067\u4f5c\u6210\u3057\u305f\u30ea\u30bd\u30fc\u30b9\u306b\u5bfe\u3057\u3066\u30c9\u30ea\u30d5\u30c8\u8a8d\u8b58\u5909\u66f4\u30bb\u30c3\u30c8\u304c\u3069\u306e\u3088\u3046\u306b\u4f5c\u7528\u3059\u308b\u306e\u304b\u8abf\u3079\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u76ee\u6b21\u306f\u3053\u3061\u3089\u3002<\/p>\n<ul>\n<li>\u30c6\u30b9\u30c8\u7528\u306e\u30ea\u30bd\u30fc\u30b9\u3092\u6e96\u5099\u3059\u308b<\/li>\n<li>\u69cb\u6210\u5909\u66f4<\/li>\n<li>\u69cb\u6210\u5909\u66f4\u304b\u3089\u306e\u30ed\u30fc\u30eb\u30d0\u30c3\u30af<\/li>\n<li>\u610f\u5730\u60aa\u306a\u69cb\u6210\u5909\u66f4<\/li>\n<li>\u610f\u5730\u60aa\u306a\u69cb\u6210\u5909\u66f4\u304b\u3089\u306e\u30ed\u30fc\u30eb\u30d0\u30c3\u30af<\/li>\n<li>\u307e\u3068\u3081<\/li>\n<\/ul>\n<h2>\u30c6\u30b9\u30c8\u7528\u30ea\u30bd\u30fc\u30b9\u3092\u6e96\u5099\u3059\u308b<\/h2>\n<p>\u524d\u56de\u306f\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30b0\u30eb\u30fc\u30d7\u306e\u4e2d\u306b\u30eb\u30fc\u30eb\u3092\u8a18\u8f09\u3057\u3066\u3044\u307e\u3057\u305f\u304c\u3001\u4eca\u56de\u306f<code>AWS::EC2::SecurityGroupIngress<\/code>\u3092\u4f7f\u7528\u3057\u3066\u3001\u30eb\u30fc\u30eb\u3092\u500b\u5225\u306b\u5b9a\u7fa9\u3057\u3066\u307f\u307e\u3059\u3002<br \/>\n\u4e0b\u8a18\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u3082\u3068\u306b\u3001CloudFormation\u3067\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    Type: AWS::EC2::SecurityGroupIngress\n    Properties:\n      GroupId:\n        Ref: SecurityGroup\n      IpProtocol: tcp\n      FromPort: 80\n      ToPort: 80\n      CidrIp:\n        Ref: RemoteCidr<\/code><\/pre>\n<p>\u4f5c\u6210\u3057\u305f\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30b0\u30eb\u30fc\u30d7\u3067\u3059\u304c\u3001\u524d\u56de\u3068\u898b\u305f\u76ee\u306f\u540c\u3058\u69cb\u6210\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u3061\u3089\u304c\u4eca\u56de\u4f5c\u6210\u3057\u305f\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30b0\u30eb\u30fc\u30d7\u3002<\/p>\n<img decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/12\/original-sg2.png\" alt=\"\" \/>\n<p>\u6bd4\u8f03\u7528\u306b\u3001\u524d\u56de\u4f5c\u6210\u3057\u305f\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30b0\u30eb\u30fc\u30d7\u3092\u518d\u63b2\u3057\u307e\u3059\u3002<br \/>\nID\u306f\u3082\u3061\u308d\u3093\u5909\u5316\u3059\u308b\u306e\u3067\u3059\u304c\u3001\u305d\u308c\u4ee5\u5916\u306f\u540c\u3058\u69cb\u6210\u306b\u306a\u3063\u3066\u3044\u308b\u3053\u3068\u304c\u898b\u3066\u53d6\u308c\u307e\u3059\u3002<\/p>\n<img decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/11\/original-sg.png\" alt=\"\" \/>\n<p>\u524d\u56de\u3068\u540c\u69d8\u3001\u4f5c\u6210\u3057\u305f\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30b0\u30eb\u30fc\u30d7\u3092\u30b3\u30f3\u30bd\u30fc\u30eb\u304b\u3089\u5909\u66f4\u3057\u3066\u3044\u304d\u307e\u3059\u3002<br \/>\n\u5909\u66f4\u30d1\u30bf\u30fc\u30f3\u3082\u524d\u56de\u3068\u5408\u308f\u305b\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<img decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/12\/modified-sg2.png\" alt=\"\" \/>\n<p>\u3084\u306f\u308a\u6bd4\u8f03\u7528\u3068\u3057\u3066\u3001\u524d\u56de\u306e\u3044\u3058\u3063\u305f\u69cb\u6210\u3082\u540c\u69d8\u306b\u8f09\u305b\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<img decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/11\/modified-sg.png\" alt=\"\" \/>\n<h2>\u69cb\u6210\u5909\u66f4<\/h2>\n<p>\u3055\u3066\u3001\u5909\u66f4\u30bb\u30c3\u30c8\u3092\u4f5c\u6210\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<br \/>\n\u66f4\u65b0\u7528\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306f\u4e0b\u8a18\u306e\u3088\u3046\u306b\u3057\u307e\u3057\u305f\u3002<br \/>\n<code>AWS::EC2::SecurityGroupIngress<\/code>\u304c\u3072\u3068\u3064\u5897\u3048\u305f\u69cb\u6210\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\nConditions: {}\nResources:\n  SecurityGroup:\n    Type: AWS::EC2::SecurityGroup\n    Properties:\n      GroupName: BLOG\n      GroupDescription: BLOG\n      VpcId:\n        Ref: VPCID\n  SecurityGroupIngress:\n    Type: AWS::EC2::SecurityGroupIngress\n    Properties:\n      GroupId:\n        Ref: SecurityGroup\n      IpProtocol: tcp\n      FromPort: 80\n      ToPort: 80\n      CidrIp:\n        Ref: RemoteCidr\n  SecurityGroupIngress2:\n    Type: AWS::EC2::SecurityGroupIngress\n    Properties:\n      GroupId:\n        Ref: SecurityGroup\n      IpProtocol: tcp\n      FromPort: 443\n      ToPort: 443\n      CidrIp:\n        Ref: RemoteCidr<\/code><\/pre>\n<p>\u4e0a\u8a18\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u3082\u3068\u306b\u4f5c\u6210\u3057\u305f\u30c9\u30ea\u30d5\u30c8\u8a8d\u8b58\u5909\u66f4\u30bb\u30c3\u30c8\u306ediff\u30d3\u30e5\u30fc\u306f\u3053\u306e\u3088\u3046\u306a\u611f\u3058\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<br \/>\n\u8ad6\u7406ID<code>SecurityGroupIngress2<\/code>\u306e\u8ffd\u52a0\u3068\u306a\u3063\u3066\u304a\u308a\u3001\u3082\u3068\u306e<code>SecurityGroup<\/code>\u306b\u5bfe\u3059\u308b\u5909\u66f4\u304c\u767a\u751f\u3057\u3066\u3044\u306a\u3044(\u203b)\u3053\u3068\u304b\u3089\u3001\u4eca\u56de\u624b\u52d5\u3067\u52a0\u3048\u305f\u5909\u66f4\u306f\u8a8d\u8b58\u3057\u3066\u304f\u308c\u307e\u305b\u3093\u3067\u3057\u305f\u3002<br \/>\n\uff08\u203b\uff1a\u5b9f\u969b\u306f\u5909\u308f\u308b\u3093\u3067\u3059\u3051\u3069\u306d...\uff09<\/p>\n<img decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/12\/changeset-diff-driftaware.png\" alt=\"\" \/>\n<p>\u901a\u5e38\u306e\u5909\u66f4\u30bb\u30c3\u30c8\u306ediff\u30d3\u30e5\u30fc\u3082\u793a\u3057\u3066\u304a\u304d\u307e\u3059\u3002<br \/>\n\u30c9\u30ea\u30d5\u30c8\u8a8d\u8b58\u5909\u66f4\u30bb\u30c3\u30c8\u3068\u5909\u308f\u308a\u306a\u3044\u3067\u3059\u3002<\/p>\n<img decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/12\/changeset-diff-normal.png\" alt=\"\" \/>\n<p>\u3068\u308a\u3042\u3048\u305a\u5909\u66f4\u30bb\u30c3\u30c8\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<br \/>\n\u66f4\u65b0\u5f8c\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30b0\u30eb\u30fc\u30d7\u306f\u3001\u4e88\u60f3\u901a\u308a\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<br \/>\n\u624b\u52d5\u3067\u5909\u66f4\u3057\u305f\u5185\u5bb9\u306f\u7dad\u6301\u3055\u308c\u3066\u3044\u307e\u3059\u306d\u3002<\/p>\n<img decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/12\/updated-sg2.png\" alt=\"\" \/>\n<h2>\u69cb\u6210\u5909\u66f4\u304b\u3089\u306e\u30ed\u30fc\u30eb\u30d0\u30c3\u30af<\/h2>\n<p>\u3053\u306e\u307e\u307e\u3067\u306f\u304a\u3082\u3057\u308d\u304f\u306a\u3044\u306e\u3067\u3082\u3046\u3061\u3087\u3063\u3068\u7d9a\u3051\u3066\u307f\u307e\u3059\u3002<br \/>\n\u5148\u307b\u3069\u5909\u66f4\u3057\u305f\u7d50\u679c\u306b\u5bfe\u3057\u3066\u3001\u300c\u5909\u66f4\u524d\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u4f7f\u7528\u3057\u3066\u30c9\u30ea\u30d5\u30c8\u8a8d\u8b58\u5909\u66f4\u30bb\u30c3\u30c8\u3092\u4f5c\u6210\u3057\u305f\u5834\u5408\u300d\u306b\u3069\u3046\u306a\u308b\u304b\u3092\u898b\u3066\u307f\u307e\u3057\u305f\u3002<br \/>\n\u7d50\u679c\u3068\u3057\u3066\u306f\u3084\u306f\u308a\u3001\u8ad6\u7406ID<code>SecurityGroup<\/code>\u305d\u306e\u3082\u306e\u306b\u5bfe\u3059\u308b\u5909\u66f4\u306f\u884c\u308f\u308c\u3066\u3044\u306a\u3044\u3053\u3068\u304b\u3089\u3001\u5358\u306b\u5148\u307b\u3069\u3068\u9006\u306e\u5909\u66f4\u30bb\u30c3\u30c8\u304c\u4f5c\u6210\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/12\/rollback-changeset-summary-driftaware.png\" alt=\"\" \/><br \/>\n<img decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/12\/rollback-changeset-diff-driftaware.png\" alt=\"\" \/><\/p>\n<p>\u7d50\u679c\u306f\u7701\u7565\u3057\u307e\u3059\u304c\u3001\u5909\u66f4\u30bb\u30c3\u30c8\u3092\u5b9f\u884c\u3057\u305f\u3068\u3053\u308d\u3001\u666e\u901a\u306b\u300cCloudFormation\u7684\u306b\u306f\u69cb\u6210\u5909\u66f4\u3001\u5229\u7528\u8005\u306e\u8996\u70b9\u3067\u306f\u30ed\u30fc\u30eb\u30d0\u30c3\u30af\u300d\u304c\u884c\u308f\u308c\u307e\u3057\u305f\u3002...\u306a\u3093\u304b\u6d88\u5316\u4e0d\u826f\u306a\u6c17\u304c\u3057\u307e\u3059\u306d...\u3002<\/p>\n<h2>\u610f\u5730\u60aa\u306a\u69cb\u6210\u5909\u66f4<\/h2>\n<p>\u6d88\u5316\u4e0d\u826f\u3092\u89e3\u6d88\u3059\u3079\u304f\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306a\u6d41\u308c\u3092\u8003\u3048\u3066\u307f\u307e\u3057\u305f\u3002\u3061\u3087\u3063\u3068\u610f\u5730\u60aa\u306a\u69cb\u6210\u5909\u66f4\u3067\u3059\u3002<br \/>\n2\u307e\u3067\u306f\u540c\u3058\u3067\u30013\u306e\u3068\u304d\u306bCloudFormation\u306f\u3069\u3046\u3044\u3046\u6319\u52d5\u3092\u793a\u3059\u306e\u304b\uff1f\u3068\u3044\u3046\u3068\u3053\u308d\u3092\u898b\u3066\u307f\u307e\u3059\u3002<\/p>\n<ol>\n<li>\u5f53\u521d\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3067\u521d\u671f\u30ea\u30bd\u30fc\u30b9\u3092\u69cb\u6210<\/li>\n<li>CloudFormation\u306e\u5916\u90e8\u3067\u69cb\u6210\u3092\u5909\u66f4<\/li>\n<li>\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u7d4c\u7531\u3067\u4e0b\u8a18\u306e\u5909\u66f4\u3092\u52a0\u3048\u308b<br \/>\n\u30fb\u8ad6\u7406ID<code>SecurityGroup<\/code>\u306b<code>$.SecurityGroupIngress<\/code>\u3092\u8ffd\u52a0\u3059\u308b<br \/>\n\u30fb\u30ea\u30bd\u30fc\u30b9\u5358\u4f4d\u3067\u306e\u8ffd\u52a0\u30fb\u524a\u9664\u306f\u306a\u3057<\/li>\n<\/ol>\n<p>3\u3067\u4e0e\u3048\u308b\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306f\u4e0b\u8a18\u306e\u5185\u5bb9\u3068\u3057\u307e\u3059\u3002<br \/>\n\u3082\u3068\u3082\u3068\u8ad6\u7406ID<code>SecurityGroupIngress<\/code>\u3068\u3057\u3066\u4f5c\u6210\u3055\u308c\u305f\u30eb\u30fc\u30eb\u304c\u30e9\u30a4\u30d6\u30ea\u30bd\u30fc\u30b9\u306e\u691c\u51fa\u6642\u306b<code>SecurityGroup<\/code>\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3068\u3057\u3066\u691c\u51fa\u3055\u308c\u3001\u305d\u3053\u306b\u3001\u8ad6\u7406ID<code>SecurityGroup<\/code>\u306b\u8ffd\u52a0\u3057\u305f<code>$.SecurityGroupIngress<\/code>\u306e\u30eb\u30fc\u30eb\u304c\u3001\u30b0\u30eb\u30fc\u30d7\u672c\u4f53\u306b\u53d6\u308a\u8fbc\u307e\u308c\u305f\u5143<code>SecurityGroupIngress<\/code>\u3068\u306e\u5dee\u5206\u3068\u3057\u3066\u691c\u77e5\u3055\u308c\u308b\u3053\u3068\u3092\u671f\u5f85\u3057\u3066\u306e\u5185\u5bb9\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: 443\n          ToPort: 443\n          CidrIp:\n            Ref: RemoteCidr\n  SecurityGroupIngress:\n    Type: AWS::EC2::SecurityGroupIngress\n    Properties:\n      GroupId:\n        Ref: SecurityGroup\n      IpProtocol: tcp\n      FromPort: 80\n      ToPort: 80\n      CidrIp:\n        Ref: RemoteCidr<\/code><\/pre>\n<p>\u5909\u66f4\u30bb\u30c3\u30c8\u306f\u3053\u3046\u306a\u308a\u307e\u3057\u305f\u3002<br \/>\n\u307e\u305a\u3001\u30b5\u30de\u30ea\u30fc\u306f\u3053\u3061\u3089\u3002<\/p>\n<img decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/12\/tricky-changeset-summary-driftaware.png\" alt=\"\" \/>\n<p>\u7d9a\u3044\u3066\u3001\u8ad6\u7406ID<code>SecurityGroup<\/code>\u306ediff\u304c\u3053\u3061\u3089\u3002<br \/>\n\u6b63\u76f4\u3001\u3053\u308c\u306f\u4e88\u60f3\u3057\u3066\u3044\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u5225\u30ea\u30bd\u30fc\u30b9\u3068\u3057\u3066\u69cb\u6210\u3057\u3066\u3044\u308b80\/tcp\u306e\u30a2\u30af\u30bb\u30b9\u8a31\u53ef\u304c\u8ad6\u7406ID<code>SecurityGroup<\/code>\u306b\u5dee\u5206\u3068\u3057\u3066\u7d44\u307f\u8fbc\u307e\u308c\u308b\u3068\u3053\u308d\u307e\u3067\u306f\u4e88\u60f3\u3057\u3066\u3044\u307e\u3057\u305f\u304c\u3001\u300c\u63d0\u6848\u3055\u308c\u3066\u3044\u308b\u30ea\u30bd\u30fc\u30b9\u306e\u72b6\u614b(diff\u306e\u53f3\u5074)\u300d\u3067\u306f\u305d\u306e\u30eb\u30fc\u30eb\u304c443\/tcp\u306e\u30a2\u30af\u30bb\u30b9\u8a31\u53ef\u306b\u7f6e\u304d\u63db\u3048\u3089\u308c\u308b\u3068\u601d\u3063\u3066\u3044\u305f\u3068\u3053\u308d\u300180\/tcp\u306e\u30eb\u30fc\u30eb\u304c\u7dad\u6301\u3055\u308c\u3066\u5dee\u5206\u306a\u3057\u3068\u8a8d\u8b58\u3055\u308c\u3066\u3044\u308b\u306e\u306f\u304a\u3069\u308d\u304d\u3067\u3059\u3002<\/p>\n<img decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/12\/tricky-changeset-diff-driftaware.png\" alt=\"\" \/>\n<p>\u5909\u66f4\u30bb\u30c3\u30c8\u3092\u5b9f\u884c\u3057\u305f\u7d50\u679c\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30b0\u30eb\u30fc\u30d7\u306f\u3053\u3046\u306a\u308a\u307e\u3057\u305f\u3002<br \/>\n...\u3061\u3087\u3063\u3068\u307e\u3063\u3066\u3001diff\u30d3\u30e5\u30fc\u3067\u306a\u304f\u306a\u308b\u3068\u3044\u3063\u3066\u3044\u305f\u30eb\u30fc\u30eb\u304c\u6b8b\u3063\u3066\u308b\uff1f\uff1f<\/p>\n<img decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/12\/tricky-updated-sg.png\" alt=\"\" \/>\n<h2>\u610f\u5730\u60aa\u306a\u69cb\u6210\u5909\u66f4\u304b\u3089\u306e\u30ed\u30fc\u30eb\u30d0\u30c3\u30af<\/h2>\n<p>\u76f4\u524d\u306e\u7d50\u679c\u306b\u306a\u3093\u3068\u306a\u304f\u91c8\u7136\u3068\u3057\u306a\u3044\u6c17\u6301\u3061\u3092\u304a\u3055\u3048\u3064\u3064\u3001\u5f53\u521d\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3067\u518d\u3073\u30ed\u30fc\u30eb\u30d0\u30c3\u30af\u3092\u304b\u3051\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u30c9\u30ea\u30d5\u30c8\u8a8d\u8b58\u5909\u66f4\u30bb\u30c3\u30c8\u306e\u30b5\u30de\u30ea\u30fc\u306f\u3053\u3061\u3089\u3002<br \/>\n\u76f4\u524d\u306e\u5909\u66f4\u30bb\u30c3\u30c8\u9069\u7528\u4ee5\u964d\u3001CloudFormation\u306e\u5916\u3067\u306e\u5909\u66f4\u3092\u884c\u3063\u3066\u3044\u306a\u3044\u306b\u3082\u304b\u304b\u308f\u3089\u305a\u3001\u30c9\u30ea\u30d5\u30c8\u30b9\u30c6\u30fc\u30bf\u30b9\u304c\u300c\u30c9\u30ea\u30d5\u30c8\u6e08\u307f\u300d\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u3044\u3084\u3001\u3042\u306a\u305f\u304c\u3084\u3063\u305f\u3093\u3067\u3059\u3088\uff1f\uff1f<\/p>\n<img decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/12\/tricky-rollback-changeset-summary-driftaware.png\" alt=\"\" \/>\n<p>\u7d9a\u3044\u3066diff\u306f\u3053\u3061\u3089\u3002<br \/>\n\u3048\u30fc\u3068\u3001diff\u306e\u53f3\u5074\u306b\u3082\u624b\u52d5\u30eb\u30fc\u30eb\u304c\u6b8b\u3063\u3066\u3044\u307e\u3059\u304c...\u3002<\/p>\n<img decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/12\/tricky-rollback-changeset-diff-driftaware.png\" alt=\"\" \/>\n<p>diff\u306e\u753b\u9762\u306b\u73fe\u308c\u305f\u300c\u30c9\u30ea\u30d5\u30c8\u3092\u8868\u793a\u300d\u3092\u62bc\u3057\u305f\u3068\u304d\u306e\u753b\u9762\u304c\u3053\u3061\u3089\u3002<br \/>\n\u624b\u52d5\u3067\u8ffd\u52a0\u3057\u305f1433\/tcp\u30683389\/tcp\u306e\u30eb\u30fc\u30eb\u306f\u4e00\u5fdc\u691c\u77e5\u3055\u308c\u3066\u3044\u307e\u3059\u3002<br \/>\n\u306b\u3057\u3066\u3082\u3001\u524a\u9664\u3067\u306f\u306a\u304f\u8ffd\u52a0\u3068\u3057\u3066\u8a8d\u8b58\u3055\u308c\u3066\u3044\u308b\u306e\u304c\u8b0e\u3067\u3059\u306d\u3002<\/p>\n<img decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/12\/tricky-rollback-changeset-driftdetail-driftaware.png\" alt=\"\" \/>\n<p>\u305d\u3057\u3066\u3001\u5909\u66f4\u30bb\u30c3\u30c8\u3092\u6d41\u3057\u305f\u5f8c\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30b0\u30eb\u30fc\u30d7\u304c\u3053\u3061\u3089\u3002<br \/>\n\u3042\u306e\u30fc\u3001\u30eb\u30fc\u30eb\u304c\u4e00\u3064\u3082\u6e1b\u3063\u3066\u3044\u306a\u3044\u3093\u3067\u3059\u304c...\u3002<\/p>\n<img decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/12\/tricky-updated-sg-1.png\" alt=\"\" \/>\n<p>\u5143\u306e\u72b6\u614b\u304c\u7dad\u6301\u3055\u308c\u3066\u3044\u306a\u3044\u3053\u3068\u304b\u3089\u3001\u3053\u308c\u4ee5\u4e0a\u3001\u66f4\u65b0\u306b\u4f34\u3046\u5909\u5316\u3092\u89b3\u6e2c\u3057\u3066\u3082\u7121\u610f\u5473\u306a\u3082\u306e\u3068\u306a\u308b\u305f\u3081\u3001\u4eca\u56de\u306e\u691c\u8a3c\u306f\u3053\u3053\u3067\u6253\u3061\u5207\u308b\u3053\u3068\u3068\u3057\u307e\u3057\u305f\u3002<\/p>\n<h2>\u307e\u3068\u3081\u306b\u304f\u3044\u3051\u3069\u307e\u3068\u3081<\/h2>\n<p>\u524d\u56de\u3092\u542b\u3081\u30012\u56de\u306b\u308f\u305f\u3063\u3066CloudFormation\u306e\u30c9\u30ea\u30d5\u30c8\u8a8d\u8b58\u5909\u66f4\u30bb\u30c3\u30c8\u3092\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\u304c\u3001\u3044\u304f\u3064\u304b\u6c17\u3065\u3044\u305f\u3053\u3068\u3092\u307e\u3068\u3081\u307e\u3059\u3002<\/p>\n<ol>\n<li>\u30c9\u30ea\u30d5\u30c8\u8a8d\u8b58\u5909\u66f4\u30bb\u30c3\u30c8\u306f\u5b9a\u7fa9\u306e\u5909\u5316\u306b\u52a0\u3048\u3001\u30e9\u30a4\u30d6\u306e\u30ea\u30bd\u30fc\u30b9\u72b6\u614b\u3082\u542b\u3081\u3066\u5909\u66f4\u3092\u3042\u3076\u308a\u3060\u3057\u3066\u304f\u308c\u308b<br \/>\n\u3053\u3061\u3089\u306f\u671f\u5f85\u3057\u305f\u901a\u308a\u306e\u6319\u52d5\u3067\u3057\u305f\u3002\u5909\u66f4\u3092\u30ea\u30bb\u30c3\u30c8\u3059\u308b\u3001\u3068\u3044\u3046\u610f\u5473\u3067\u306f\u975e\u5e38\u306b\u6709\u7528\u3067\u3059\u306d\u3002<\/li>\n<li>\u5b9a\u7fa9\u306e\u65b9\u6cd5\u304c\u8907\u6570\u5b58\u5728\u3059\u308b\u30ea\u30bd\u30fc\u30b9\u3067\u306f\u3001\u601d\u3063\u305f\u901a\u308a\u306e\u5dee\u5206\u3068\u306a\u3089\u306a\u3044\u3053\u3068\u304c\u3042\u308b<br \/>\n\u3053\u308c\u306f\u60f3\u5b9a\u901a\u308a\u306e\u90e8\u5206\u3068\u4e88\u60f3\u5916\u306e\u90e8\u5206\u304c\u6df7\u5728\u3057\u3066\u3044\u307e\u3057\u305f\u306d\u3002<br \/>\n\u3042\u308b\u30ea\u30bd\u30fc\u30b9\u306e\u5b9a\u7fa9\u65b9\u6cd5\u304c\u5358\u4e00\u3067\u3042\u308c\u3070\u6c17\u306b\u3059\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u304c\u3001\u4eca\u56de\u53d6\u308a\u4e0a\u3052\u305f\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30b0\u30eb\u30fc\u30d7\u306e\u3088\u3046\u306b\u3001\u5b9a\u7fa9\u65b9\u6cd5\u304c\u8907\u6570\u3042\u308b\u30ea\u30bd\u30fc\u30b9\u3092\u30c9\u30ea\u30d5\u30c8\u8a8d\u8b58\u5909\u66f4\u30bb\u30c3\u30c8\u3067\u7ba1\u7406\u3059\u308b\u5834\u5408\u306f\u8981\u6ce8\u610f\u3067\u3059\u3002<\/li>\n<\/ol>\n<p>\u3068\u306f\u3044\u3048\u3001\u4eca\u307e\u3067\u306f\u5b9a\u7fa9\u9593\u306e\u5dee\u5206\u3057\u304b\u898b\u3066\u304f\u308c\u306a\u304b\u3063\u305f\u3068\u3053\u308d\u306b\u30e9\u30a4\u30d6\u72b6\u614b\u3092\u52a0\u3048\u3066\u6bd4\u8f03\u3057\u3066\u304f\u308c\u308b\u306e\u306f\u5922\u304c\u5e83\u304c\u308a\u307e\u3059\u306d\u3002<br \/>\n\u307f\u306a\u3055\u3093\u3082\u3001\u305c\u3072\u3044\u308d\u3093\u306a\u4f7f\u3044\u65b9\u3092\u8a66\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\uff01<br \/>\n\u305d\u308c\u3067\u306f\u307e\u305f\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u306f\u3058\u3081\u306b \u524d\u56de\u3001CloudFormation\u306e\u30c9\u30ea\u30d5\u30c8\u8a8d\u8b58\u5909\u66f4\u30bb\u30c3\u30c8\u3092\u4f7f\u3063\u3066\u307f\u305f\u3068\u3044\u3046\u8a18\u4e8b\u3092\u66f8\u3044\u305f\u969b\u306b\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30b0\u30eb\u30fc\u30d7\u3092\u984c\u6750\u306b\u3057\u3066\u3044\u307e\u3057\u305f\u304c\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30b0\u30eb\u30fc\u30d7\u5185\u306e\u30eb\u30fc\u30eb\u306b\u3064\u3044\u3066\u306f\u8907\u6570\u306e\u69cb\u6210\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059\u3002 \u30bb\u30ad\u30e5&#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=29776","footnotes":""},"categories":[20,1079],"tags":[],"class_list":{"0":"post-29776","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\/29776","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=29776"}],"version-history":[{"count":14,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/29776\/revisions"}],"predecessor-version":[{"id":29807,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/29776\/revisions\/29807"}],"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=29776"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/categories?post=29776"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/tags?post=29776"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}