AWS CDK Construct Library to manage specific AWS Organization resources
Project description
cdk-library-aws-organization
This CDK library is a WIP and not ready for production use.
Key challenges with Organizations
- Accounts aren't like AWS resources and the removal process isn't a simple delete. Therefore the constructs contained in this library do not have the goal to delete accounts.
- CloudFormation doesn't support Organizations directly so the constructs in this library use CloudFormation custom resources that utilize Python and Boto3
Testing the custom provider code with SAM CLI
- Create a test project that utilizes this library
- Create a test stack
- Synthesize the test stack with
cdk synth --no-staging > template.yml
- Get the function name from the template
- Run
sam local start-lambda -t template.yml
- Run the
handler_tests
python files withpytest
like follows:
LAMBDA_FUNCTION_NAME='<name you noted earlier>' pytest ./handler_tests/<handler>/test.py -rA --capture=sys
- The
test.py
also looks up the root org id to run tests so you'll need to have AWS creds set up to accomodate that behavior.
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 renovosolutions.aws-cdk-aws-organization-0.0.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a45fd4ebdf70c7b2ec291a380b13a1d584bb6a296673da26f07256247a121120 |
|
MD5 | 95077b634c0ab0a725146d6709e8fd19 |
|
BLAKE2b-256 | 3f22f33f7153a29ea6b909c1436b01a088bfc281a1c013bf8fe9e56ff0b1ab29 |
Close
Hashes for renovosolutions.aws_cdk_aws_organization-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b41e34481b541e539cfdb43c9d0feb71c90f8a85ffaa103cbcc5f2f64b65fa14 |
|
MD5 | c475c7a596c855550411a27c62dddf73 |
|
BLAKE2b-256 | da9b91644762542e38910cf75ec690a0167bd8580aec84a9679974832035751e |