- Newest
- Most votes
- Most comments
Looking at the CDK API reference, there are no L2 constructs available for AWS Managed Grafana, however L1 constructs are available. L1 constructs are designed to expect the same properties as using the AWS API directly. L2 constructs abstract another layer of implementation away from using the AWS API directly.
The L1 construct CfnWorkspace and it's associated properties CfnWorkspaceProps can be used to enable OpenSearch as a data source via the dataSources
property in CfnWorkspaceProps
. This only works if the IAM role in OpenSearch is configured properly to handle data from Managed Grafana and you are using CDK to create a new workspace in Managed Grafana.
If you would only like to update an existing workspace to add OpenSearch as a data source, you can use a CustomResource construct in CDK with the UpdateWorkspace API and the workspaceDataSources
property (should be fine to use despite the documentation saying otherwise).
Hope this helps!
Relevant content
- asked 8 months ago
- Accepted Answerasked a month ago
- AWS OFFICIALUpdated 10 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 4 months ago