@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.27.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1aad218d91a7210986398ad9a74714f3cc00867f37763e1603ca87c0e6814a7d |
|
MD5 | c7c0a2a0b8169a5141e3e9c97dfa4207 |
|
BLAKE2b-256 | 184bf5ce556a220c7b1cc4982f68ffd5ee390243c6f72801d79791f57bb6e0fb |
Close
Hashes for cdklabs.cdk_enterprise_iac-0.0.27-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7c7fc19839e3d68dffff580257957d4e8224ff6bfbf7721c351965b8d0ed70f |
|
MD5 | e38d0c52503b641220482ee321ac2923 |
|
BLAKE2b-256 | f1e221466c51f166055889f0ec5e8c54f786d4494abdfbc028f7d22e67eb36a4 |