[](https://badge.fury.io/js/cdk-common)
[](https://badge.fury.io/py/cdk-common)
[](https://github.com/neilkuan/cdk-common/actions/workflows/release.yml)



# Welcome to `cdk-common`
This Constructs Library will collection of useful `function` and `class` for AWS CDK.
## Install
```bash
Use the npm dist tag to opt in CDKv1 or CDKv2:
// for CDKv2
npm install cdk-common
```
### AWS Managed Policies `enum`
```python
import * as cdk from 'aws-cdk-lib';
import { AWSManagedPolicies } from 'cdk-common';
import { Construct } from 'constructs';
const app = new cdk.App();
const stack = new cdk.Stack(app, 'integ-default', { env });
export class IntegDefault extends Construct {
constructor(scope: Construct, id: string ) {
super(scope, id);
const role = new iam.Role(this, 'iamrole', {
assumedBy: new iam.ServicePrincipal('ec2.amazonaws.com'),
});
// Use this way.
role.addManagedPolicy(iam.ManagedPolicy.fromAwsManagedPolicyName(AWSManagedPolicies.AMAZON_SSM_MANAGED_INSTANCE_CORE));
// Not this way.
role.addManagedPolicy(iam.ManagedPolicy.fromAwsManagedPolicyName('AmazonSSMManagedInstanceCore'));
}
}
```
Raw data
{
"_id": null,
"home_page": "https://github.com/neilkuan/cdk-common.git",
"name": "cdk-common",
"maintainer": null,
"docs_url": null,
"requires_python": "~=3.9",
"maintainer_email": null,
"keywords": null,
"author": "Neil Kuan<guan840912@gmail.com>",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/53/63/4efa47f0322af804bd26795dbd340441c6063f1a20f7ad9e35c5a84d0f13/cdk_common-2.0.1267.tar.gz",
"platform": null,
"description": "[](https://badge.fury.io/js/cdk-common)\n[](https://badge.fury.io/py/cdk-common)\n[](https://github.com/neilkuan/cdk-common/actions/workflows/release.yml)\n\n\n\n\n\n# Welcome to `cdk-common`\n\nThis Constructs Library will collection of useful `function` and `class` for AWS CDK.\n\n## Install\n\n```bash\nUse the npm dist tag to opt in CDKv1 or CDKv2:\n\n// for CDKv2\nnpm install cdk-common\n```\n\n### AWS Managed Policies `enum`\n\n```python\nimport * as cdk from 'aws-cdk-lib';\nimport { AWSManagedPolicies } from 'cdk-common';\nimport { Construct } from 'constructs';\nconst app = new cdk.App();\n\nconst stack = new cdk.Stack(app, 'integ-default', { env });\n\nexport class IntegDefault extends Construct {\n constructor(scope: Construct, id: string ) {\n super(scope, id);\n\n const role = new iam.Role(this, 'iamrole', {\n assumedBy: new iam.ServicePrincipal('ec2.amazonaws.com'),\n });\n // Use this way.\n role.addManagedPolicy(iam.ManagedPolicy.fromAwsManagedPolicyName(AWSManagedPolicies.AMAZON_SSM_MANAGED_INSTANCE_CORE));\n\n // Not this way.\n role.addManagedPolicy(iam.ManagedPolicy.fromAwsManagedPolicyName('AmazonSSMManagedInstanceCore'));\n }\n}\n```\n",
"bugtrack_url": null,
"license": "Apache-2.0",
"summary": "Common AWS CDK librarys.",
"version": "2.0.1267",
"project_urls": {
"Homepage": "https://github.com/neilkuan/cdk-common.git",
"Source": "https://github.com/neilkuan/cdk-common.git"
},
"split_keywords": [],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "e735f1ecd44191ebcba0a397c583c5fb63dbe66846a8db0285ee2b4b2cdc543c",
"md5": "ad8043fc05cff7e1a70156656d60b717",
"sha256": "84df260e6f3994f2e63ad46ac89db4ca2b70f2655fb8838a3dc209b6fc3dd003"
},
"downloads": -1,
"filename": "cdk_common-2.0.1267-py3-none-any.whl",
"has_sig": false,
"md5_digest": "ad8043fc05cff7e1a70156656d60b717",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "~=3.9",
"size": 3995675,
"upload_time": "2025-09-02T00:17:37",
"upload_time_iso_8601": "2025-09-02T00:17:37.042248Z",
"url": "https://files.pythonhosted.org/packages/e7/35/f1ecd44191ebcba0a397c583c5fb63dbe66846a8db0285ee2b4b2cdc543c/cdk_common-2.0.1267-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "53634efa47f0322af804bd26795dbd340441c6063f1a20f7ad9e35c5a84d0f13",
"md5": "80f0d9844f679fbc35bfec7c4e57653c",
"sha256": "648b5db79d79c7640cc8d5dcaa21a43ce03da6014c23b39e567767bfc1ef68e1"
},
"downloads": -1,
"filename": "cdk_common-2.0.1267.tar.gz",
"has_sig": false,
"md5_digest": "80f0d9844f679fbc35bfec7c4e57653c",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "~=3.9",
"size": 3997541,
"upload_time": "2025-09-02T00:17:40",
"upload_time_iso_8601": "2025-09-02T00:17:40.543456Z",
"url": "https://files.pythonhosted.org/packages/53/63/4efa47f0322af804bd26795dbd340441c6063f1a20f7ad9e35c5a84d0f13/cdk_common-2.0.1267.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-09-02 00:17:40",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "neilkuan",
"github_project": "cdk-common",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "cdk-common"
}