aws-cdk icon indicating copy to clipboard operation
aws-cdk copied to clipboard

(aws-grafana): Add "unifiedAlertingEnabled" property to CfnWorkspaceProps

Open danlz-propstep opened this issue 6 months ago • 3 comments

Describe the feature

Currently it is not possible to activate unified alerting when creating a new Grafana workspace.

Use Case

I want to activate the unified alerting when creating a new Grafana workspace.

Proposed Solution

Add unifiedAlertingEnabled?: boolean property to the CfnWorkspaceProps interface and all the other stuff that is needed.

Other Information

No response

Acknowledgements

  • [ ] I may be able to implement this feature request
  • [ ] This feature might incur a breaking change

AWS CDK Library version (aws-cdk-lib)

2.200.2

AWS CDK CLI version

2.1007.0

Environment details (OS name and version, etc.)

Win/Linux

danlz-propstep avatar Jun 12 '25 15:06 danlz-propstep

Hey @danlz-propstep, thank you for reaching out. The CfnWorkspace L1 construct is auto-generated from AWS::Grafana::Workspace which does not currently provide unifiedAlertingEnabled property on the spec for CDK to support this. From the documentation this appears to be currently only supported on AWS CLI and Amazon Managed Grafana API.

Marking this as P3 feature request. Additionally, I would suggest creating a issue on the CloudFormation roadmap repository similar to 1272.

ykethan avatar Jun 12 '25 16:06 ykethan

Taking into account that legacy alerting has been removed in Grafana 11, the only conclusion I can draw is that this will not be implemented. Am I right?

danlz-propstep avatar Jun 13 '25 07:06 danlz-propstep

@danlz-propstep The L1 construct should be updated once CloudFormation spec provides support for this property on the Graphana resource. I have created a issue with the CloudFormation team requesting support for this property. Do note, we cannot provide an ETA or have visibility into this implementation provided from CloudFormation.

As a workaround, you could utilize a custom resource with a API call to update the workspace. The following document provides an example with Amazon Managed Grafana API and AWS CLI. https://docs.aws.amazon.com/grafana/latest/userguide/AMG-configure-workspace.html#AMG-configuration-format

ykethan avatar Jun 13 '25 16:06 ykethan

+1

CraigLager avatar Jun 20 '25 08:06 CraigLager

You can also enable the property through the AWS console once the workspace has been created.

chriscerie avatar Sep 21 '25 22:09 chriscerie

You can also enable the property through the AWS console once the workspace has been created.

This kills the idea of using CDK.

danlz-propstep avatar Sep 22 '25 07:09 danlz-propstep

I’m with you. But it’s unlikely this will be prioritized given the property will be removed in v11+.

chriscerie avatar Sep 22 '25 14:09 chriscerie