gpt4 book ai didi

amazon-web-services - 从 cloudformation 启用 ALB 的访问日志记录

转载 作者:行者123 更新时间:2023-12-03 07:10:32 25 4
gpt4 key购买 nike

我想为我的应用程序负载均衡器启用访问日志记录,在这里我找到了 how to 的进程:

但我想通过 cloudformation 实现同样的事情,结果发现只能通过 cloudformation 为 classic load balancer 启用访问日志记录

有没有办法为 ALB [elb v2] 实现相同的效果

最佳答案

是的。您可以使用 AWS::ElasticLoadBalancingV2::LoadBalancer Load Balancer Attribute 启用它们对于 NLB 和 ALB。

access_logs.s3.enabled - Indicates whether access logs are enabled. The value is true or false. The default is false.

access_logs.s3.bucket - The name of the S3 bucket for the access logs. This attribute is required if access logs are enabled. The bucket must exist in the same region as the load balancer and have a bucket policy that grants Elastic Load Balancing permissions to write to the bucket.

access_logs.s3.prefix - The prefix for the location in the S3 bucket for the access logs.

关于amazon-web-services - 从 cloudformation 启用 ALB 的访问日志记录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64639341/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com