Deep-Learning-Playground
Deep-Learning-Playground copied to clipboard
Improve Dev Velocity for Terraform
Currently, when we write AWS infra using terraform, we have to run a set of manual commands to setup terraform along with validating + applying the tf plans. We should try to experiment with integrating these commands into dlp-cli. Below are some use cases we should add to the dlp-cli:
Deliverables
- @MugPand , what instructions/steps did you follow to setup terraform?
a. Implement a
dlp-clicommand to setup terraform for our use for DLP. We keep all terraform files indlp-terraform/directory - Implement a
dlp-clicommand to be able to validate terraform schemas across all.tffiles in thedlp-terraformdirectory. We validate.tffiles usingterraform validate - Implement a
dlp-clicommand to be able to apply a.tffile by creating the resources in AWS. Eg: something likedlp-cli terraform apply dynamodb/should runterraform applywithin thedlp-terraform/dynamodbpath fordynamodb.tffile - Modify our github actions checks to ensure that for a given
.tffile, it's under a folder withindlp-terraform(like check valid folder schema withindlp-terraformdirectory
@michellewliang if you don't have Terraform already, here's the instructions: https://developer.hashicorp.com/terraform/tutorials/aws-get-started/install-cli