I've been able to get TF to create a Network Load balancer etc and got it working.

Now I want to be able to access logs in my s3 bucket.

terraform plan completes and terraform apply also completes ok. Yet the access logs are not enabled in the NLB.

The code section is

  access_logs {
    bucket                        = "${var.tfstate_bucket_name}"
    prefix                        = "ELB-logs"
    enabled                       = true

There is no mention of the access logs in either the plan output or the apply output.

Versions are:

$ terraform version
Terraform v0.11.7
+ provider.aws v1.58.0
+ provider.template v2.0.0

Does this feature work and has anyone got some pointers suggestions at all please ?



Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.