Using Console
Using CLI
<ENVIRONMENT_NAME>
with the name of your Elastic Beanstalk environment.Using Python
modify_load_balancer_attributes
method of the elbv2
client. Here is the code snippet for it:your-bucket-name
and your-prefix
with the S3 bucket name and prefix where you want to store the access logs.