Terraform
Terraform is a tool that enable to describe and deploy infrastructure using a declarative configuration language. This code can be versioned and reused for consistent environments. Within NodeShift, it can be used to create and manage the following resources:
- Compute VMs
- GPU VMs
- Storage
- Virtual Private Cloud
Example definition:​
terraform {
required_providers {
nodeshift = {
source = "hashicorp.com/edu/nodeshift"
}
}
}
provider "nodeshift" {
access_key = "ACCESS_KEY"
secret_access_key = "SECRET_ACCESS_KEY"
}
All following parameters are optional​
access_key
(String, Sensitive) Access Key for Nodeshiftprofile
(String) Nodeshift profile names3_endpoint
(String) Nodeshift s3 endpoint addresss3_region
(String) Nodeshift s3 regionsecret_access_key
(String, Sensitive) Secret Access Key for Nodeshiftshared_credentials_file
(String) Path to credentials file Nodeshift
Note: use either (access_key
and secret_access_key
) or shared_credentials_file
parameters.