Terraform modules of AWS Batch for serverless computing
-
Check out the repository.
$ git clone https://github.com/dceoy/terraform-aws-batch-for-slc.git $ cd terraform-aws-batch-for-slc
-
Install AWS CLI and set
~/.aws/config
and~/.aws/credentials
. -
Install Terraform and Terragrunt.
-
Initialize Terraform working directories.
$ terragrunt run-all init --terragrunt-working-dir='envs/dev/' -upgrade -reconfigure
-
Generates a speculative execution plan. (Optional)
$ terragrunt run-all plan --terragrunt-working-dir='envs/dev/'
-
Creates or updates infrastructure.
$ terragrunt run-all apply --terragrunt-working-dir='envs/dev/' --terragrunt-non-interactive
$ terragrunt run-all destroy --terragrunt-working-dir='envs/dev/' --terragrunt-non-interactive