feat(logs,tfacc): return logGroupClass on DescribeLogGroups; enable kms + logs#374
Merged
vieiralucas merged 1 commit intomainfrom Apr 14, 2026
Merged
feat(logs,tfacc): return logGroupClass on DescribeLogGroups; enable kms + logs#374vieiralucas merged 1 commit intomainfrom
vieiralucas merged 1 commit intomainfrom
Conversation
…ms + logs Real AWS CloudWatch Logs DescribeLogGroups always returns logGroupClass (STANDARD by default), and Terraform's aws_cloudwatch_log_group provider asserts on the value. Omitting it surfaced as 'expected STANDARD got ""' drift on every refresh in TestAccLogsGroup_basic. - LogGroup state struct now carries log_group_class (Option<String>). - CreateLogGroup captures the parameter, defaulting to STANDARD when the caller doesn't specify one. - DescribeLogGroups always emits the field. - Updated callers in fakecloud-eventbridge (auto-create log group on rule target delivery) and fakecloud-cloudformation (CFN provisioner) to populate the new field. New e2e test logs_describe_log_groups_returns_log_group_class. Adds kms + logs to the tfacc allow-list: - TestAccKMSKey_basic — passes against fakecloud out of the box - TestAccLogsGroup_basic — passes after the logGroupClass fix above
There was a problem hiding this comment.
1 issue found across 7 files
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="crates/fakecloud-cloudformation/src/resource_provisioner.rs">
<violation number="1" location="crates/fakecloud-cloudformation/src/resource_provisioner.rs:749">
P2: The CloudFormation provisioner hardcodes `log_group_class` to `"STANDARD"` instead of respecting the `LogGroupClass` property from the CloudFormation template.</violation>
</file>
Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.
| index_policies: Vec::new(), | ||
| transformer: None, | ||
| deletion_protection: false, | ||
| log_group_class: Some("STANDARD".to_string()), |
There was a problem hiding this comment.
P2: The CloudFormation provisioner hardcodes log_group_class to "STANDARD" instead of respecting the LogGroupClass property from the CloudFormation template.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At crates/fakecloud-cloudformation/src/resource_provisioner.rs, line 749:
<comment>The CloudFormation provisioner hardcodes `log_group_class` to `"STANDARD"` instead of respecting the `LogGroupClass` property from the CloudFormation template.</comment>
<file context>
@@ -746,6 +746,7 @@ impl ResourceProvisioner {
index_policies: Vec::new(),
transformer: None,
deletion_protection: false,
+ log_group_class: Some("STANDARD".to_string()),
};
</file context>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Batch 6 — adds KMS and CloudWatch Logs to the upstream Terraform acceptance harness.
CloudWatch Logs `logGroupClass` round-trip
Real AWS CloudWatch Logs `DescribeLogGroups` always returns `logGroupClass` (defaulting to `STANDARD`), and Terraform's `aws_cloudwatch_log_group` provider asserts on the value. Omitting it surfaced as `expected STANDARD got ""` drift on every refresh in `TestAccLogsGroup_basic`.
KMS
`TestAccKMSKey_basic` passes against fakecloud out of the box. No fakecloud-side changes needed.
Test plan
Summary by cubic
Return
logGroupClassfrom CloudWatch LogsDescribeLogGroups(defaultSTANDARD) to match AWS and stop Terraform drift; enable KMS and Logs in thefakecloud-tfaccharness.Bug Fixes
fakecloud-logs:DescribeLogGroupsnow always includeslogGroupClass(defaultSTANDARD);CreateLogGroupcaptures it; state trackslog_group_class.fakecloud-eventbridgeandfakecloud-cloudformationto setlog_group_class: STANDARDwhen auto-creating log groups.New Features
fakecloud-tfacc: allowlistedkmsandlogssuites to run (TestAccKMSKey_basic,TestAccLogsGroup_basic).Written for commit d25e6a2. Summary will update on new commits.