You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
the creation of the s3 bucket lifecycle configuration for the access logs bucket does not take into consideration if the access logs bucket exists.
Steps to reproduce
Instantiate the module with the following configurations:
run a terraform plan in the appropriate directory, and receive this error
╷
│ Error: Invalid index
│
│ on .terraform/modules/lacework_aws_eks_audit_log/main.tf line 324, in resource "aws_s3_bucket_lifecycle_configuration" "log_bucket_lifecycle_config":
│ 324: bucket = aws_s3_bucket.log_bucket[0].id
│ ├────────────────
│ │ aws_s3_bucket.log_bucket is empty tuple
│
│ The given key does not identify an element in this collection value: the collection has no elements.
Screenshots
If applicable, add screenshots to help explain your problem.
Please complete the following information):
Terraform Version: Terraform v1.6.6
Module Version: 1.1.2
Run terraform version to find your Terraform version.
You can find the module version by running terraform providers or in your terraform configuration. If developing locally you can check the VERSION file in the project root directory.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Describe the bug
the creation of the s3 bucket lifecycle configuration for the access logs bucket does not take into consideration if the access logs bucket exists.
Steps to reproduce
Instantiate the module with the following configurations:
run a
terraform plan
in the appropriate directory, and receive this errorExpected behavior
The project should plan correctly. Ideally this line: https://github.com/lacework/terraform-aws-eks-audit-log/blob/main/main.tf#L323 checks if
bucket_logs_disabled
is set totrue
before attempting to create the bucket lifecycle policy.Screenshots
If applicable, add screenshots to help explain your problem.
Please complete the following information):
Run
terraform version
to find your Terraform version.You can find the module version by running
terraform providers
or in your terraform configuration. If developing locally you can check theVERSION
file in the project root directory.Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: