https://github.com/beneshed/tropokta
Custom AWS Cloudformation Resource for Okta Users and Groups
https://github.com/beneshed/tropokta
cloudformation-templates okta python serverless troposphere
Last synced: 11 months ago
JSON representation
Custom AWS Cloudformation Resource for Okta Users and Groups
- Host: GitHub
- URL: https://github.com/beneshed/tropokta
- Owner: beneshed
- License: mit
- Created: 2018-04-15T21:20:47.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2021-04-05T07:38:20.000Z (about 5 years ago)
- Last Synced: 2025-06-17T20:09:11.333Z (about 1 year ago)
- Topics: cloudformation-templates, okta, python, serverless, troposphere
- Language: Python
- Size: 11.7 KB
- Stars: 0
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tropokta
Custom AWS Cloudformation Resource for Okta Users and Groups
_CAUTION_
* This is ALPHA and has only been testing on a developer instance of Okta and a test AWS account *
_DO NOT USE IN PRODUCTION WITHOUT TESTING_
Install
---
To just use as a custom resource
Make sure to fill out the environment variables
* OKTA_URL
* OKTA_TOKEN *encrypted*
Follow online instructions on generating an Okta API Token
```
# 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
```
Now you have
* Custom::OktaUser
* Custom::OktaGroup
* Custom::OktaUserGroupAttachment
Available in CloudFormation
If you install tropokta with
```
python setup.py install
# or
pip install tropokta
```
You can do the following within troposphere
```
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())
```
TO DO
---
[] Tests