为aws cloudformation定制okta资源
tropokta的Python项目详细描述
对流层
Okta用户和组的自定义AWS云信息资源
小心
- 这是ALPHA,只在Okta的开发实例和test AWS帐户上测试过* 未经测试,不得在生产中使用
安装
仅用作自定义资源
确保填写环境变量
- Okta_网址
- OKTA_令牌加密
按照联机说明生成Okta API令牌
# Replace YOUR_S3_ARTIFACTS_BUCKET
aws cloudformation package --template-file template.yaml --output-template-file cfn-transformed-template.yaml --s3-bucket YOUR_S3_ARTIFACTS_BUCKET
aws cloudformation deploy --template-file ./cfn-transformed-template.yaml --stack-name okta-cf-resource
现在你有了
- 自定义::OktaUser
- 自定义::OktaGroup
- 自定义::OktaUserGroupAttachment
云层中可用
如果安装了
python setup.py install
# or
pip install tropokta
你可以在对流层内做以下工作
from troposphere import Template
from tropokta.okta import OktaUser
t = Template()
user = t.add_resource(OktaUser(
firstName="test",
lastName="user",
email="test@test.com",
login="test@test.com"
))
print(t.to_json())
待办事项
[]测试