Open agnasillo opened 5 months ago
Terraform Version & Prov:
AFT Version: 1.12.0 (Can be found in the AFT Management Account in the SSM Parameter /aft/config/aft/version)
/aft/config/aft/version
Terraform Version & Provider Versions Please provide the outputs of terraform version and terraform providers from within your AFT environment
terraform version
terraform providers
1.6.0
hashicorp/aws = 5.21.0
Bug Description S3 bucket aws-aft-logs-${ACCOUNT-ID}-${REGION} is created even if aft_feature_cloudtrail_data_events is set to false
aws-aft-logs-${ACCOUNT-ID}-${REGION}
aft_feature_cloudtrail_data_events
false
To Reproduce Steps to reproduce the behavior:
aws-ia/control_tower_account_factory/aws
aws-aft-logs-11111111111-us-east-1
Expected behavior Bucket should not be created and remain empty if user opts out of cloudtrail data events feature.
Related Logs N/A
Additional context N/A
@anasillo thank you for reporting this. I will create an internal backlog to address this.
Terraform Version & Prov:
AFT Version: 1.12.0 (Can be found in the AFT Management Account in the SSM Parameter
/aft/config/aft/version
)Terraform Version & Provider Versions Please provide the outputs of
terraform version
andterraform providers
from within your AFT environmentterraform version
terraform providers
Bug Description S3 bucket
aws-aft-logs-${ACCOUNT-ID}-${REGION}
is created even ifaft_feature_cloudtrail_data_events
is set tofalse
To Reproduce Steps to reproduce the behavior:
aft_feature_cloudtrail_data_events
asfalse
foraws-ia/control_tower_account_factory/aws
module.aws-aft-logs-${ACCOUNT-ID}-${REGION}
exists, e.g.aws-aft-logs-11111111111-us-east-1
is createdExpected behavior Bucket should not be created and remain empty if user opts out of cloudtrail data events feature.
Related Logs N/A
Additional context N/A