AWS ALBã®ã«ã¼ãã£ã³ã°ã«èªè¨¼ãå ¥ããã500ã¨ã©ã¼ã«ãªã£ãæ
Webã¢ããªãéçºãã¦ããã¨ããã¹ãã¼ã¸ã³ã°ç°å¢ãä½ããã¨ã£ã¦å¤ãã¨æãã
ã§ãã¹ãã¼ã¸ã³ã°ã¯å¤é¨ããã¢ã¯ã»ã¹ãããããªãã®ã§ä½ãããå¶éããããã
æã¯nginx/apacheã§èªè¨¼ãã¦ã¿ãããã¯ã©ã¤ã¢ã³ã証ææ¸ãä½ã£ã¦é
å¸ããããã¢ã¯ã»ã¹å
IPã§ãã£ã«ã¿ãã¦ããã®ã ãã©ã»ã»ã»
ä»ã ã¨AWS ALB + Amazon Cognitoã§æ¥½ã«å®ç¾ã§ããï¼
Application Load Balancer 組み込み認証によりログインを簡略化 | Amazon Web Services ブログ
ä½ãããè¶
ç°¡åã
ãããããã³ã³ããæä½ã§ããããå°è¦æ¨¡éçºãªãç¡ææ ã§åååã¾ãã
ææ°æã
ã¨è¨å®ãã¦ãå®éã«åããã¦ã¿ãããã°ã¤ã³ç»é¢åºã¾ãããã¼
Cognitoã§ä½æããã¦ã¼ã¶ã§ãã°ã¤ã³ãã¦ã¿ãã¨ã»ã»ã»
?!?!
ãªãã¦ãã¨ã»ã»ã»ã
ããã³ãã¨ã³ããããã°ãåºã¦ããªãã
ALBã®ãã°ãåã£ã¦ã¿ãã¨ãããããã§æ¢ã¾ã£ã¦ãããã
ãã¦å°ã£ãã¨ããã¥ã¡ã³ããæ¼ã£ã¦ã¿ããããã£ã±ãããã¾ããã
Application Load Balancer のトラブルシューティング - Elastic Load Balancing
ããã¤ãã±ã¼ã¹ãæ¸ãã¦ãããã©ãããããALBãå¤é¨ã¨éä¿¡ã§ãã¦ããªãæ§åã
VPCã«ã¯internet gatewayã¨ã«ã¼ãã£ã³ã°ãè¨å®ãã¦ãããã©ãSecurityGroupã®ã¢ã¦ããã¦ã³ãè¨å®ãæ¼ãã¦ããã
ElasticBeanstalkã§çæããããã©ãªãã¤ã使ã£ã¦ããããã§ã443ã®ã«ã¼ãã£ã³ã°è¨å®ãä¸ååã ã£ãã®ãåå ã
ã¨ã¦ãåç´ãªè©±ãªãã ãã©ãããã³ã³ã½ã¡ã½ã¡ã§500ã¨ã©ã¼ã«ééããã¨é¢é£ãããªã¼ã