Hello World

Be Happy!

AWS loadbalancer load save to S3


Step 1. Create s3 bucket, folder
https://console.aws.amazon.com/s3/

Step 2.
S3 -> click your bucket -> Permissions -> Bucket Policy -> Policy generator



arn:aws:s3:::bucket/prefix/AWSLogs/aws-account-id/*
Principal value is 027434742980 If your region is us-west-1

Select Actions is PutObject

The following table contains the account IDs to use in your bucket policy.
RegionRegion NameElastic Load Balancing Account ID
us-east-1 | US East (N. Virginia) | 127311923021
us-east-2 | US East (Ohio) | 033677994240
us-west-1 | US West (N. California) | 027434742980
us-west-2 | US West (Oregon) | 797873946194
ca-central-1 | Canada (Central) | 985666609251
eu-central-1 | EU (Frankfurt) | 054676820928
eu-west-1 | EU (Ireland) | 156460612806
eu-west-2 | EU (London) | 652711504416
eu-west-3 | EU (Paris) | 009996457667
eu-north-1 | EU (Stockholm) | 897822967062
ap-east-1 | Asia Pacific (Hong Kong) | 754344448648
ap-northeast-1 | Asia Pacific (Tokyo) | 582318560864
ap-northeast-2 | Asia Pacific (Seoul) | 600734575887
ap-northeast-3 | Asia Pacific (Osaka-Local) | 383597477331
ap-southeast-1 | Asia Pacific (Singapore) | 114774131450
ap-southeast-2 | Asia Pacific (Sydney) | 783225319266
ap-south-1 | Asia Pacific (Mumbai) | 718504428378
me-south-1 | Middle East (Bahrain) | 076674570225
sa-east-1 | South America (São Paulo) | 507241528517
us-gov-west-1* | AWS GovCloud (US-West) | 048591011584
us-gov-east-1* | AWS GovCloud (US-East) | 190560391635
cn-north-1* | China (Beijing) | 638102146993
cn-northwest-1* | China (Ningxia) | 037604701340


Step 3.
S3 -> Permissions -> Bucket Policy
Input generated json and save

Step 4.
EC2 -> loadbalance -> Description -> Attributes -> Configure Access Logs



https://us-west-1.console.aws.amazon.com/ec2/v2/home?region=us-west-1#LoadBalancers:sort=loadBalancerName



https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-access-logs.html
https://docs.aws.amazon.com/ko_kr/elasticloadbalancing/latest/application/load-balancer-access-logs.html

#aws (11)
List