AWSを使ったトラッキングログ収集
View more presentations from Ryu Kobayashi.
スライドをアップするまでが勉強会です。
と、誰かが言ってたか知りませんが。
The short answer is "you can't". The long answer: HTTPS traffic is regular HTTP traffic encrypted using SSL and sent over TCP port 443. It is not possible to insert HTTP headers into HTTPS packets without decrypting the packets. Normally only the two endpoints can decrypt the packets. This can be accomplished in a load-balancing setup if the load balancer supports "SSL offloading" (also known as SSL acceleration). But ELB does not support SSL offloading.
if (strcmp(remote_ip, list[i]) == 0)を
if (strncmp(remote_ip, list[i], strlen(list[i])) == 0)として
RPAFproxy_ips 10.
# elb-create-lb test-lb --headers --listener "lb-port=80,instance-port=80,protocol=http" --listener "lb-port=443,instance-port=443,protocol=tcp" --availability-zones us-east-1b
# elb-register-instances-with-lb test-lb --instances i-AAAAAAAA
# elb-describe-lbs
# as-create-launch-config test-lc --image-id ami-TEST --instance-type m1.large
# as-create-auto-scaling-group test-sgroup --launch-configuration test-lc --availability-zones us-east-1b --min-size 1 --max-size 5 --load-balancers test-lb
# as-create-or-update-trigger test-trigger --auto-scaling-group test-sgroup --measure CPUUtilization --statistic Average --dimensions "AutoScalingGroupName=test-sgroup" --period 60 --lower-threshold 20 --upper-threshold 80 --lower-breach-increment=-1 --upper-breach-increment 1 --breach-duration 120
# as-describe-launch-configs
# as-describe-auto-scaling-groups
# as-describe-triggers test-sgroup
# ec2-bundle-vol -d /mnt --privatekey プライベートキー --cert 証明書 --user アカウント番号 --fstab /etc/fstab # ec2-upload-bundle --bucket バケット名 --manifest image.manifest.xml --access-key アクセスキー --secret-key シークレットキー
# ec2-describe-images -o self // 現在のAMI確認 # ec2-deregister AMI名 // AMIの削除
# ec2-register S3のパス/image.manifest.xml --name AMI_NAME // AMIの登録