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.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14bf6d68beeb7671027a5af5360e21ef7a3949445884e82dbe3fc031d033c6ba |
|
MD5 | 4cf6b71e84c5a91352ef0843d606f250 |
|
BLAKE2b-256 | 423c50205740027944e042ab8afe8ddeb439a9c83374953f9abacaf030b300c8 |
Close
Hashes for renovosolutions.aws_cdk_aws_organization-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2947cbba577a23805243ae3a517d052f634627345399df6e24f32606d55c487e |
|
MD5 | 2e7296666d9425026f3ebf1f94656b73 |
|
BLAKE2b-256 | 467f1da640162d044e8740334ad9cb03397830a64a8b444e75a2b6cf54f7fd6b |