/terraform-aws-batch-for-slc

Terraform modules of AWS Batch for serverless computing

Primary LanguageHCLMIT LicenseMIT

terraform-aws-batch-for-slc

Terraform modules of AWS Batch for serverless computing

CI

Installation

  1. Check out the repository.

    $ git clone https://github.com/dceoy/terraform-aws-batch-for-slc.git
    $ cd terraform-aws-batch-for-slc
  2. Install AWS CLI and set ~/.aws/config and ~/.aws/credentials.

  3. Install Terraform and Terragrunt.

  4. Initialize Terraform working directories.

    $ terragrunt run-all init --terragrunt-working-dir='envs/dev/' -upgrade -reconfigure
  5. Generates a speculative execution plan. (Optional)

    $ terragrunt run-all plan --terragrunt-working-dir='envs/dev/'
  6. Creates or updates infrastructure.

    $ terragrunt run-all apply --terragrunt-working-dir='envs/dev/' --terragrunt-non-interactive

Cleanup

$ terragrunt run-all destroy --terragrunt-working-dir='envs/dev/' --terragrunt-non-interactive