This repo has sample code to create an API to predict if a domian is DGA or not using AWS sagemaker and apigateway. It also have terraform script for deployment.
I have taken old code from these two repo and changed it to python 3 version https://github.com/andrewaeva/DGA/blob/master/dga_wordlists/main.py
https://github.com/baderj/domain_generation_algorithms
New code and docker file to generate DGA are in: https://github.com/aftabalam01/machinelearningpipeline/tree/master/src/dataset
Sample code with tensorflow and using sagemaker script mode https://github.com/aftabalam01/machinelearningpipeline/blob/master/src/notebooks/Build%20Tensorflow%20LSTM%20model-sagemaker.ipynb
model script https://github.com/aftabalam01/machinelearningpipeline/blob/master/src/notebooks/tf-model.py
https://github.com/aftabalam01/machinelearningpipeline/tree/master/src/lambda
https://github.com/aftabalam01/machinelearningpipeline/blob/master/src/Test/TestCode.py