2021-07-01ãã1ã¶æéã®è¨äºä¸è¦§
Dockerã使ã£ãPySparkãåããç°å¢ãæ§ç¯ããæ¹æ³ããç´¹ä»ãã¾ãã
Sparkã®ç¹å¾´ãPySparkã®æ¦è¦ããã³ã¦ã¼ã¹ã±ã¼ã¹ããç´¹ä»ãã¾ãã
ããã®AWSã¢ã«ã¦ã³ãã®ç®¡çã¯ç§ã®æ å½ã§ã¯ç¡ããã§ããã©ãããã«ããEC2ã¤ã³ã¹ã¿ã³ã¹1å°ã ãã¯éç¨ä¿å®ããªãã¡ããããªããã§ããã AWS Systems Managerãªãå¯è½ã§ãï¼ ãã¤ããªããã¢ã¯ãã£ãã¼ã·ã§ã³ãå©ç¨ãã¾ãããã Systems Manager ã¯ãé常ã¯AWSâ¦
CIé¨ æ¿ï¨ã§ãã IPv4 CIDRã®è¿½å ãIPv6ã®æå¹åãå¿ è¦ãªVPCãä½ãæ©ä¼ããããã¾ããã CFnã§æ¸ãã®ã«å°ãè¦æ¦ãããããåå¿é²çã«è¨è¼ãã¾ãã ä½ããã®ã¯ä»¥ä¸ã§ãã VPC (IPv4 CIDRã®è¿½å ãIPv6ã®æå¹å) IPv4 追å CIDRã¯192.168.1.0/24 IPv6 CIDRã¯Amazâ¦
Amazon Connectã£ã¦ã¯ã©ã¦ãåã®ã¤ã±ã¦ãã³ã³ã¿ã¯ãã»ã³ã¿ã¼ãµã¼ãã¹ãªãã ããï¼ é話ã®ã¹ãã¼ã¿ã¹ç®¡çã¿ãããªãã¨ã£ã¦ã§ããããï¼ ããæããæ°æã¡ããããã¾ãã ããããAmazon Connectåä½ã§ã¯ã§ããªãã®ã§ãã ãããªè³ªåãåããã¨ãå°ãå¿è¦ããâ¦
ããã«ã¡ã¯ãã¢ããªã±ã¼ã·ã§ã³ãµã¼ãã¹é¨ã®æ²³éã§ãã ã¿ã¤ãã«ä»ãã«æ©ãã ã®ã§ãããCloudFormation(ä»¥ä¸ Cfn)ã® Parameters, Condition, AWS::NoValue ã使ç¨ãããã³ãã¬ã¼ãè¨æ³ã®ã話ã§ãã å°å ¥ ã¿ã¤ãã«ã§å®ç¾ããããã¨ãè¨è¼ãã¦ããã®ã§ããããâ¦
CIé¨ã®å¤å·ï¼ã¨ï¼ã§ãã æè¿ã¯ãããã«ç ç³ãããã¦é£ã¹ãã®ã好ãã§ãã ä»åã¯AWS Elastic Beanstalkï¼ä»¥ä¸ãElastic Beanstalkï¼ã«ã¦Amazon EC2ï¼ä»¥ä¸ãEC2ï¼ãèµ·åããªãï¼ã¨ããç¾è±¡ã«ééããã®ã§ããã®åå ã«ã¤ãã¦æ¸ãã¦ããããã¨æãã¾ãã ã¯ãâ¦
ããã«ã¡ã¯ãAWS CLIã好ããªç¦å³¶ã§ãã ã¯ãã㫠注æç¹ ã«ã¹ã¿ã ã¡ããªã¯ã¹ã®è¨å® ã¹ã±ã¼ãªã³ã°ããªã·ã¼ã®è¨å® è¨å®ãã¡ã¤ã«ã®ä½æ ã¹ã±ã¼ãªã³ã°ããªã·ã¼ã®è¨å® åä½ç¢ºèª çµããã« ã¯ããã« AutoScalingã¯ãè² è·ã«å¿ãã¦EC2ãã¹ã±ã¼ãªã³ã°ãããã¨ãå¯è½ã§â¦
ããã«ã¡ã¯ãAWS CLIã好ããªç¦å³¶ã§ãã ã¯ããã« ã¨ã©ã¼ã®è¦æ¹ 対å¦æ¹æ³ã®å㫠対å¦æ¹æ³ ãªã½ã¼ã¹ãçµãããå ´å ãªã½ã¼ã¹ãçµããªãå ´å çµããã« ã¯ããã« çªç¶ã§ãããAWSã触ã£ã¦ããæã«ã以ä¸ã®ãããªã¨ã©ã¼ã«ééãããã¨ã¯ããªãã§ããããã â»è¦ãâ¦
ããã«ã¡ã¯ãAWS CLIã好ããªç¦å³¶ã§ãã ã¯ããã« JSONã®è¦æ¹ åºå®ã®è¨è¿° Sid Effect Action Resource Condition çµããã« ã¯ããã« çªç¶ã§ãããIAMããªã·ã¼ã¯ãJSONã§è¡¨ç¤ºããã³è¨å®ãããã¨ãã§ãã¾ããã JSONã§æ¸ããã¦ããã¨ãªãã¨ãªãé£ããæããæ¬â¦
Cloud Automatorã§ã¸ã§ãã®å®è¡ã«å¤±æããå ´åã«ããã°ã®è©³ç´°ãã¼ã¸ã§ãçºçããåå ãã¨ã対å¦æ¹æ³ãã確èªã§ããããã«ãªãã¾ããã
July Tech Festa 2021 ã«ç»å£ãã¾ãããRDB ã®ã¤ã³ããã¯ã¹ã«ã¤ãã¦ç解ãæ·±ãã¦ãããããã¨ããå 容ã§åãã¾ããã
æ¦è¦ ä½æ ã«ä¾é ¼ãçºçããã®ã ããããæ¥åé£æºããã¼ ã±ã¼ã¹1.ã客æ§ç®¡è½ã®ãã¡ã¤ã³åã§åå解決ãã¦AWSç°å¢ã¸æ¥ç¶ããããå ´å ããããåå解決ã®ããã®ã¬ã³ã¼ãç»é²ãã¿ã¼ã³ (1-1) Elastic Load Balancing ã®CNAMEã¬ã³ã¼ãã®ç»é² ç»é²ããDNSã¬ã³ã¼ã â¦
ããã«ã¡ã¯ï¼ãµã¼ãã¼ã¯ã¼ã¯ã¹ã®æ¾äºã§ãï¼ AWSãéç¨ãã¦ããã¨IPã¢ãã¬ã¹ãå¶éãããæãå¤ãããã¨æãã¾ãã ãã®å ´åã»ãã¥ãªãã£ã°ã«ã¼ãã«å¤§éã«CIDRãããã¯ãè¨å®ããªãã¨ãããªãã§ãããã ãããªæã«ä½¿ãã大éã®ã»ãã¥ãªãã£ã°ã«ã¼ãã®ã«ã¼ã«â¦
ããã«ã¡ã¯ï¼ãµã¼ãã¼ã¯ã¼ã¯ã¹ã®æ¾äºã§ãï¼ ãµã¼ãã¼ã¬ã¹ã§APIãä½æã ãWEBãã¼ã¸ãããã¿ã³ãæ¼ãã¦APIãå®è¡ããã¦ã¿ããã¨ããè¨äºã«ãªãã¾ãã ãã®ãã³ãºãªã³ã¯ãVScodeã§EC2ã«RemortSSHããã¦å®æ½ãã¦ããã ããã¨ãæ³å®ãã¦ããã¾ãã AWSã§EC2ãèµ·â¦
ããã«ã¡ã¯ï¼ ã¯ã©ã¦ãã¤ã³ãã°ã¬ã¼ã·ã§ã³é¨ï¼CIé¨ï¼æè¡2課ã®åçºã§ãã ä»åã¯ãAWS Systems Managerãå©ç¨ãããã¨ã§è¸ã¿å°ãå©ç¨ããã«ãã¼ã«ã«ç°å¢ãããã©ã¤ãã¼ããªç°å¢ã«ããEC2ã«æ¥ç¶ãããã¨ãã§ãã¦ãã便å©ã ãªã...ãã¨æããã®ã§ãæ¥ç¶æºåãâ¦
ããã«ã¡ã¯ï¼ ã¯ã©ã¦ãã¤ã³ãã°ã¬ã¼ã·ã§ã³é¨ï¼CIé¨ï¼æè¡2課ã®åçºã§ãã ä»åã¯ãClient VPN ãèªåã®ã¿ãã¬ããã§ããAndroid端æ«ã¨PCã®Winsdows端æ«ããã¤ãªãã§ã¿ã¾ããã Android端æ«ããã ã¨AWSå ¬å¼ã®ã¯ã©ã¤ã¢ã³ãã¢ããªãå©ç¨ã§ããªãã®ã§ãGooglePlaâ¦
ããã«ã¡ã¯ãAWS CLIã好ããªç¦å³¶ã§ãã ä»åã¯ãç§ãåéããã¦ãããã¨ãããã°ã«è¨è¼ãããã¾ãã ã¯ããã« åè ãã°ã®åºåæ¹æ³ â ç£æ»ãã° RDS for MySQLã®å ´å Aurora for MySQLã®å ´å â¡å ¨è¬ãã° â¢ã¹ãã¼ã¯ã¨ãªãã° çµããã« ã¯ããã« çµè«ããä¼ãããâ¦
CIé¨ ä½ç«¹ã§ãã æ¬æ¥ã¯ AWS Budgets ã«é¢ãã権éã«ã¤ãã¦è¨è¼ãã¾ãã æ°ãã AWS Budgets ã®ã³ã³ã½ã¼ã«ããªãªã¼ã¹ ã¨ã©ã¼ã®çºçåå ã¾ã¨ã æ°ãã AWS Budgets ã®ã³ã³ã½ã¼ã«ããªãªã¼ã¹ AWS Budgets ã®ããã¸ã¡ã³ãã³ã³ã½ã¼ã«ãæ°ãããªããè¦èªæ§ãè¯ãâ¦
ã¯ããã« å ¨ä½å é¨å解説 ã¤ã³ã¹ãã¼ã«ã³ãã³ã RHEL 7.xã®å ´å RHEL 8.xã®å ´å Agentã®æå¹å ãããã« ã¯ããã« SRE2課ã®ç¯ ï¨ã§ãã ä»åã¯EC2ã¤ã³ã¹ã¿ã³ã¹ä½æã®éã«ä½¿ãUserdataã§SSM Agentãå ¥ããæ¹æ³ã«ã¤ãã¦æ¸ãã¦ãããã¨æãã¾ãã Amazon Linuxâ¦
CIé¨ ä½ç«¹ã§ãã æ¬æ¥ã¯ EC2 ã¤ã³ã¹ã¿ã³ã¹ã®ã¡ã³ããã³ã¹ï¼ã¤ãã³ãï¼éç¥ã«é¢ããã¡ãã£ã¨ãããªãã·ã§ã³ãã¤ãã³ãéç¥ã¡ã¼ã«ã«ã¿ã°ãå«ãããã«ã¤ãã¦è¨è¼ãã¾ããéç¥ã¡ã¼ã«ã«ã¿ã°ãä»ä¸ããããã¨ã§èª¿æ»ã®æéãåæ¸ããã¾ããæ¯éã¨ã EC2 ã¤ã³ã¹ã¿ã³â¦
ã¯ããã« ã¢ãããã¼ãå 容 AWS Step Functions ã«ã¦ Workflow Studio æ©è½ãæ°ç»å ´ AWS Lambda ã Amazon MQ for RabbitMQ ãã¤ãã³ãã½ã¼ã¹ã«ãµãã¼ã AWS AppConfig ã®è¨å®ãããã¡ã¤ã«ã§ç°ãªããã¼ã¸ã§ã³ã®æ¯è¼ãã§ããããã« AWS Application Migrationâ¦
CIé¨ ä½ç«¹ã§ãã æ¬æ¥ã¯ Aurora ã®ã¹ãã¬ã¼ã¸ã«ã¤ãã¦ãç¹ã«éç¨ç®ç·ã§ç¥ã£ã¦ããå¿ è¦ããã CloudWatch ã¡ããªã¯ã¹ã解説ãã¾ããä»å㯠FreeLocalStorage, VolumeBytesUsed, AuroraVolumeBytesLeftTotal ã«ã¤ãã¦è¨è¼ãã¦ãã¾ãã
ã¯ããã« ã¢ãããã¼ãå 容 â Amazon Athenaã§ãã©ã¡ã¼ã¿ã¼åããã¯ã¨ãªã使ç¨ã§ããããã« â¡Amplify Admin UIã§æ¢åã®Amazon Cognito ã¦ã¼ã¶ã¼ãã¼ã«ã¨IDãã¼ã«ã®ã¤ã³ãã¼ãããµãã¼ã ã¯ããã« ããã«ã¡ã¯ï¼ãµã¼ãã¼ã¯ã¼ã¯ã¹ã®å°æã§ãã ä»åã¯ã 7/7ã®ã¢â¦
ããã«ã¡ã¯ããµã¼ãã¹éçºèª²ã®ä¸¸å±±ã§ãã ä»åã¯Rubyã®å°ãã¿ã®ç´¹ä»ã§ãã Hashã®æ§é ãæ¤æ»ããããã®æ¹æ³ãããã ã¢ããªã±ã¼ã·ã§ã³ãæ¸ãã¦ããã¨ãHashã®æ§é ã確èªãã¦ããªãã¼ã·ã§ã³ãããå ´åãããã¨æãã¾ãã ä¾ãã°ãå¼æ°ã§æ¸¡ãããããHashã次â¦
CIé¨ã®éç°ã§ãã Secrets Managerãããã使ãã§ããããã Secrets Managerãå©ç¨ãããã¨ã§ããã¼ã¿ãã¼ã¹ã¸ã®æ¥ç¶æ å ±ãããã°ã©ã ã§ä¿æããã¨ãè¯ããªãã¢ããªã±ã¼ã·ã§ã³ã®ä¿å®æ§ãè¯ãåºæ¥ãä»ãèªè¨¼æ å ±ã®å®æçãªæ´æ°ãªã©ãè¡ããã¨ãåºæ¥ã便å©ãªâ¦
ã¯ããã« ã¢ãããã¼ãå 容 â Amazon EKS ããã¼ã¸ããã¼ãã°ã«ã¼ãã§ãã¯ã¼ã«ã¼ãã¼ãã®ä¸¦åã¢ãããã¼ããå¯è½ã« â¡AWS Glue Studioã§ããã¼ã¿ãã¬ãã¥ã¼ã®ç¢ºèªãå¯è½ã« â¢AWS Elemental MediaPackageãã¡ã¿ãã¼ã¿ã»ãã¹ã¹ã«ã¼æ©è½ãæ¡å¼µ â£AWS Launch Wizardâ¦
ã¯ããã« ã¢ãããã¼ãå 容 â AWS Amplifyã§ãã«ã¹ã¿ãã¯CI/CDæ©è½ã追å â¡AWS Amplify CLIã§Lambdaé¢æ°ã§ä½¿ç¨ãããç°å¢å¤æ°ã¨ã·ã¼ã¯ã¬ããã®ä¿åãã§ããããã« â¢AWS Glue DataBrewã§ã¸ã§ããããã¼ã¿ã»ãããAWS Glue Data Catalogã«ç´æ¥æ¸ãè¾¼ã¿ãã§ããâ¦
IAM Groupã«é¢é£ããæ å ±ãããã¹ãåºåããã æ§ã ãªäºæ ã§ãããã¹ããã¡ã¤ã«ã«åºåããããã¨ããã¾ãããã ä»åã¯ããããªæã«å½¹ç«ã¤æ å ±ãæä¾ãã¾ãã ãªããWindowsPowershellãå©ç¨ãã¾ãã
ããã«ã¡ã¯ãSRE3課ã®å³¶æã§ãã ä»åã¯WorkSpacesãSystems Managerã®ããã¼ã¸ãã¤ã³ã¹ã¿ã³ã¹ã¨ãã¦ç»é²ããæé ããç´¹ä»ãã¾ãã ãåç¥ã®éããSystems Managerã¯éç¨ç®¡çã¨ãã¦é常ã«å¼·åãªãµã¼ãã¹ã§ãã Systems Managerã®æ©è½ãå©ç¨ããã«ã¯ãSSM Ageâ¦
ããã«ã¡ã¯ãæè¡1課 é·å´ã§ãã 表é¡ã®éããããæ¹ã®ã¾ã¨ããè¨è¼ãã¾ãã Session Managerã¯ãSystems Manager(以ä¸SSM)ã®æ©è½ã®ä¸ã¤ã§ãã åæ å ¨ä½ã®æµã æé Account B(EC2ã¤ã³ã¹ã¿ã³ã¹ãããAWSã¢ã«ã¦ã³ã)ã®æºå IAMãã¼ã«ã®ä½æ EC2ã®ããªã·ã¼è¨â¦
CIé¨ ä½ç«¹ã§ãã éç¨ãã¦ãããéãéãEC2 ã¤ã³ã¹ã¿ã³ã¹ã®ã¡ã³ããã³ã¹ã¹ã±ã¸ã¥ã¼ã«ãä»æ¥ã¯ããã«ã¤ãã¦å°ãè¨è¼ãã¦ã¿ã¾ãã ã¯ããã« EC2 ã® Events ãã確èªãã PHD ãã確èªãã ã¡ã³ããã³ã¹éç¥ã Slack ã¸é£æºãã ã¤ãã³ãã®ç¨®é¡ã¨å¯¾å¿æ¹æ³ instâ¦
æ¦è¦ Amazon Connectãå©ç¨ããããã«ã管çæ©è½ç»é¢ãå©ç¨ãã¦è¨å®ãè¡ãã¾ããã è¨å®ããã«ããã£ã¦ããã«ã¼ãã£ã³ã°ãããã¡ã¤ã«ã¨ãã¥ã¼ã®é¢ä¿ã£ã¦ã©ããªã ã£ãï¼ãã¨ãããçºä¿¡ããã¨ãã®é»è©±çªå·ã£ã¦ã©ãç¹å®ãããã ã£ãï¼ãã¨è¿·ããã¨ã¯ããã¾ããâ¦
ã¯ããã« ã¢ãããã¼ãå 容 AWS Storage Gateway ã 大éªãªã¼ã¸ã§ã³ã§å©ç¨å¯è½ã« Amazon ECS ç¨ Bottlerocket AMI ãå©ç¨å¯è½ã« Amazon WorkSpaces ã¢ã³ããã¤ãã¯ã©ã¤ã¢ã³ãã¢ããªã§ãã»ã«ããµã¼ãã¹ç®¡çæ©è½ãå©ç¨å¯è½ã« AWS Solutions Implementation ã« â¦
ããã«ã¡ã¯ãAWS CLIã好ããªç¦å³¶ã§ãã ã¯ããã« çµè« 注æç¹ â SCPé©ç¨åã®AWSã¢ã«ã¦ã³ãã対象 â¡å ¨AWSã¢ã«ã¦ã³ãã対象 SCPã®ããªã·ã¼ 解説 â èªåå²ãå½ã¦ãããªã㯠IPãæå¹ã«ããå ´åãEC2ãä½æãããªãå¶é èªåå²ãå½ã¦ãããªã㯠IPãç¡å¹ã«ããªãâ¦
CIé¨ ä½ç«¹ã§ãã æ¬æ¥ã¯ Google Chrome 㧠HAR ãåå¾ããæ¹æ³ãè¨è¼ãã¾ãã ã¯ããã« HAR ãã¡ã¤ã«ã®åå¾æ¹æ³ ãããããã¼ãã¼ã«ãèµ·åãã HAR ãã¡ã¤ã«è¨é²ã®åæºåãè¡ã HAR ã®ã¬ã³ã¼ãã£ã³ã°éå§å¾ãäºè±¡ãåç¾ããã HAR ãã¡ã¤ã«ããã¦ã³ãã¼ããâ¦
ã¯ããã« ã¢ãããã¼ãå 容 â AWS Firewall Managerã大éªãªã¼ã¸ã§ã³ã§å©ç¨å¯è½ã« â¡IAMããªã·ã¼ä½æä¸ã«IAM Access Analyzeræ©è½ã§ããªã·ã¼å ã®æ¡ä»¶ã®ãã§ãã¯ã追å â¢AWS System Managerã®Session Managerã³ã³ã½ã¼ã«ã§ããªã¼ããã¹ãæ¤ç´¢ããµãã¼ã â£Apache â¦