@robhan-cdk-lib/aws_grafana
AWS Cloud Development Kit (CDK) constructs for Amazon Managed Grafana.
In aws-cdk-lib.aws_grafana, there currently only exist L1 constructs for Amazon Managed Grafana.
While helpful, they miss convenience like:
- proper parameter typing, e.g. enum values instead of strings
- simply referencing other constructs instead of e.g. ARN strings
Those features are implemented here.
Parameter constraints (string lengths, allowed patterns, array sizes, etc.) are validated by CloudFormation at deploy time.
The CDK maintainers explain that publishing your own package is "by far the strongest signal you can give to the CDK team that a feature should be included within the core aws-cdk packages".
This project aims to develop aws_grafana constructs to a maturity that can potentially be accepted to the CDK core.
It is not supported by AWS and is not endorsed by them. Please file issues in the GitHub repository if you find any.
Example use
import * as cdk from "aws-cdk-lib";
import { Construct } from "constructs";
import {
AccountAccessType,
AuthenticationProviders,
PermissionTypes,
Workspace,
} from "@robhan-cdk-lib/aws_grafana";
import { Role, ServicePrincipal } from "aws-cdk-lib/aws-iam";
export class AwsGrafanaCdkStack extends cdk.Stack {
constructor(scope: Construct, id: string, props?: cdk.StackProps) {
super(scope, id, props);
const grafanaRole = new Role(this, "GrafanaWorkspaceRole", {
assumedBy: new ServicePrincipal("grafana.amazonaws.com"),
description: "Role for Amazon Managed Grafana Workspace",
});
const workspace = new Workspace(this, "Workspace", {
accountAccessType: AccountAccessType.CURRENT_ACCOUNT,
authenticationProviders: [AuthenticationProviders.AWS_SSO],
permissionType: PermissionTypes.SERVICE_MANAGED,
role: grafanaRole,
});
}
}
License
MIT
Metadata
Release files for robhan-cdk-lib.aws-grafana 0.1.18
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| robhan_cdk_lib_aws_grafana-0.1.18.tar.gz | 97.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| robhan_cdk_lib_aws_grafana-0.1.18-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 193.0 kB
Release files / robhan_cdk_lib_aws_grafana-0.1.18.tar.gz
| Download URL | robhan_cdk_lib_aws_grafana-0.1.18.tar.gz |
|---|---|
| Size | 97.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8e029ea9c041343210fdd9ef19c48919f3afc2ca91e4a42d8a99cf206325454b
|
|
BLAKE2b-256 checksum How to use checksums |
5d41ea0740e730c83336a74de6af88f0a96377d83c7e974adff368e10180ab56
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.14.7
|
Release files / robhan_cdk_lib_aws_grafana-0.1.18-py3-none-any.whl
| Download URL | robhan_cdk_lib_aws_grafana-0.1.18-py3-none-any.whl |
|---|---|
| Size | 95.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a993b70e86a375a5e02a2c2498d9d3c2876b13625db8ae90fef5c5f3b9bb3979
|
|
BLAKE2b-256 checksum How to use checksums |
1b2bd86ade571c437f5d9679d54088f125f1a204d62727fde207eca0cde1c3ff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.14.7
|
Security for robhan-cdk-lib.aws-grafana 0.1.18
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.