2022-11-01ãã1ã¶æéã®è¨äºä¸è¦§
ã³ã¼ãã¼ã好ããªæ¨è°·æ è¦ã§ãã ã¤ã³ãã¦ã³ãéä¿¡ãå¶éããããã«ã»ãã¥ãªãã£ã°ã«ã¼ãã®ã¤ã³ãã¦ã³ãã«ã¼ã«ãè¨å®ãããã¨ã¯ããããã¾ãããã¢ã¦ããã¦ã³ãã¯å¶éããªããã¨ãå¤ãã¨æãã¾ãã ããããä¼æ¥ã®ã»ãã¥ãªãã£åºæºãå³ãããã»ãã¥ãªãã£ã°â¦
æ½è±¡Classã¨ã¯ï¼æ½è±¡ã¡ã½ããã¨ã¯ï¼æ½è±¡ã¨ã¯ã©ã®ãããªæå³ããã¿ã¦ã¿ã¾ãããã
ãã¶ã¤ã³ãã¿ã¼ã³ãç解ããã«ããã£ã¦å¿ é æ¦å¿µã¨ãªããç¶æ¿ãã¨ããªã¼ãã¼ã©ã¤ãããç´¹ä»ãã¾ã
Classã¡ã³ãã¼ï¼å±æ§ãã¡ã½ããï¼ã«ã¢ã¯ã»ã¹ããéã«ããã®å¶å¾¡ãããããã®ã¢ã¯ã»ã¹ä¿®é£¾åã¨ãã¯ã©ã¹ããç´æ¥å¼ã³åºããã¡ã½ãããã¯ã©ã¹ã¡ã½ãããç´¹ä»ãã¾ãã
Pythonã§Classãå®ç¾©ããæ¹æ³ã¨ãClassã®å®ç¾©ã«ä½¿ç¨ããã__init__ã¨selfãã©ã®ãããªãã®ããç´¹ä»ãã¾ãã
ãªãã¸ã§ã¯ãæåããã°ã©ãã³ã°ã¨ããè³ã«ãã¾ãããã©ã®ãããªããã°ã©ãã³ã°ææ³ãè¦ã¦ã¿ã¾ããã
ãã¶ã¤ã³ãã¿ã¼ã³ã¨ã¯ä½ããç¨èªã®æå³ããã³ãªãå¦ã¶å¿ è¦ããããã«ã¤ãã¦è©±ãã¾ã
2022å¹´æ°åå ¥ç¤¾ã§ç¾å¨CS課ã®OJTãåãã¦ãã(ã)æ«å»£ã§ãã AWS WAFã§ãããã¯ããæ»æãä¸å®ã®æ¡ä»¶ã®å ãéç¥ãçºçããããã¨ããç®ç㧠調æ»ãæ¤è¨¼ããæ©ä¼ãããã¾ããã®ã§ããã°ã«ã¾ã¨ãã¾ãã æ¦è¦ æ¤è¨¼å 容 WAFã®ä½æ CloudWatch ã¢ã©ã¼ã ã®ä½æ CLIâ¦
CI2é¨ æè¡2課ã®å±±ï¨ã§ãã AWSãªã½ã¼ã¹ãè¨è¨ããéã«ä¸åº¦ã¯ç®ã«ãããã¨ããããã¿ã°ãã®è¨å®ã§ãããå¤ãã®AWSãªã½ã¼ã¹ã§ã¯ãªãã·ã§ã³ã¨ãã¦ã¿ã°ãä»ä¸ã§ããããã«ãªã£ã¦ãã¾ãã ä»åã¯AWSãªã½ã¼ã¹ã®ã¿ã°è¨è¨ã«ã¤ãã¦èãã¦ã¿ã¾ããã AWSãªã½ã¼ã¹ã«ãâ¦
ããã«ã¡ããããã°ãããCIé¨ã®ä½è¤ã§ãã re:invent 2022 ã«åå ãã¦ããããã©ã¹ãã¬ã¹ãããä¼ããã¾ãã ãã®è¨äºãæ¸ãã¦ããéä¸ã§ re:invent 2022 ä¸ã«çºè¡¨ããããã®ã§ã¯ç¡ããã¨ã«æ°ãã¤ããã®ã§ããããã£ãããªã®ã§å ¬éãã¾ããre:invent æ°åã§â¦
ããã«ã¡ã¯ãCIé¨ã®å³¶æã§ãã re:Invent2022éå¬ä¸ã§è²ã ãªã¢ãããã¼ããçºè¡¨ããã¦ãã¾ããã ä»åãç§ã¯ç¾å°ã§åå ãã¦ãã¾ããå¼ãç¶ãæ§ã ãªã¢ãããã¼ãã®çºè¡¨ã楽ãã¿ã§ãã AWSãæä¾ããMicrosoft Officeãã¤ã³ã¹ãã¼ã«ãããAMIãå©ç¨ã§ããã¢ãâ¦
ããã«ã¡ããããã°ãããCIé¨ã®ä½è¤ã§ãã ã©ã¹ãã¬ã¹ã§éå¬ããã¦ãã¾ã re:invent 2022 ã«åå ãã¦ãã¾ããã¡ãªã¿ã«2018年以æ¥2度ç®ã®åå ã§ãã ã»ãã·ã§ã³ã®ç©ºãæéãåºæ¥ã¦ AWS Certification Lounge ã«æ¥ã¦ãããããç°¡åã«ã©ããªå ´æãè¨äºãæ¸ãã¦â¦
ã«ã¹ã¿ãã¼ãµã¯ã»ã¹é¨ ä½ç«¹ã§ãã æ¬ããã°ã§ã¯ãAWS re:Invent 2022 ã® Amazon EC2 ã«é¢ããã¢ãããã¼ãããã£ã¨ã¾ã¨ãã¦ããããã¨æãã¾ããAmazon EC2 ã«é¢ããã¢ãããã¼ãã ããã¾ã¨ãã¦èªã¿ããæ¹ã«ããããã¨ãªã£ã¦ãã¾ãã
ããã«ã¡ã¯ï¼ ç¾å¨ããã¯ãã«ã«ãµãã¼ã課ã§OJTç ä¿®ä¸ã®æ¥é«ã§ãã CloudWatchã¯æ©è½ãå¤ãã¦æ··ä¹±ãã¦ãã¾ãæ¹ãå¤ãã¨æãã¾ãã ç§ããã®ä¸ã®ï¼äººã§ã(ç¬) ã§ãã®ã§ãæ¬è¨äºã§ã¯CloudWatch ã®ä»çµã®ä¸ã®1ã¤ã§ãããCloudWatch Metricsãã®æ¦å¿µã«ã¤ãã¦ã®ã¤â¦
ããã«ã¡ã¯ï¼ ãµã¼ãã¼ã¯ã¼ã¯ã¹ã®æ¾äºã§ãã ä»åã¯ãAWS IoT 証ææ¸çµç±ã§å®å ¨ã«ããã¤ã¹å ã«ããç»åãS3ã«ã¢ãããã¼ãããæ¹æ³ããç´¹ä»ãã¾ãã ä»åç´¹ä»ããæ¹æ³ã§ã¯ãAWS Credentialãããã¤ã¹ã«é ç½®ããªãã§AWSç°å¢ã«ç»åãéä¿¡ã§ããã®ã§å®å ¨ã§ãã â¦
ããã«ã¡ã¯ãæè¡èª²ã®å±±æ¬ã§ãã ç§ãçµãããå¬ã®æ¾ãã 空æ°ã«ãªã£ã¦ãã¾ãããã èæ¯ Amazon RDS for SQL Server 㧠SQL Server Reporting Services (SSRS) ãæå¹ã«ããæ¹æ³ã«ã¤ãã¦ãæ¤è¨ãã¦ãã¾ããã ããªã³ãã¬ADã®èªè¨¼æ å ±ã使ã£ã¦ãSSRS ãå©ç¨ãâ¦
ã¯ã©ã¦ãã¤ã³ãã°ã¬ã¼ã·ã§ã³2é¨ã®æ°´æ¬ã§ãã æè¿ã¯ããã¹ããããã¤ãã¼ã ã§ãã¦ãããã°ã©ã ã ã¨pytestãmockerã«ã¤ãã¦èª¿ã¹ã¤ã¤Slack-botãä½ã£ã¦ã¿ãããªãã¦ãã¨ããã£ãããã¦ã¾ããã ãã®ä¸ã§ãIaCãç¹ã«å¼ç¤¾ã§ãã使ãAWS CloudFormationï¼ä»¥ä¸ãClâ¦
ã«ã¹ã¿ãã¼ãµã¯ã»ã¹é¨ ä½ç«¹ã§ããæ¬æ¥ã®ããã°ã§ã¯ãAmazon RDS 㨠Aurora ã§2022å¹´ãã2023å¹´ä¸æ¬ã«å»æ¢ãããäºå®ã®ã¤ã³ã¹ã¿ã³ã¹ã¯ã©ã¹ã«ã¤ãã¦ã¾ã¨ãããã¦é ãã¾ãããå ãã¦ãRI ãéã¿ããå§ãã®ç§»è¡æ¹æ³ã«ã¤ãã¦ãè¨è¼ãã¦ããã¾ããå»æ¢äºå®ã®ã¤ã³ã¹â¦
ããã«ã¡ã¯ãã¢ããªã±ã¼ã·ã§ã³ãµã¼ãã¹é¨ ãã£ããããã¡ã³ããµã¼ãã¹2課ã®æ£®ç°ã§ãã å½è¨äºã§ã¯ Glue Studio Jupyter Notebook ã®æéã«ã¤ãã¦æ¸ãã¦ããã¾ãã ã¡ãã£ã¨è©¦ããã ãã®ã¤ããã ã£ãã®ã§ãããèãéãã¦ã¿ãã¨ã¨ãã§ããªãæéã«ãªã£ã¦ãã¾â¦
Cloud Automatorã§æä¾ãã¦ãããRDS: DBã¹ãããã·ã§ããããªã¼ã¸ã§ã³éã§ã³ãã¼ãã§å¾æ¥ã¯ã§ããªãã£ããæå·åãããã¹ãããã·ã§ããã®ã³ãã¼ãã§ããããã«ãªãã¾ããã ã¢ãããã¼ãã®æ¦è¦ ããã¾ã§Cloud Automatorã®ãRDS: DBã¹ãããã·ã§ããããªã¼â¦
ã³ã¼ã«ã»ã³ã¿ã¼ã§ã¯ããªãã¬ã¼ã¿ã¼ãå ¨å¡å¯¾å¿ä¸ã®å ´åã¯ã客æ§ã«ãã¥ã¼ï¼å¾ ã¡è¡åï¼ã§å¾ æ©ãã¦ããã ãããªãã¬ã¼ã¿ã¼ã®ç¶æ³ã«ãã£ã¦é çªã«å¯¾å¿ãããããªæ§æãä¸è¬çãã¨æãã¾ãã ãã ããå¾ æ©ãã¦ããã客æ§ãå¤ãããå ´åãé»è©±å£ã§é·æéãå¾ ããããâ¦
ã«ã¹ã¿ãã¼ãµã¯ã»ã¹é¨ ä½ç«¹ã§ãã IAM User ã« MFA ããã¤ã¹ãè¤æ°ç»é²ãå¯è½ã¨ãªã£ãã¢ãããã¼ãã®å½±é¿ã§ MFA å¼·å¶ã® IAM ããªã·ã¼ã«ä¿®æ£ãå¿ è¦ã¨ãªãã¾ãããYou need permissions ã¨ã©ã¼ãçºçãã¦ãå°ãã®å ´åæ¬ããã°ãåèã«ãªãã¨åãã¾ãã
ããã«ã¡ã¯ã æè¡èª²ã®å±±æ¬ã§ãã ç§ãæ·±ã¾ããããåå¬ã®æ§ç¸ã§ããã 11æ10æ¥ã«å¯å£«å±±ï¼åç®ï¼å¯å£«å®®ï¼ã¾ã§ã®è»éãå¬å£éè¡æ¢ãã«ãªãã¨èãã¦ãåºå¤åã«ãµã©ãã¨å¯å£«å±±ã«ç»ã£ã¦ãã¾ããã ãã¤ãã¹ï¼åº¦ã®å²ã¨å¯ãä¸ã§è¦ãæç¼ããããã¦é²æµ·ã«æåããâ¦
ããã«ã¡ã¯ã ã¢ããªã±ã¼ã·ã§ã³ãµã¼ãã¹é¨ã¤ã³ã¿ã¼ãã«ã¨ãã¥ã±ã¼ã·ã§ã³èª²ã§ä¿®è¡ä¸ï¼ç ä¿®ä¸ï¼ã®å¤§æµªã§ãã AWSã®rootã¢ã«ã¦ã³ããIAMã¦ã¼ã¶ã«ç´ã¥ããããMFAããã¤ã¹ããããã¾ã§ã®1ã¤ããæ大ã§8ã¤ã«åºãã£ãã¨ããã¢ãããã¼ããå ¬éããã¦ãã¾ããã AWSâ¦
ãã®ãã³Cloud Automatorã¯ãGoogle Cloudã¸ã®å¯¾å¿ãéå§ããVMã¤ã³ã¹ã¿ã³ã¹ãããã·ã³ã¤ã¡ã¼ã¸ãä½æãããCompute Engine: ãã·ã³ã¤ã¡ã¼ã¸ã®ä½æãã¢ã¯ã·ã§ã³ããªãªã¼ã¹ãã¾ããã
Amazon FSx ãã¡ã¤ã«ã·ã¹ãã ã®ããã¯ã¢ãããä½æããæ©è½ããCloud Automator ã«è¿½å ããã¾ããã æ¦è¦ Amazon FSx ã§ã¯æ¨æºã§ãã¡ã¤ã«ã·ã¹ãã ãèªåããã¯ã¢ããããæ©è½ãç¨æããã¦ãã¾ããããã¡ã¤ã«ã·ã¹ãã ãåé¤ããå ´åãèªåã§åå¾ããããã¯ã¢â¦
åãæ¥åãªãã¬ã¼ã¿ã¼ã®ä¸ã§åªå é åºãè¨å®ãã2段éã«æ¯ãåãã¦çä¿¡ãããè¨å®ãç´¹ä»ãã¾ãã è¦ä»¶ è¨å® ãã¥ã¼ ã³ã³ã¿ã¯ããã㼠顧客ãã¥ã¼ããã¼ å ¥é»æã®ã³ã³ã¿ã¯ãããã¼ ã«ã¼ãã£ã³ã°ãããã¡ã¤ã« T1ãªãã¬ã¼ã¿ã¼ç¨ T2ãªãã¬ã¼ã¿ã¼ç¨ åä½ã±ã¼ã¹ (1)â¦
ããã«ã¡ã¯ï¼ã¤ã¼ã´ãªã§ãã æ¬çªç°å¢ã®Amazon Route 53ã§å¤§ããªå¤æ´ä½æ¥ãè¡ãæã«ããã¯ã¢ãããåå¾ãã¦ãã¾ãã§ããããã ããä½æ¥ããã¾ãè¡ããªãã£ãå ´åãåãæ»ãæé ã¯ããã¾ãã§ããããã ããããæã«Amazon Route 53ã®ããã¯ã¢ãããåå¾ãã¦â¦
ããã«ã¡ã¯ï¼ã¤ã¼ã´ãªã§ãã DNSã«å¤§éã®ã¬ã³ã¼ãã追å ãããæã«ã¹ã¯ãªããåããããã³ãã³ãã§è¤æ°ã®ã¬ã³ã¼ãã追å ããããããã§ãããã ãã¡ãããAWSã®CLIã使ãã°ãAmazon Route 53 ã«ãªã½ã¼ã¹ã¬ã³ã¼ãã»ãããä½æãããã¨ãã§ãã¾ããã大éDNSâ¦
ããã«ã¡ã¯ããµã¼ãã¯ã¼ã¯ã¹DS1課ã®å岡ã§ãã æ¬è¨äºã§ã¯ãããã¯ã¼ã¯ãæ§ç¯ããä¸ã§å¦ãã åºç¤çãªç¥èãã¾ã¨ãã¦ã¿ã¾ããï¼ åãµã¼ãã¹ã®æ©è½ã«é¢ãã¦ç°¡åãªèª¬æã¨ä½¿ç¨ç¨éã«ã¤ãã¦èª¬æãã¾ãã ç§ãã¤ã¾ã¥ãããã¤ã³ããæ´çãã¦è¨äºã«ãã¾ããã ãããâ¦
AWS主å¬ã®DevDay Japanã§ããã«ãµã¼ãã¼ã¬ã¹æ§æã®ç¤¾å æ¥åã·ã¹ãã ã®1å¹´éã®éç¨å®ç¸¾ãçºè¡¨ãå®ä½é¨ãå ã«ããã±ã¼ã¹ã¹ã¿ãã£ãå ±æãã¾ãã
ããã«ã¡ã¯ãã¬ã¸ã§ãã好ãã22åã®å¹³æ¾ã§ãã ç¾å¨ããã¯ãµã課ã§ä¿®è¡ä¸ã®èº«ã§ãã Storage Gatewayã¤ãã¦èª¿ã¹ã¦ããããæ¦å¿µå«ããããã«ããã¨ããããã£ãã®ã§ãããã°ã«ãã¦ã¿ããã¨æããçãå·ãã¾ããã ãææããã«ãé¡ããããã¾ãããã ä»åå®â¦
ã¯ããã¾ãã¦ã10æã«ãµã¼ãã¼ã¯ã¼ã¯ã¹ã«å ¥ç¤¾ãã大浪ã§ãã ç¾å¨ã¯ASé¨IE課ã§ä¿®è¡ä¸ï¼ç ä¿®ä¸ï¼ã§ãã ç ä¿®ã¯å¤§å¤ã§ããããããªã«æ¥½ããã¨æã£ãç ä¿®ãã¯ããã¦ã§ãã ç ä¿®ã«ã¤ãã¦ã¯ä»åº¦ãµãã¯ã¯ã«æ¸ãã¦ã¿ããã¨æãã¾ãããä»åã¯AWSã®ãã¯ã¤ããã¼ãã¼â¦
CI2-1ã®æ¾ç°ã§ããããã«ã¡ã¯ã ä»åã¯ã¿ã°ãæ´»ç¨ããIAMã§ã®æ¨©éå¶å¾¡ã®ãã£ããããæ¹æ³ã¨ãè¨è¨ãã¦ã¿ãæã®åå¿ãæ¸ãã¦ããã¾ãã ããããã㨠ãã£ãããããã ä½è«çãªåå¿é²çãªä½ã EC2ã«å¯¾ãã権é AWS WAFã«å¯¾ãã権é CloudFrontã«å¯¾ãã権é â¦
ã¯ã©ã¦ãã¤ã³ãã°ã¬ã¼ã·ã§ã³é¨ã®æä¸ã§ãã Amazon RDS for SQL Serverã§SQL Server Reporting Services (SSRS)ãè¦ã¦ã¿ãã®ã§ãä»åã¯ãã®æé ãåå¿é²ã¨ãã¦æ®ãã¦ããããã¨æãã¾ãã åæ SQL Server Reporting Services (SSRS)ã¨ã¯ï¼ SSRSã使ç¨ã§ããâ¦
æ¥å¸¸çã«ã³ãã¥ãã±ã¼ã·ã§ã³ã«å©ç¨ãã¦ããSlackã§ãããã·ã¹ãã ãã¢ããªã±ã¼ã·ã§ã³ã¨ã®é£æºã容æã§ãã·ã¹ãã ã¤ãã³ãã®éç¥ãªã©ã«å©ç¨ãããã±ã¼ã¹ãå¤ãã®ã§ã¯ãªãã§ããããã è¨å®ã¯ç°¡åãªé¨é¡ã ã¨ã¯æãã¾ããããAPIçµç±ã§ãã£ããã¡ãã»ã¼ã¸ããã£â¦
Cloud Automatorã§RDS(Aurora)ã®DBã¯ã©ã¹ã¿ã¼ã¹ãããã·ã§ããããªã¼ã¸ã§ã³éã§ã³ãã¼ããæ©è½ã®æä¾ãéå§ãã¾ãã ãRDS(Aurora): DBã¯ã©ã¹ã¿ã¼ã¹ãããã·ã§ããããªã¼ã¸ã§ã³éã§ã³ãã¼ãã¢ã¯ã·ã§ã³ã§è§£æ±ºã§ããã㨠ããã¾ã§ Cloud Automator ã§ã¯RDSã®DBâ¦