- create Vngs with ARM instance type on an existing Ocean Spark Cluster using
terraform
- 2 Vngs (1 for OD, 1 for Spot)
terraform
tool- AWS profile credentials (var env
AWS_PROFILE
)
The terraform description will create 2 simple VNGs (OD + Spot) with
- create a local variable file. e.g:
touch terraform.tfvars
spotinst_account
: Spot account act-xxxxspotinst_token
: Spot tokenaws_region
: region of the AWS cluster e.g us-west-2ocean_id
: ocean cluster o-xxxxxxcluster_name
: name of the clusterimage_id
: AMI id of the EKS node image (ARM), let it to null to let the moduleaws_ami
find it itself.
-
use AWS profile :
export AWS_PROFILE={your_profile}
-
init terraform :
terraform init
-
apply the creation :
terraform apply
-
to remove the VNGs (revert):
terraform destroy