Skip to content

feat: Enable additional CloudFront real-time metrics - #162

Merged
Veronika Gnilitska (gberenice) merged 1 commit into
cloudposse:mainfrom
jwadolowski:feat/additional-cdn-metrics
May 17, 2026
Merged

Veronika Gnilitska (gberenice) merged 1 commit into
cloudposse:mainfrom
jwadolowski:feat/additional-cdn-metrics

Conversation

@jwadolowski

@jwadolowski Jakub Wądołowski (jwadolowski) commented May 15, 2026 •

Copy link
Copy Markdown
Contributor

what

Add additional_metrics_enabled variable (default: false for backwards compatibility) that provisions an aws_cloudfront_monitoring_subscription resource when enabled.

why

Not all CloudFront metrics are enabled by default. Some (4xx/5xx error rates by HTTP status code, origin latency, and cache hit rate) are hidden behind a monitoring subscription. This adds a convenient switch to enable them when needed.

The realtime_metrics_subscription_status value could have been derived from var.additional_metrics_enabled, but that would introduce an unexpected resource change across all existing deployments.

references

N/A

@gberenice

Copy link
Copy Markdown

/terratest

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gberenice
Veronika Gnilitska (gberenice) merged commit 1f0b374 into cloudposse:main May 17, 2026
32 checks passed
@mergify mergify Bot removed the triage Needs triage label May 17, 2026
@github-actions

Copy link
Copy Markdown

These changes were released in v1.7.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants