@cdklabs/cdk-enterprise-iac
Project description
CDK Enterprise IaC
Utilites 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.23.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c17cf2d4729fea00637701547caac85bb9b424a18c2d6699a7d1b1f07d426766 |
|
MD5 | 5aa0468f01734c63892c44a74f9e89a4 |
|
BLAKE2b-256 | dbd23add5aa2cc54134a2bc1e2881ba609b16ffd7d6c639f5abc6d609e4f0f34 |
Close
Hashes for cdklabs.cdk_enterprise_iac-0.0.23-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f358c7c890def2a63f6d59db3d80fd3811be191fa61a1883e59623ba1a4f5df8 |
|
MD5 | 5f6f0705611cef0617a39a705cad86b4 |
|
BLAKE2b-256 | ad43a3d98094d4760e3dbede2eb8bf6cdef549ed81f56a1a5032dbb16adf513a |