Generate steampipe connection file(.spc) for accounts and OUs in specified AWS organization. Before run this script, please make sure correct AWS credential in envs(using aws-vault is recommend), and base credential profile which can AssumeRole to accounts accross organization has been configured.
Project description
Generate steampipe connection file(.spc) for accounts and OUs in specified AWS
organization.Before run this script, please make sure correct AWS credential
in envs(using aws-vault is recommend), and base credential profile which can
AssumeRole to accounts accross organization has been configured.
Install
pip install genspc4awsorg
Usage
genspc4awsorg.py \[-h\] \[-sp SOURCEPROFILE\] \[-mfa MFASERIAL\]
\[-r ROLENAME\] \[-nc\]
orgprefix
positional arguments:
orgprefix Prefix for AWS organization, used in steampipe
connection names.
optional arguments:
-h, --help show this help message and exit
-sp SOURCEPROFILE, --sourceprofile SOURCEPROFILE
AWS credential profile(in ~/.aws/credentials) which
can AssumeRole to accounts accross organization.if not
provided, default to same value of $orgprefix
-mfa MFASERIAL, --mfaserial MFASERIAL
Mfa serial arn used to access target account.
-r ROLENAME, --rolename ROLENAME
Role name used to access target account. Default to
"OrganizationAccountAccessRole"
-nc, --ignoreconfigprofile
Create steampipe connection config only, NO
~/.aws/config profiles.
Project details
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
Hashes for genspc4awsorg-0.2.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7bc467e235676d69f45b35e973a0917b702390fbc072fe74524bd3e25ae26da |
|
MD5 | f40000c4556f4966264ac288210d5070 |
|
BLAKE2b-256 | 9ec6ae1dc75a10109565e98271567bfe8b329a1806537b8ec87f3620c54308b5 |