I T E C T E D ϑ Ϩ ʔϜϫ ʔ Ϋ • طଘͷAWSڥ͕༏Εͨઃܭʹͳ͍ͬͯΔ͔Λݕূ͢Δͷʹ༗༻ͳϑϨʔ ϜϫʔΫ • AWSͷΤΩεύʔτ͕࡞ͨ͠Ұ࿈ͷ࣭Λར༻ͯ͠ɺطଘͷAWSڥ͕ ϕετϓϥΫςΟεʹԊ͍ͬͯΔ͔ΛݕূͰ͖Δ https://aws.amazon.com/jp/architecture/well-architected/
Λ C L O U D F R O N T ͷ Έ ͔ Β ʹ ੍ ݶ • CloudFrontͷ༻͢ΔIPΛશͯιʔεͱͯ͠ࢦఆ • CloudFrontͷ༻͢ΔIP͕Ճ͞ΕͨΒࣗಈతʹηΩϡϦςΟΛߋ৽ • AWS͕༻͢ΔIPϨϯδ͕ߋ৽͞ΕΔͱ௨͞ΕΔSNSͷτϐοΫʹ LambdaؔΛαϒεΫϥΠϒ arn:aws:sns:us-east-1:806199016981:AmazonIpSpaceChanged
O U D F R O N T ܦ ༝ Ͱ ৴ • ಈతɾ੩తͱCloudFrontܦ༝Ͱ৴ • ίϯςϯπ͝ͱʹΩϟογϡ࣌ؒΛࡉ͔͘ίϯτϩʔϧ • EC2Πϯελϯε͔Β৴͢Δը૾CSSʹΩϟογϡίϯτϩʔϧ ϔομΛ༩͢ΔΑ͏nginxΛઃఆ • EC2Πϯελϯε͔Βͷ৴gzipѹॖɻ(AmimotoͰ࠷ॳ͔ΒઃఆࡁΈ) • CloudFrontܦ༝ͷ߹ɺgzip_proxied any;ΛՃ