ããã«ã¡ã¯ãå¶æ¥æ¨é²èª²ã®å³¶æã§ãã
re:invent 2023ãã帰ã£ã¦ãã¾ããã
æå·®ãã±ãã¦ãããå¤ä¸ã®æéå
¨ãç ããªããªãç¶æ
ã«ãªã£ã¦ãã¾ãã
ä½å
æè¨ã¯å¤ªé½ã«å½ãããã¨ã§ãªã»ããããããããªã®ã§ããã°ããã¯æ©èµ·ãé å¼µãããã¨æãã¾ãã
re:invent æéã11/27 - 12/2ã¾ã§ã«å¤ãã®ã¢ãããã¼ããçºè¡¨ããã¾ããã
ä¸ã§ããAmazon Q ããã¬ãã¥ã¼ã§ãããçºè¡¨ãããããæ軽ã«çæAIãæ´»ç¨ã§ãããµã¼ãã¹ã®ç»å ´ã¯å人çã«è¡æçã§ããã
AWS ChatbotãããAmazon Qãå¼ã³åºããã¨ãã§ããããã«ãªã£ãã®ã§ãæ©é試ãããã¨æãã¾ãã
Amazon Q ã¯ç¾ç¶è±èªã®ã¿ãµãã¼ãããã¦ãã¾ããæ¥æ¬èªã¯ä»å¾ã«æå¾
ã§ããã
Amazon Qã¯ç¾ç¶ãã¬ãã¥ã¼æ®µéã®ãµã¼ãã¹ã§ããæ¬è¨äºã®æ稿æ¥ææç¹ã®æ
å ±ã§ãã®ã§åèç¨åº¦ã«ã覧ãã ããã
AWS Chatbot ã¨ã¯
Slack,Microsoft Teams, Amazon Chime ã¨é£æºãããã¨ã§ããã£ã³ãã«ããå¼ã³åºããã¨ãã§ãããã£ããããããµã¼ãã¹ã§ãã
AWS CLIã®å®è¡ããSecurityHubããã«ã¹ã¤ãã³ããªã©ãSlackãã£ã³ãã«ã«éç¥ãããã¨ãã§ãã¾ãã
ChatOps ã¨å¼ã°ããæ¦å¿µãå®ç¾ãããµã¼ãã¹ã§ãããã¾ãã
ChatOps ã¨ã¯?
ChatOps ã¨ã¯ã·ã¹ãã ãéç¨ããçµç¹ã§æ´»ç¨ããã¦ãããã£ããã«ã·ã¹ãã ãåå ãããéç¨ãã¦ããã¹ã¿ã¤ã«ãæãã¾ãã
ãã£ããã§ã·ã¹ãã éç¨è
ãåå ãã¦ãããã£ã³ãã«ã«éç¥ãæµããã¨ã§ãã·ã¼ã ã¬ã¹ã«å¯¾å¿ãå¯è½ã«ãªããã³ãã³ããå®è¡ãããã¨ã§
è¿
éãªé害対å¿ãªã©ãå¯è½ã«ãªãã¾ãã
ä¸æ¹ããã£ããã¯æµåæ§ãé常ã«é«ããã¼ã«ã®ãã課é¡ãæ¸ãçãã¦ããããã±ãã管çã·ã¹ãã ã®ãããªãã®ãåããã¦ä½¿ãå¿
è¦ãããã¾ãã
AWS Chatbotã¨Amazon Qã®é£æºã§ã§ãããã¨
Chatbotã¨Amazon Qãé£æºãããã¨ã§ã§ãããã¨ã¯ä»¥ä¸ã®éãã§ãã
1.AWSãµã¼ãã¹ã¸ã®è³ªå
AWSãµã¼ãã¹ã®è³ªåã¯ãAWS製åã«é¢ããä»æ§ã質åãããã¨ã§é¢é£ããä»æ§ãè¨è¼ããã¦ããããã¥ã¡ã³ããè¿ãã¦ããã¾ãã
2.AWSãªã½ã¼ã¹ã«é¢ãã質å
AWSãªã½ã¼ã¹ã«é¢ãã質åã¯ãChatbotãããã¢ã«ã¦ã³ãã«Resource Explorerãä½æãããã¨ã§ãã®ã¢ã«ã¦ã³ãå
ã«ãããªã½ã¼ã¹æ
å ±ãè¿ãã¦ãããæ©è½ã§ãã
Amazon QãResource Explorerãåç
§ããä¸è´ããæ
å ±ã®ãªã½ã¼ã¹ã®ä¸ä½5件ãè¿ãã¦ãããããã§ãã
ã¿ã°ããªã¼ã¸ã§ã³ããªã½ã¼ã¹ã¿ã¤ãã§ãã£ã«ã¿ãªã³ã°ãããããã¨ãã§ãã¾ãã
ããã¼ã¸ãã³ã³ã½ã¼ã«ã§ç¢ºèªããªãã¦ãããã®ã§æ¥½ã§ã¯ããã¾ããã
ã»ããã¢ãããã¦ã¿ã
AWS Chatbotã®ä½æ
Slack ã§ã»ããã¢ãããã¾ãã
AWS ã«ãã°ã¤ã³ããç¶æ ã§ä»¥ä¸ã®URLã«ã¢ã¯ã»ã¹ããã° Chatbotã³ã³ã½ã¼ã«ã¸é·ç§»ã§ãã¾ãã https://us-east-2.console.aws.amazon.com/chatbot/home?region=us-west-2#/home
[ã¯ã©ã¤ã¢ã³ããè¨å®] ãé¸æãã¾ãã
èªè¨¼ç»é¢ã¸ãªãã¤ã¬ã¯ãããã¾ãã[許å¯]ãæ¼ãã¦ãã ããã
ã¯ã¼ã¯ã¹ãã¼ã¹ã«èª¤ãããªããããã£ãã確èªãã¾ãããã
[è¨å®æ¸ã¿ã¯ã©ã¤ã¢ã³ã]ããSlackãé¸æãã[æ°ãããã£ãã«ãè¨å®]ãé¸æãã¾ãã
è¨å®ç»é¢ã§ãã
以ä¸ã®éããå
¥åãã¦ããã¾ããã
ä»åã®è¨å®ã§ã¯ãChatbotã«ããå¤æ´ã¯è¨±å®¹ããªãè¨å®ã¨ãªãã¾ãã
é ç® | å ¥åå¤ | åè |
---|---|---|
è¨å®å | ä»»æ | |
Slackãã£ãã«ID | ãã£ããããããåå ãããããã£ã³ãã«ID | Webã§ã¢ã¯ã»ã¹ããéã®URLæ«å°¾ããã£ã³ãã«IDã§ãã |
ãã¼ã«è¨å® | ãã£ãã«ãã¼ã« | å ¨ã¦ã®ãã£ãã«ã¡ã³ãã¼ãåã権éã使ç¨ããã |
ãã¼ã«å | ä»»æ | |
ããªã·ã¼ãã³ãã¬ã¼ã | Resource Exprorerã®ã¢ã¯ã»ã¹è¨±å¯, Amazon Qã®ã¢ã¯ã»ã¹è¨±å¯ |
|
ãã£ãã«ã¬ã¼ãã¬ã¼ã«ããªã·ã¼ | ReadOnlyAccess | |
SNSããã㯠| å°ç¨ã®SNS Topic | è¨å®ããªãã¨ãåé¡ããã¾ããã |
å
¥åãçµããã[è¨å®]ãæ¼ãã¦ãã ããã
æ£å¸¸ã«é£æºãã¦ãããã®ç¢ºèªã¯ã[ãã¹ãã¡ãã»ã¼ã¸ã®éä¿¡]ããè¡ããã¨ãã§ãã¾ãã
æ£å¸¸ã«é£æºã§ãã¦ããã¨ãé£æºãããã£ã³ãã«ã«æ稿ããã¾ãã
Resource Explorer ã®ã»ããã¢ãã
AWSãªã½ã¼ã¹ã«é¢ãã質å ã«åçã§ããããã«ããããã«ãResource Explorerãä½æãã¦ããã¾ãã
以ä¸ã®ãªã³ã¯ããResource Explorerã®ã³ã³ã½ã¼ã«ã«ã¢ã¯ã»ã¹å¯è½ã§ãã https://resource-explorer.console.aws.amazon.com/resource-explorer/home#/home
[Resource Explorer ã®ãªã³ã«ãã]ãé¸æãã¾ãã
ç»é¢ãé·ç§»ãããè¨å®å¤ãå
¥åãã¾ãã
ã¢ã°ãªã²ã¼ã¿ã¼ã¤ã³ããã¯ã¹ãä½æãã¦ãããã¨ã§ããã£ããããå
¨ã¦ã®ãªã¼ã¸ã§ã³ã®ãªã½ã¼ã¹ãæ¤ç´¢ã§ããããã«ãªãã¾ãã
ä½æãã¦ããã¾ãããã
ç¹ã«è¦ä»¶ããªããã°ãããã©ã«ããã¥ã¼ãä½æãã¦ãã ããã
試ãã¦ã¿ã
1.AWSãµã¼ãã¹ã¸ã®è³ªå
ã¾ãã¯ã1.AWSãµã¼ãã¹ã¸ã®è³ªåã試ãã¦ã¿ã¾ãã
質å㯠@aws 質å~
ã§è¡ãã¾ãã
ã¾ãã¯ãµã³ãã«ã«è¨è¼ã®ãã£ãæè¨ã§è³ªåãã¦ã¿ã¾ãã
Lambdaã®åæå®è¡ã«é¢ããåçã翻訳ãã¦ã¿ãçµæã¯æ¬¡ã®ã¨ããã§ãã
äºç´ãããåæå®è¡ - AWS Lambda Lambda é¢æ°ã«äºç´ãããåæå®è¡æ§ãè¨å®ãã¦ãå ¨ä½ã®å®¹éã使ãæããããå ´åã§ãé¢æ°ã確å®ã«å¼ã³åºããã¨ãã§ãã¾ããäºç´ãããåæå®è¡æ°ã¯ãLambda é¢æ°ã« 2 ã¤ã®å½±é¿ãä¸ãã¾ãã äºç´ãããåæå®è¡æ°ã¯ãç¹å®ã®ãªã¼ã¸ã§ã³ã® AWS ã¢ã«ã¦ã³ãã®å ¨ä½çãªå®¹éããå·®ãå¼ããã¾ãã Lambda é¢æ°ã«ã¯ã常ã«ãããèªä½ã®å¼ã³åºãã«ã®ã¿ä½¿ç¨ã§ããäºç´ãããåæå®è¡æ§ãããã¾ããäºç´ãããåæå®è¡æ°ã«ããããã®é¢æ°ã®åæå¼ã³åºãã®æ大æ°ãå¶éããã¾ããäºç´ãããåæå®è¡å¶éãè¶ ãã¦å°çããåæãªã¯ã¨ã¹ãã¯ãã¹ããããªã³ã° ã¨ã©ã¼ã§å¤±æãã¾ãã
ã»ããã¢ããæ¹æ³ãèããã®ã§ãããæ¦å¿µã®ãã¼ã¸ãè¿ã£ã¦ãã¾ããã
ã¨ã¯ããããã®ãã¼ã¸ãåèã«ãã©ãã¯ãããã§ãã
2.AWSãªã½ã¼ã¹ã«é¢ãã質å
ãã¡ããã¾ãã¯ãµã³ãã«ã«è¨è¼ã®ãã£ãæè¨ã§è³ªåãã¦ã¿ã¾ã
EC2ã®ãªã½ã¼ã¹æ
å ±ã5件è¿ã£ã¦ãã¾ããã
ã¬ã¹ãã³ã¹ã¯5件ã¾ã§ãã表示ã§ããªãããã§ããã
ãã£ã«ã¿ã¼ã®ãããããã¦ã³ãé¸æã§ããããã§ãããäºæãã¬ã¨ã©ã¼ã¨ãªã£ã¦ãã¾ãã¾ããã
Lambdaã§ã試ãã¦ã¿ã¾ããã
ãªã½ã¼ã¹ã«ã¯ãªã³ã¯ãè¨å®ããã¦ãããã¯ãªãã¯ããã¨å¯¾è±¡ãªã½ã¼ã¹ã®ããã¼ã¸ãã³ã³ã½ã¼ã«ãã¼ã¸ã¸é·ç§»ã§ãã¾ããã
æå¾ã«
ä»åãChatbotããæ軽ã«Amazon Qãæ´»ç¨ãã¦ã¿ã¾ããã
AWSã«é¢ããæ
å ±ããã¼ã ãã£ãããã¼ã«ã§ããªãæ軽ã«ã»ããã¢ããã§ããç¹ãããªãå¼·ã¿ã ã¨æãã¾ããã
ã»ããã¢ããèªä½ã¯10åç¨åº¦ã§ã§ããã¨æãã¾ãã
æ¥æ¬èªå¯¾å¿ã¨ãªã½ã¼ã¹æ¤ç´¢ã®ãã£ã«ã¿ã¼ã表示ããã件æ°ã®å¶å¾¡ãªã©ã¯ä»å¾ã®ã¢ãããã¼ãã«æå¾
ã§ããã
島æ è¼ (Shimamura Hikaru) è¨äºä¸è¦§ã¯ã³ãã©
æè¿ECSå¨ãããã£ããã¢ããä¸ã趣å³ã¯è»ã»ãã¤ã¯å
¨è¬ã
ä¸å¿ãAWS12å ã§ãã