@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.16.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9accf244b75dfe91b168e8929ee976ac219cd58f9384486ee5056595afda6df |
|
MD5 | 916c4538cf88e09a160ec3400e04c71d |
|
BLAKE2b-256 | 6604fa53e28b4d1c8a5c2d6d554c78deeaa8dcd986f0a1f564a4239a1b33ebf1 |
Close
Hashes for cdklabs.cdk_enterprise_iac-0.0.16-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d304b4dac8f82382c889bf5b751498c0e89c9a8d65cfaf81e497183d986ed94 |
|
MD5 | bf26a083a0e4c6dfa6d2f6753fc6d0bd |
|
BLAKE2b-256 | c3fabc2eaef85e92d9e45d533f965775b7efa73041eefe130ea3ba7b23ac665b |