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-cli command to setup terraform for our use for DLP. We keep all terraform files in dlp-terraform/ directory
- Implement a
dlp-cli command to be able to validate terraform schemas across all .tf files in the dlp-terraform directory. We validate .tf files using terraform validate
- Implement a
dlp-cli command to be able to apply a .tf file by creating the resources in AWS. Eg: something like dlp-cli terraform apply dynamodb/ should run terraform apply within the dlp-terraform/dynamodb path for dynamodb.tf file
- Modify our github actions checks to ensure that for a given
.tf file, it's under a folder within dlp-terraform (like check valid folder schema within dlp-terraform directory
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 thedlp-cli:Deliverables
a. Implement a
dlp-clicommand to setup terraform for our use for DLP. We keep all terraform files indlp-terraform/directorydlp-clicommand to be able to validate terraform schemas across all.tffiles in thedlp-terraformdirectory. We validate.tffiles usingterraform validatedlp-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.tffile, it's under a folder withindlp-terraform(like check valid folder schema withindlp-terraformdirectory