@cdklabs/cdk-enterprise-iac
Project description
CDK Enterprise IaC
Utilities for using CDK within enterprise constraints
Install
Typescript
npm install @cdklabs/cdk-enterprise-iac
Python
pip install cdklabs.cdk-enterprise-iac
Usage
Example for AddPermissionBoundary
in Typescript project.
import * as cdk from 'aws-cdk-lib';
import { MyStack } from '../lib/my-project-stack';
import { Aspects } from 'aws-cdk-lib';
import { AddPermissionBoundary } from '@cdklabs/cdk-enterprise-iac';
const app = new cdk.App();
new MyStack(app, 'MyStack');
Aspects.of(app).add(
new AddPermissionBoundary({
permissionsBoundaryPolicyName: 'MyPermissionBoundaryName',
instanceProfilePrefix: 'MY_PREFIX_', // optional, Defaults to ''
policyPrefix: 'MY_POLICY_PREFIX_', // optional, Defaults to ''
rolePrefix: 'MY_ROLE_PREFIX_', // optional, Defaults to ''
})
);
Example for AddPermissionBoundary
in Python project.
import aws_cdk as cdk
from cdklabs.cdk_enterprise_iac import AddPermissionBoundary
from test_py.test_py_stack import TestPyStack
app = cdk.App()
TestPyStack(app, "TestPyStack")
cdk.Aspects.of(app).add(AddPermissionBoundary(
permissions_boundary_policy_name="MyPermissionBoundaryName",
instance_profile_prefix="MY_PREFIX_", # optional, Defaults to ""
policy_prefix="MY_POLICY_PREFIX_", # optional, Defaults to ""
role_prefix="MY_ROLE_PREFIX_" # optional, Defaults to ""
))
app.synth()
Details in API.md
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for cdklabs.cdk-enterprise-iac-0.0.31.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 025667c3647dcde1c597b3f1b1572e0c113280a5b72d590e9bb4f168b0975d99 |
|
MD5 | 9943bca155ae45b3706394aff3e8756a |
|
BLAKE2b-256 | 326024c4dfcd29d6187d39beaeb89c7f64c83fb91bab46769b7bfa20f69eacc8 |
Close
Hashes for cdklabs.cdk_enterprise_iac-0.0.31-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a6ad744927008142f2727f104b9866422956a6708e33e8d53450ddb01950b2d |
|
MD5 | 817f866c970c7883be6bd81130a1751d |
|
BLAKE2b-256 | c405beb004ae61b427d66051a3dce82480e00c6be0ef78f3aa19e7b3a6551a85 |