Skip to main content

@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

cdklabs.cdk-enterprise-iac-0.0.39.tar.gz (67.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cdklabs.cdk_enterprise_iac-0.0.39-py3-none-any.whl (65.5 kB view details)

Uploaded Python 3

File details

Details for the file cdklabs.cdk-enterprise-iac-0.0.39.tar.gz.

File metadata

File hashes

Hashes for cdklabs.cdk-enterprise-iac-0.0.39.tar.gz
Algorithm Hash digest
SHA256 c529513068cbcaf6497398c0d79af90d5952a4f006b5b026e4d51ba2aca0fc22
MD5 01978cd44e7d41f8bdf09f4679dafe86
BLAKE2b-256 b7f97294b599f87a412575d9a18997f34566937677985a11093ce577dbe8ebf3

See more details on using hashes here.

File details

Details for the file cdklabs.cdk_enterprise_iac-0.0.39-py3-none-any.whl.

File metadata

File hashes

Hashes for cdklabs.cdk_enterprise_iac-0.0.39-py3-none-any.whl
Algorithm Hash digest
SHA256 a091c4efbe78a5cf68097b405e7df06e3f94074abff066a8ee66333bc9370f31
MD5 cc31bdeff50829b34f2c6d023988c208
BLAKE2b-256 cd494d5ab445a46eee783f883cd5f81083df73178d8a2c17ba62896f777d2d88

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page