Automate Cloud Development Kit (CDK) bootstrapping into an AWS Organization using Single Sign-On (SSO) authentication.
Project description
aqueduct
Pre-Requisites
SSO Authentication
Installation
pip install aqueduct-utility
Initial Configuration
$ aqueduct
SSO Start URL [ ]: https://portal.awsapps.com/start
SSO Region [ ]: us-east-2
SSO Role [AWSAdministratorAccess]:
CLI Region [ ]: us-east-2
CLI Output [json]:
CDK Qualifier [ ]: 4n6ir
CDK Trust [ ]: 111111111111
add -h or --help for usage help
Help Menu
$ aqueduct -h
usage: aqueduct [-h] [--addacct] [--addreg] [--addtag] [--bootstrap]
[--delacct] [--delreg] [--deltag] [--deployall] [--destroyall]
[--ssosetup]
aqueduct v0.1.0
optional arguments:
-h, --help show this help message and exit
--addacct Add Account
--addreg Add Region
--addtag Add Tag
--bootstrap Bootstrap CDK
--delacct Delete Account
--delreg Delete Region
--deltag Delete Tag
--deployall Deploy All
--destroyall Destroy All
--ssosetup SSO Setup
Add Account
$ aqueduct --addacct
Account Name [ ]: Pipeline
Account Number [ ]: 111111111111
Add Region
$ aqueduct --addreg
Region [ ]: us-east-2
Add Tag
$ aqueduct --addtag
tag i.e. key=value: 4n6ir=4n6ir
Setup SSO Configuration
$ aqueduct --ssosetup
Sync Legacy Credentials
$ yawsso
Bootstrap CDK
$ aqueduct --bootstrap
CDK_NEW_BOOTSTRAP set, using new-style bootstrapping
⏳ Bootstrapping environment aws://111111111111/us-east-2...
Trusted accounts: 111111111111
Execution policies: arn:aws:iam::aws:policy/AdministratorAccess
cdk-bootstrap-4n6ir-111111111111-us-east-2: creating CloudFormation changeset...
[██████████████████████████████████████████████████████████] (11/11)
✅ Environment aws://111111111111/us-east-2 bootstrapped.
Local Development
$ python setup.py install --user
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
aqueduct-utility-0.1.0.tar.gz
(8.0 kB
view hashes)
Built Distribution
Close
Hashes for aqueduct_utility-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84455a1a738864efd69938c5624b6e377fdee8ee477fef58392c8f7b65233632 |
|
MD5 | 7e519c96e5f673c3ea85bf2d6427618f |
|
BLAKE2b-256 | 857fd25d8595827a78d3dc4572bd86bc973f54f82aac15deb4e87b189d0a21aa |