Skip to content

C2Devel/terraform-examples

Repository files navigation

Terraform examples for K2 Cloud

reference test suite with supported resources

· Documentation ·


Build status

  • PR build status: pr status
  • Nightly build status: night status

Supported resources

ec2 resources

vpc resources

S3 resources

Installation

  $ cp terraform.tfvars.example terraform.tfvars
  • Generate and run configure script:
  $ autoreconf -i && ./configure
  • Run make to init aws provider

  • Update terraform.tfvars file with desirable values

How to run specific examples

  • Run make show-cases to list all available examples

  • Run terraform plan, apply and destroy command for specified case:

  $ make plan-<case_name>
  $ make apply-<case_name>
  $ make destroy-<case_name>
  • Use make clean to remove terraform.tfstate* and crash.log files

  • Use make clean-all to remove aws provider

Tests

  • Run make check to run all tests via autotest test framework

Contributors

Thanks goes to these wonderful people:


Mikhail Ushanov


Pavel Kulyov


ancient07


aeko-empt


Sharpeye90


Girag


Nikita Kretov