{"id":29684,"date":"2025-11-21T13:39:11","date_gmt":"2025-11-21T04:39:11","guid":{"rendered":"https:\/\/www.skyarch.net\/blog\/?p=29684"},"modified":"2025-11-21T13:39:11","modified_gmt":"2025-11-21T04:39:11","slug":"%e3%80%90%e7%9f%ad%e7%af%87%e3%80%91aws%e3%83%90%e3%83%83%e3%82%af%e3%82%a2%e3%83%83%e3%83%97%e3%81%ae%e3%82%bf%e3%82%b0%e3%81%ab%e3%82%88%e3%82%8b%e3%83%aa%e3%82%bd%e3%83%bc%e3%82%b9%e5%89%b2","status":"publish","type":"post","link":"https:\/\/www.skyarch.net\/blog\/%e3%80%90%e7%9f%ad%e7%af%87%e3%80%91aws%e3%83%90%e3%83%83%e3%82%af%e3%82%a2%e3%83%83%e3%83%97%e3%81%ae%e3%82%bf%e3%82%b0%e3%81%ab%e3%82%88%e3%82%8b%e3%83%aa%e3%82%bd%e3%83%bc%e3%82%b9%e5%89%b2\/","title":{"rendered":"\u3010\u77ed\u7bc7\u3011AWS\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u306e\u30bf\u30b0\u306b\u3088\u308b\u30ea\u30bd\u30fc\u30b9\u5272\u308a\u5f53\u3066\u3067\u8efd\u304f\u306f\u307e\u3063\u305f"},"content":{"rendered":"<p>CloudFormation\u3001\u4fbf\u5229\u3067\u3059\u3088\u306d\u3002\u3082\u3061\u308d\u3093\u30b3\u30fc\u30c9\u5316\u3067\u304d\u308b\u306e\u3082\u826f\u3044\u70b9\u306a\u306e\u3067\u3059\u304c\u3001\u30ea\u30bd\u30fc\u30b9\u306e\u6d88\u3057\u5fd8\u308c\u304c\u9632\u3052\u308b\u70b9\u3082\u30b3\u30b9\u30c8\u9762\u306b\u304a\u3044\u3066\u306f\u3042\u308a\u304c\u305f\u3044\u3067\u3059\u3002<br \/>\n\u4eca\u56de\u306f\u3001AWS Backup\u3092\u4f7f\u7528\u3057\u305f\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u69cb\u6210\u3059\u308b\u969b\u306b<a href=\"https:\/\/docs.aws.amazon.com\/AWSCloudFormation\/latest\/TemplateReference\/aws-resource-backup-backupselection.html\"><code>AWS::Backup::BackupSelection<\/code>\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/a>\u3092\u8aad\u307f\u306a\u304c\u3089\u300c\u3042\u30fc\u3001\u3053\u3093\u306a\u611f\u3058\u3067\u3084\u308c\u3070\u3044\u3044\u306e\u306d\u300d\u3068\u305f\u304b\u3092\u304f\u304f\u3063\u3066\u3084\u3063\u3066\u307f\u305f\u3089\u3082\u306e\u306e\u898b\u4e8b\u306b\u30cf\u30de\u3063\u305f\u3001\u3068\u3044\u3046\u77ed\u7de8\u7269\u8a9e\u3067\u3059\u3002<\/p>\n<h1>\u3042\u3089\u3059\u3058<\/h1>\n<h2>\u3084\u308a\u305f\u304b\u3063\u305f\u3053\u3068<\/h2>\n<p>\u6587\u7ae0\u3067\u66f8\u304f\u3068\u9577\u304f\u306a\u308a\u305d\u3046\u306a\u306e\u3067\u7b87\u6761\u66f8\u304d\u3067\u307e\u3068\u3081\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<ul>\n<li>AWS Backup\u3092CloudFormation\u3067\u69cb\u6210\u3059\u308b<\/li>\n<li>\u4e0b\u8a18\u306e\u8981\u4ef6\u3092\u6e80\u305f\u3059\u3088\u3046\u306b\u5272\u308a\u5f53\u3066\u30ea\u30bd\u30fc\u30b9\u306e\u7d5e\u308a\u8fbc\u307f\u3092\u884c\u3046\n<ul>\n<li>\u30ea\u30bd\u30fc\u30b9\u30bf\u30a4\u30d7\u306b\u3088\u308b\u7d5e\u308a\u8fbc\u307f\u306f\u884c\u308f\u306a\u3044<\/li>\n<li>\u30bf\u30b0\u306b\u3088\u308b\u7d5e\u308a\u8fbc\u307f\u3092\u884c\u3046<\/li>\n<li>\u7d5e\u308a\u8fbc\u307f\u306b\u4f7f\u3046\u30bf\u30b0\u306f\u8907\u6570\u5229\u7528\u3057\u3001AND\u6761\u4ef6\u3067\u8a55\u4fa1\u3055\u305b\u308b<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>\u3069\u3046\u3059\u308b\u3079\u304d\u3060\u3063\u305f\u306e\u304b<\/h2>\n<p>\u3053\u3061\u3089\u3082\u540c\u3058\u3088\u3046\u306b\u7b87\u6761\u66f8\u304d\u3067\u307e\u3068\u3081\u307e\u3059\u3002<br \/>\n\u304a\u6025\u304e\u306e\u65b9\u306f\u3053\u3053\u307e\u3067\u304a\u8aad\u307f\u3044\u305f\u3060\u3051\u308c\u3070\u3060\u3044\u3058\u3087\u3046\u3076\u3067\u3059\u3002<\/p>\n<ul>\n<li>\u30ea\u30bd\u30fc\u30b9\u306e\u9078\u629e\u306f<code>AWS::Backup::BackupSelection<\/code>\u3067\u4f5c\u6210\u3059\u308b<\/li>\n<li>\u5272\u308a\u5f53\u3066\u30ea\u30bd\u30fc\u30b9\u306e\u7d5e\u308a\u8fbc\u307f\u306b\u3042\u305f\u308a\u3001\u8907\u6570\u306e\u30bf\u30b0\u3092AND\u6761\u4ef6\u3067\u8a55\u4fa1\u3057\u3064\u3064\u30ea\u30bd\u30fc\u30b9\u30bf\u30a4\u30d7\u306e\u7d5e\u308a\u8fbc\u307f\u3092\u884c\u308f\u306a\u3044\u5834\u5408\u306f\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306b\u69cb\u6210\u3059\u308b\n<ul>\n<li><code>$.BackupSelection.Conditions[]<\/code>\uff1a\u7d5e\u308a\u8fbc\u307f\u306b\u4f7f\u3046\u30bf\u30b0\u3092\u8907\u6570\u8a18\u8ff0\u3059\u308b<\/li>\n<li><code>$.BackupSelection.Resources[]<\/code>\uff1a\u552f\u4e00\u306e\u8981\u7d20\u3068\u3057\u3066<code>&quot;*&quot;<\/code>\u3092\u6307\u5b9a\u3059\u308b<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h1>\u672c\u7de8<\/h1>\n<p>\u3053\u3053\u304b\u3089\u306f\u5b9f\u969b\u306b\u30cf\u30de\u3063\u305f\u6d41\u308c\u3092\u307e\u3068\u3081\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<h2>1st\u30c8\u30e9\u30a4\uff1a<code>Conditions<\/code>\u306e\u307f\u3067\u30c8\u30e9\u30a4<\/h2>\n<p>\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u8aad\u3093\u3060\u3068\u3053\u308d\u3001<code>$.BackupSelection.Conditions<\/code>\u3068\u3044\u3046\u30a8\u30ec\u30e1\u30f3\u30c8\u304c\u3042\u308a\u307e\u3057\u305f\u3002\u3053\u308c\u3092\u4f7f\u3063\u3066\u307f\u307e\u3059\u3002<br \/>\n\u3053\u306e\u6642\u306f\u307e\u3060\u3001<code>Resources<\/code>\u3092\u4f7f\u3046\u3001\u3068\u3044\u3046\u601d\u8003\u306f\u3042\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u3002<\/p>\n<pre>\n\"BackupSelection\": {\n    \"Conditions\": {\n        \"StringEquals\": [\n            { \"ConditionKey\": \"AWSBackup\", \"ConditionValue\": \"TRUE\" },\n            { \"ConditionKey\": \"Environment\", \"ConditionValue\": { \"Ref\": \"Environment\" } },\n            { \"ConditionKey\": \"BackupCycle\", \"ConditionValue\": \"Daily\" }\n        ]\n    },\n}\n<\/pre>\n<p>\u8a72\u5f53\u90e8\u5206\u3092\u4e0a\u8a18\u306e\u69cb\u6210\u3067\u7d44\u3093\u3067\u6d41\u3057\u3066\u307f\u305f\u3068\u3053\u308d\u3001\u3053\u3093\u306a\u30a8\u30e9\u30fc\u304c\u8fd4\u3063\u3066\u304d\u307e\u3057\u305f\u3002<\/p>\n<pre><code>Invalid backup selection. Either &#039;ListOfTags&#039; or &#039;Resources&#039; section must be non-empty.<\/code><\/pre>\n<p>\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u66f0\u304f\u300c<code>ListOfTags<\/code>\u3082\u3057\u304f\u306f<code>Resources<\/code>\u3092\u8a2d\u5b9a\u3057\u306a\u3055\u3044\u300d\u3068\u306e\u3053\u3068\u3067\u3059\u3002<br \/>\n\u3067\u3082\u3001\u30ea\u30bd\u30fc\u30b9\u30bf\u30a4\u30d7\u306f\u6307\u5b9a\u3057\u305f\u304f\u306a\u3044\u3057\u3001<code>ListOfTags<\/code>\u306f<a href=\"https:\/\/docs.aws.amazon.com\/ja_jp\/aws-backup\/latest\/devguide\/API_BackupSelection.html#Backup-Type-BackupSelection-ListOfTags\">\u8907\u6570\u306e\u30bf\u30b0\u3092\u6307\u5b9a\u3057\u305f\u969b\u306bOR\u6761\u4ef6\u3067\u8a55\u4fa1\u3055\u308c\u308b<\/a>\u305f\u3081\u306b\u4f7f\u3048\u306a\u3044\u2026\u3002\u3044\u3063\u305f\u3093\u3001<code>Resources<\/code>\u3092\u4f75\u7528\u3059\u308b\u5f62\u3067\u7d44\u3093\u3067\u307f\u307e\u3059\u3002<\/p>\n<h2>2nd\u30c8\u30e9\u30a4\uff1a<code>Conditions<\/code>\u3068<code>Resources<\/code>\u3092\u4f75\u7528\u3001\u305f\u3060\u3057EC2\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3067\u7d5e\u308a\u8fbc\u307f<\/h2>\n<p>\u5f53\u521d\u306e\u76ee\u6a19\u304b\u3089\u306f\u3044\u3063\u305f\u3093\u9060\u3056\u304b\u308a\u307e\u3059\u304c\u3001<code>Resources<\/code>\u3092\u4f75\u7528\u3057\u3066\u307f\u307e\u3059\u3002\u5bfe\u8c61\u30ea\u30bd\u30fc\u30b9\u3068\u3057\u3066\u3001\u3059\u3079\u3066\u306eEC2\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u542b\u3080ARN\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<br \/>\n\u3053\u3061\u3089\u306f\u904e\u53bb\u306b\u5b9f\u7e3e\u304c\u3042\u308a\u307e\u3057\u305f\u306e\u3067\u3001\u554f\u984c\u306a\u304f\u69cb\u6210\u3067\u304d\u308b\u3060\u308d\u3046\u3001\u3068\u3044\u3046\u898b\u8fbc\u307f\u306f\u3042\u308a\u307e\u3057\u305f\u3002<\/p>\n<pre>\n\"BackupSelection\": {\n    \"Conditions\": {\n        \"StringEquals\": [\n            { \"ConditionKey\": \"AWSBackup\", \"ConditionValue\": \"TRUE\" },\n            { \"ConditionKey\": \"Environment\", \"ConditionValue\": { \"Ref\": \"Environment\" } },\n            { \"ConditionKey\": \"BackupCycle\", \"ConditionValue\": \"Daily\" }\n        ]\n    },\n    \"Resources\": [\n        { \"Fn::Sub\": \"arn:aws:ec2:${AWS::Region}:${AWS::AccountId}:instance\/*\" }\n    ]\n}\n<\/pre>\n<p>\u3053\u308c\u306f\u901a\u308a\u307e\u3057\u305f\u3002\u3068\u3044\u3046\u3053\u3068\u306f\u3001<code>Conditions<\/code>\u3068<code>Resources<\/code>\u3092\u4f75\u7528\u3059\u308b\u306e\u306f\u3042\u3063\u3066\u305d\u3046\u3067\u3059\u3002<br \/>\n\u3042\u3068\u306f\u3001<code>Resources<\/code>\u3092\u6307\u5b9a\u3057\u3064\u3064\u7d5e\u308a\u8fbc\u307e\u306a\u3044\u3053\u3068\u304c\u3067\u304d\u308c\u3070\u3044\u3044\u3093\u3067\u3059\u304c\u2026\u3002<\/p>\n<h2>3rd\u30c8\u30e9\u30a4\uff1a<code>Conditions<\/code>\u3068<code>Resources<\/code>\u3092\u4f75\u7528\u3057\u3064\u3064\u3001\u30ea\u30bd\u30fc\u30b9\u30bf\u30a4\u30d7\u306e\u7d5e\u308a\u8fbc\u307f\u3092\u884c\u308f\u306a\u3044<\/h2>\n<p>\u3044\u308d\u3044\u308d\u8abf\u3079\u3066\u3044\u305f\u3089\u3001\u3053\u3093\u306a<a href=\"https:\/\/docs.aws.amazon.com\/ja_jp\/aws-backup\/latest\/devguide\/assigning-resources-json.html#backup-resource-json\">\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/a>\u3092\u307f\u3064\u3051\u307e\u3057\u305f\u3002<\/p>\n<blockquote>\n<p>\u4f8b: \u30de\u30a4\u30a2\u30ab\u30a6\u30f3\u30c8\u5185\u306e\u3059\u3079\u3066\u306e\u30ea\u30bd\u30fc\u30b9\u3092\u9078\u629e\u3059\u308b<\/p>\n<\/blockquote>\n<p>\u305d\u3046\u305d\u3046\u3053\u308c\u3067\u3059\u3088\u3001\u81ea\u5206\u304c\u6b32\u3057\u304b\u3063\u305f\u306e\u306f(\u7b11)<br \/>\n\u65e9\u901f\u9069\u7528\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<pre>\n\"BackupSelection\": {\n    \"Conditions\": {\n        \"StringEquals\": [\n            { \"ConditionKey\": \"AWSBackup\", \"ConditionValue\": \"TRUE\" },\n            { \"ConditionKey\": \"Environment\", \"ConditionValue\": { \"Ref\": \"Environment\" } },\n            { \"ConditionKey\": \"BackupCycle\", \"ConditionValue\": \"Daily\" }\n        ]\n    },\n    \"Resources\": [ \"*\" ]\n}\n<\/pre>\n<p>\u3084\u3063\u3068\u671f\u5f85\u901a\u308a\u306e\u69cb\u6210\u304c\u3067\u304d\u307e\u3057\u305f\u3002<br \/>\n\u30b3\u30f3\u30bd\u30fc\u30eb\u304b\u3089\u898b\u3066\u3082\u3001\u3061\u3083\u3093\u3068\u6307\u5b9a\u3057\u305f\u69cb\u6210\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u306d\u3002<\/p>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/11\/backup-selection.png\"><img decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/11\/backup-selection.png\" alt=\"\" \/><\/a>\n<h2>\u9060\u56de\u308a\u3060\u3063\u305f\u3053\u3068\u306b\u6c17\u3065\u304f<\/h2>\n<p>\u3088\u304f\u3088\u304f\u8003\u3048\u305f\u3089\u3001\u3044\u3063\u305f\u3093\u30b3\u30f3\u30bd\u30fc\u30eb\u304b\u3089\u624b\u52d5\u8a2d\u5b9a\u3057\u3066\u305d\u306e\u7d50\u679c\u3092\u898b\u3066\u307f\u308c\u3070\u3044\u3044\u3093\u3058\u3083\u306a\u3044\u304b\u3068\u3044\u3046\u3053\u3068\u306b\u6c17\u304c\u3064\u3044\u305f\u306e\u3067\u3001\u3055\u3063\u305d\u304f\u5b9f\u8df5\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<p>\u8a2d\u5b9a\u4e2d\u306e\u30b3\u30f3\u30bd\u30fc\u30eb\u306f\u3053\u306e\u3088\u3046\u306a\u8a2d\u5b9a\u72b6\u614b\u3068\u3057\u307e\u3057\u305f\u3002<\/p>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/11\/console-resource-selection.png\"><img decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/11\/console-resource-selection.png\" alt=\"\" \/><\/a>\n<p>\u3067\u304d\u305f\u7d50\u679c\u306f...\u3053\u3061\u3089\uff01<\/p>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/11\/backup-selection-by-hand.png\"><img decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/11\/backup-selection-by-hand.png\" alt=\"\" \/><\/a>\n<p>\u300c\u3059\u3079\u3066\u306e\u30ea\u30bd\u30fc\u30b9\u30bf\u30a4\u30d7\u3092\u542b\u3081\u308b\u300d\u3092\u9078\u629e\u3059\u308b\u3068\u3001\u4f5c\u6210\u5f8c\u306e\u78ba\u8a8d\u753b\u9762\u3067\u306f\u3061\u3083\u3093\u3068\u300c<code>*<\/code>\u300d\u3063\u3066\u51fa\u3066\u307e\u3057\u305f\u306d\u3002<br \/>\n\u6700\u521d\u304b\u3089\u3084\u3063\u3066\u308c\u3070\u3088\u304b\u3063\u305f\u3067\u3059\u2026\u3002<\/p>\n<h1>\u3055\u3044\u3054\u306b<\/h1>\n<p>\u8a2d\u5b9a\u65b9\u6cd5\u304c\u4e00\u56de\u308f\u304b\u3063\u3066\u3057\u307e\u3048\u3070\u5358\u7d14\u306a\u8a71\u3067\u3059\u3057\u3001AWS\u306f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3082\u5145\u5b9f\u3057\u3066\u3044\u308b\u306e\u3067\u3069\u3053\u304b\u306b\u306f\u66f8\u3044\u3066\u3042\u308b\u3060\u308d\u3046\u3068\u601d\u3063\u3066\u3044\u307e\u3057\u305f\u304c\u3001\u305d\u306e\u60c5\u5831\u306b\u305f\u3069\u308a\u7740\u304f\u306e\u306b\u601d\u3063\u305f\u3088\u308a\u3082\u6642\u9593\u304c\u304b\u304b\u3063\u305f\u3001\u3068\u3044\u3046\u304a\u8a71\u3067\u3057\u305f\u3002<br \/>\n\u30b3\u30f3\u30bd\u30fc\u30eb\u306f\u975e\u5e38\u306b\u4fbf\u5229\u3067\u3059\u304c\u3001\u4e0d\u8981\u306a\u30ea\u30bd\u30fc\u30b9\u306e\u6d88\u3057\u5fd8\u308c\u3060\u3051\u306f\u304a\u5fd8\u308c\u306a\u304f\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CloudFormation\u3001\u4fbf\u5229\u3067\u3059\u3088\u306d\u3002\u3082\u3061\u308d\u3093\u30b3\u30fc\u30c9\u5316\u3067\u304d\u308b\u306e\u3082\u826f\u3044\u70b9\u306a\u306e\u3067\u3059\u304c\u3001\u30ea\u30bd\u30fc\u30b9\u306e\u6d88\u3057\u5fd8\u308c\u304c\u9632\u3052\u308b\u70b9\u3082\u30b3\u30b9\u30c8\u9762\u306b\u304a\u3044\u3066\u306f\u3042\u308a\u304c\u305f\u3044\u3067\u3059\u3002 \u4eca\u56de\u306f\u3001AWS Backup\u3092\u4f7f\u7528\u3057\u305f\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u69cb\u6210\u3059\u308b\u969b\u306bA&#8230;<\/p>\n","protected":false},"author":205,"featured_media":29690,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_locale":"ja","_original_post":"https:\/\/www.skyarch.net\/blog\/?p=29684","footnotes":""},"categories":[20,1079],"tags":[],"class_list":{"0":"post-29684","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\/29684","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=29684"}],"version-history":[{"count":6,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/29684\/revisions"}],"predecessor-version":[{"id":29694,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/29684\/revisions\/29694"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/media\/29690"}],"wp:attachment":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/media?parent=29684"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/categories?post=29684"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/tags?post=29684"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}