@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.43.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ab21a9bd95a6af731d30b7e2692efdac9d6684d17079595566b2b0544136145 |
|
MD5 | 75b2bbb1556c658e7b79c3ec39470f5c |
|
BLAKE2b-256 | 54da41be7115fe3d70d1bb9c3c153ed9372928fed2800db479bc2aeca62fc92b |
Close
Hashes for cdklabs.cdk_enterprise_iac-0.0.43-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 314b10a57c7ea4d4b61da126dfa7b93107bf2401b96da9b5ee5fa4ff2befa335 |
|
MD5 | 8b1064c000d4cfd48f25f37982b82ee0 |
|
BLAKE2b-256 | 4c756237950f23a680666842222963fc286c4bfddea0ca3a02874389b36b1e7c |