-
Notifications
You must be signed in to change notification settings - Fork 9.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
provider/aws: Add Ability To Enable / Disable ALB AccessLogs #9290
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @jvasallo
Thanks for the PR and a huge thanks for your first contribution :)
1 small question inline but it's looking good!
Paul
@@ -292,7 +297,7 @@ func resourceAwsAlbUpdate(d *schema.ResourceData, meta interface{}) error { | |||
} else if len(logs) == 0 { | |||
attributes = append(attributes, &elbv2.LoadBalancerAttribute{ | |||
Key: aws.String("access_logs.s3.enabled"), | |||
Value: aws.String("false"), | |||
Value: aws.String(strconv.FormatBool(false)), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why change this to the formatting of a bool?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch, I think I was initially going to convert everything to be a aws.Bool
until I looked at the AWS SDK and noticed they wanted String types. Since a user will never be setting this, i'll go ahead and change this back!
- Disabled access logs by default - Enabled case to set value of s3.enabled
I have finished the code and I have tested it out in my local TF/AWS environment. It works for me! I did have a question about the default value for Working on updating the docs now. |
Added docs, and I just thought about it a bit more. By specifying |
Hi @jvasallo! Could we accomplish this without an explicit |
@jen20 do you mean if I were to remove the Issue #9279 I think was asking for an |
Anything holding this up? Just want to know before I jump onto the next issue! Thanks! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Hey all,
This is my first major swing at committing to Terraform, saw the issue below and I think this fixes it. Going to do some more testing on my end, but please provide feedback?
Related to #9279