ecs-ocean

joshdlee/ecs-ocean/spotinst

Terraform Module HCL SPOTINST

Spotinst Terraform Module to integrate existing ECS cluster with Spot.io Ocean

Install
module "ecs-ocean" {
source = "joshdlee/ecs-ocean/spotinst"
version = "0.2.4"
}
plain text: /constructs/tfmod-joshdlee-ecs-ocean-spotinst/install.txt
⭐ Source on GitHub 📦 Registry page
README

Spot Ocean ECS Terraform Module Prerequisites Have an ECS cluster Spot Account and API Token defined in the Spotinst Terraform Provider Usage ``hcl module "ocean_ecs" { source = "../ecs-ocean" cluster_name = "ECS-Workshop" region = "us-west-2" subnet_ids = ["subnet-123456789,subnet-123456789"] security_group_ids = ["sg-123456789"] image_id = "ami-123456789" iam_instance_profile = "arn:aws:iam::123456789:instance-profile/ecsInstanceRole" tags = {CreatedBy = "terraform"} } ` Providers | Name | Version | |------|---------| | spotinst | >= 1.45.0 | Modules ecs-ocean - Creates Ocean Cluster ecs-ocean-launchspec` - (Optional) Add custom virtual node groups Doc Documentation If you're new to Spot and want to get started, please checkout our Getting Started guide, available on the Spot Documentati

Inputs (45)
NameTypeDescriptionDefault
cluster_namestringThe ECS cluster name. required
security_group_idslist(string)One or more security group ids. required
regionstringThe region the cluster will run in. required
subnet_idslist(string)A comma-separated list of subnet identifiers for the Ocean cluster. Subnet IDs s required
desired_capacitynumberThe number of instances to launch and maintain in the cluster.null
http_tokensstringDetermines if a signed token is required or not. Valid values: optional or requinull
conditional_rollboolSpot will perform a cluster Roll in accordance with a relevant modification of tfalse
iam_instance_profilestringThe instance profile iam rolenull
max_vcpunumberThe maximum cpu in vCPU units that can be allocated to the cluster.null
scheduled_taskobject({ shutdown_is_enabledScheduled Tasks Blocknull
namestringThe Ocean cluster name.null
max_sizenumberThe upper limit of instances the cluster can scale up to.1000
tagsmap(string)Optionally adds tags to instances launched in an Ocean cluster.null
associate_public_ip_addressboolConfigure public IP address allocation.null
utilize_commitmentsboolIf savings plans exist, Ocean will utilize them before launching Spot instances.null
num_of_unitsnumberThe number of units to retain as headroom, where each unit has the defined headr0
max_scale_down_percentagenumberWould represent the maximum % to scale-down. Number between 1-100.10
batch_min_healthy_percentagenumberIndicates the threshold of minimum healthy instances in single batch. If the amo50
min_sizenumberThe lower limit of instances the cluster can scale down to.0
user_datastringBase64-encoded MIME user data to make available to the instances.null
autoscaler_is_auto_configboolAutomatically configure and optimize headroom resources.true
cooldownnumberCooldown period between scaling actions.null
auto_headroom_percentagenumberThe auto-headroom percentage. Set a number between 0-200 to control the headroomnull
ebs_optimizedboolEnable EBS optimized for cluster. Flag will enable optimized capacity for high btrue
… and 5 more inputs
Outputs (1)
ocean_id
Resources (1)
spotinst_ocean_ecs
Details
FrameworkTerraform Module
LanguageHCL
Version0.2.4
Cloud SPOTINST
Total downloads3.9k
Inputs45
Outputs1
Resources1
Namespacejoshdlee
Updated