{"id":23342,"date":"2022-12-22T10:30:46","date_gmt":"2022-12-22T01:30:46","guid":{"rendered":"https:\/\/www.skyarch.net\/blog\/?p=23342"},"modified":"2022-12-22T10:30:46","modified_gmt":"2022-12-22T01:30:46","slug":"awscloudformationstacksetsexecution-role-has-insufficient-sns-permissions-%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6","status":"publish","type":"post","link":"https:\/\/www.skyarch.net\/blog\/awscloudformationstacksetsexecution-role-has-insufficient-sns-permissions-%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6\/","title":{"rendered":"&#8220;AWSCloudFormationStackSetsExecution role has insufficient SNS permissions&#8221; \u306b\u3064\u3044\u3066"},"content":{"rendered":"<h1>\u6982\u8981<\/h1>\n<p>AWS Organizations \u3068 CloudFormation StackSets \u3092\u4f7f\u3044\u3001<br \/>\n\u7279\u5b9a\u306e OU (Organizational Unit) \u306b\u53c2\u52a0\u3057\u305f\u30e1\u30f3\u30d0\u30fc AWS \u30a2\u30ab\u30a6\u30f3\u30c8\u306b<br \/>\nCloudFormation Stack \u304c\u30c7\u30d7\u30ed\u30a4\u3055\u308c\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3042\u308b\u6642\u3001AWS \u30a2\u30ab\u30a6\u30f3\u30c8\u304c OU \u306b\u53c2\u52a0\u3057\u3066 Stack \u306e\u30c7\u30d7\u30ed\u30a4\u304c\u5b9f\u65bd\u3055\u308c\u308b\u306f\u305a\u3067\u3057\u305f\u304c<br \/>\nStackSets \u5074\u3067\u5bfe\u8c61\u306e\u30e1\u30f3\u30d0\u30fc\u30a2\u30ab\u30a6\u30f3\u30c8\u304c\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u3068\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002<br \/>\n(\u5c11\u3057\u53e4\u3044\u4e8b\u8c61\u3067\u30ad\u30e3\u30d7\u30c1\u30e3\u304c\u6b8b\u3063\u3066\u304a\u3089\u305a\u6050\u7e2e\u3067\u3059)<\/p>\n<pre>AWSCloudFormationStackSetsExecution role has insufficient SNS permissions\n<\/pre>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/12\/error.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-23343\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/12\/error.png\" alt=\"\" width=\"841\" height=\"561\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/12\/error.png 841w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/12\/error-300x200.png 300w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/12\/error-768x512.png 768w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/12\/error-728x486.png 728w\" sizes=\"auto, (max-width: 841px) 100vw, 841px\" \/><\/a>\n<p>\u3053\u3061\u3089\u306e\u30a8\u30e9\u30fc\u306b\u3064\u3044\u3066\u8abf\u67fb\u30fb\u5bfe\u51e6\u3057\u305f\u5185\u5bb9\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<h1>\u8abf\u67fb<\/h1>\n<p>\u5bfe\u8c61\u306e\u30e1\u30f3\u30d0\u30fc AWS \u30a2\u30ab\u30a6\u30f3\u30c8\u306e CloudTrail \u3067\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30ed\u30b0\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<pre>\n{\n    \"eventVersion\": \"1.08\",\n    \"userIdentity\": {\n        \"type\": \"AssumedRole\",\n        \"principalId\": \"AROAxxxx:xxxx\",\n        \"arn\": \"arn:aws:sts::111122223333:assumed-role\/stacksets-exec-xxxx\/xxxx\",\n        \"accountId\": \"111122223333\",\n        \"accessKeyId\": \"ASIAxxxx\",\n        \"sessionContext\": {\n            \"sessionIssuer\": {\n                \"type\": \"Role\",\n                \"principalId\": \"AROAxxxx\",\n                \"arn\": \"arn:aws:iam::111122223333:role\/stacksets-exec-xxxx\",\n                \"accountId\": \"111122223333\",\n                \"userName\": \"stacksets-exec-xxxx\"\n            },\n            \"webIdFederationData\": {},\n            \"attributes\": {\n                \"creationDate\": \"2022-02-02T02:53:46Z\",\n                \"mfaAuthenticated\": \"false\"\n            }\n        },\n        \"invokedBy\": \"cloudformation.amazonaws.com\"\n    },\n    \"eventTime\": \"2022-02-02T02:53:47Z\",\n    \"eventSource\": \"cloudformation.amazonaws.com\",\n    \"eventName\": \"CreateStack\",\n    \"awsRegion\": \"ap-northeast-1\",\n    \"sourceIPAddress\": \"cloudformation.amazonaws.com\",\n    \"userAgent\": \"cloudformation.amazonaws.com\",\n    \"errorCode\": \"ValidationException\",\n    \"errorMessage\": \"User: arn:aws:sts::111122223333:assumed-role\/stacksets-exec-xxxx\/xxxx is not authorized to perform the operation (Service: AmazonSNS; Status Code: 403; Error Code: AuthorizationError; Request ID: xxxx; Proxy: null)\",\n    \"requestParameters\": null,\n    \"responseElements\": null,\n    \"requestID\": \"xxxx\",\n    \"eventID\": \"xxxx\",\n    \"readOnly\": false,\n    \"eventType\": \"AwsApiCall\",\n    \"managementEvent\": true,\n    \"recipientAccountId\": \"111122223333\",\n    \"eventCategory\": \"Management\"\n}\n<\/pre>\n<p>CloudFormation StackSets \u304c\u3001Stack \u3092\u30c7\u30d7\u30ed\u30a4 (CreateStack) \u3057\u3088\u3046\u3068\u3057\u305f\u969b\u306b<br \/>\nSNS \u306e\u6a29\u9650\u4e0d\u8db3\u306b\u3088\u308b ValidationException \u304c\u767a\u751f\u3057\u305f\u3088\u3046\u306b\u898b\u3048\u307e\u3059\u3002<\/p>\n<p>AWS\u30b5\u30dd\u30fc\u30c8\u306b\u3082\u8abf\u67fb\u3044\u305f\u3060\u3044\u305f\u3068\u3053\u308d\u3001Stack \u3092\u30c7\u30d7\u30ed\u30a4\u3059\u308b\u70ba\u306e\u30ed\u30fc\u30eb (stacksets-exec-xxxx) \u306b<br \/>\nIAM \u30dd\u30ea\u30b7\u30fc\u3092\u30a2\u30bf\u30c3\u30c1\u3059\u308b\u307e\u3067\u6642\u9593\u304c\u304b\u304b\u3063\u305f\u3053\u3068\u306b\u3088\u308a\u4e0a\u8a18\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u305f\u3068\u306e\u3053\u3068\u3067\u3057\u305f\u3002<\/p>\n<h1>\u5bfe\u51e6<\/h1>\n<p>\u5bfe\u8c61\u306e\u30e1\u30f3\u30d0\u30fc AWS \u30a2\u30ab\u30a6\u30f3\u30c8\u3092 OU \u306b\u51fa\u3057\u5165\u308c\u3059\u308b\u3053\u3068\u3067 Stack \u30c7\u30d7\u30ed\u30a4\u3092\u518d\u5b9f\u884c\u3057\u3001\u30c7\u30d7\u30ed\u30a4\u6210\u529f\u3057\u307e\u3057\u305f\u3002<\/p>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/12\/response.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-23344\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/12\/response.png\" alt=\"\" width=\"841\" height=\"561\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/12\/response.png 841w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/12\/response-300x200.png 300w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/12\/response-768x512.png 768w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2022\/12\/response-728x486.png 728w\" sizes=\"auto, (max-width: 841px) 100vw, 841px\" \/><\/a>\n<p>\u30a8\u30e9\u30fc\u5185\u5bb9\u304b\u3089\u307e\u308c\u306b\u8d77\u3053\u308b\u30a8\u30e9\u30fc(\uff1d\u904b\u304c\u60aa\u304b\u3063\u305f\u3060\u3051)\u3068\u601d\u308f\u308c\u308b\u306e\u3067\u3001<br \/>\n\u3053\u3046\u3044\u3046\u5834\u5408\u306f\u3068\u308a\u3042\u3048\u305a\u518d\u5b9f\u884c\u3057\u3066\u3057\u307e\u3046\u306e\u304c\u826f\u3044\u304b\u306a\u3068\u601d\u3044\u307e\u3057\u305f\u3002<br \/>\n\u4ee5\u4e0a\u3067\u3059\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6982\u8981 AWS Organizations \u3068 CloudFormation StackSets \u3092\u4f7f\u3044\u3001 \u7279\u5b9a\u306e OU (Organizational Unit) \u306b\u53c2\u52a0\u3057\u305f\u30e1\u30f3\u30d0\u30fc AWS \u30a2\u30ab\u30a6\u30f3\u30c8\u306b CloudFo&#8230;<\/p>\n","protected":false},"author":60,"featured_media":23351,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_locale":"ja","_original_post":"https:\/\/www.skyarch.net\/blog\/?p=23342","footnotes":""},"categories":[20,1079],"tags":[102,542],"class_list":{"0":"post-23342","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-aws","8":"category-cloudformation","9":"tag-aws","10":"tag-aws-cloudformation","11":"ja"},"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/23342","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\/60"}],"replies":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/comments?post=23342"}],"version-history":[{"count":4,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/23342\/revisions"}],"predecessor-version":[{"id":23420,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/23342\/revisions\/23420"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/media\/23351"}],"wp:attachment":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/media?parent=23342"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/categories?post=23342"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/tags?post=23342"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}