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
The logic used to compute local.attach_policy does not factor in the var.attach_access_log_delivery_policy variable, so if that is the only "attach" boolean set it will fail to create and attach a bucket policy.
✋ I have searched the open/closed issues and my issue is not listed.
Using workspaces on a fresh container in CircleCI with no caching.
I run into this error when creating a new bucket to be used solely for S3 access logs.
Expected behavior
I would expect the bucket to be created and to have a bucket policy attached that allows logging.s3.amazonaws.com to put objects, similar to this (but not exactly like):
The data "aws_iam_policy_document" "access_log_delivery" resource is created, but no data "aws_iam_policy_document" "combined" is created, nor is resource "aws_s3_bucket_policy" "this".
Terminal Output Screenshot(s)
Here is a copy/paste of the non-existent bucket policy. 😁
Additional context
This looks like it was just a simple oversight to include the variable in the logic from antonbabenko feature.
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has been open 30 days
with no activity. Remove stale label or comment or this issue will be closed in 10 days
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.
Description
The logic used to compute
local.attach_policy
does not factor in thevar.attach_access_log_delivery_policy
variable, so if that is the only "attach" boolean set it will fail to create and attach a bucket policy.Versions
Module version 3.15.0:
Terraform version:
and
Reproduction Code [Required]
Steps to reproduce the behavior:
Using workspaces on a fresh container in CircleCI with no caching.
I run into this error when creating a new bucket to be used solely for S3 access logs.
Expected behavior
I would expect the bucket to be created and to have a bucket policy attached that allows logging.s3.amazonaws.com to put objects, similar to this (but not exactly like):
Actual behavior
The
data "aws_iam_policy_document" "access_log_delivery"
resource is created, but nodata "aws_iam_policy_document" "combined"
is created, nor isresource "aws_s3_bucket_policy" "this"
.Terminal Output Screenshot(s)
Here is a copy/paste of the non-existent bucket policy. 😁
Additional context
This looks like it was just a simple oversight to include the variable in the logic from antonbabenko feature.
The text was updated successfully, but these errors were encountered: