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. - You can run the provided tests against the real lambda function by getting the deployed function name from AWS and setting the
RUN_LOCALLY
env variable
RUN_LOCALLY='false' LAMBDA_FUNCTION_NAME='<name from AWS>' pytest ./handler_tests/<handler>/test.py -rA --capture=sys
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.2.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5eea2529d8b87a09ad87edfcfe9ef0f5e8bb7601616f13e65f34ef9d8c90b8d |
|
MD5 | 10635565172d3b32740d4a5478f1e8e2 |
|
BLAKE2b-256 | 4095fd36f4f8e271e82a3a630fe7733a4aab13250fb342075028854558864fb2 |
Close
Hashes for renovosolutions.aws_cdk_aws_organization-0.2.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6285a7f5f45953e1d5fbdb26f3673716ced243243d527f5b2d580d338e6efa0d |
|
MD5 | 8cbbac103511f43f898f65cb3de351f2 |
|
BLAKE2b-256 | eeabd8e20d449333da17f600613d817c715d6aeb8f019d042d959c5f5c4c4081 |