- Have an ECS cluster
- Spot Account and API Token defined in the Spotinst Terraform Provider
module "ocean_ecs" {
source = "spotinst/ocean-aws-ecs/spotinst"
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"}
}
Name | Version |
---|---|
spotinst | >= 1.78.0 |
ecs-ocean
- Creates Ocean Clusterecs-ocean-launchspec
- (Optional) Add custom virtual node groups Doc
If you're new to Spot and want to get started, please checkout our Getting Started guide, available on the Spot Documentation website.
We use GitHub issues for tracking bugs and feature requests. Please use these community resources for getting help:
- Ask a question on Stack Overflow and tag it with terraform-spotinst.
- Join our Spot community on Slack.
- Open an issue.
Please see the contribution guidelines.
Code is licensed under the Apache License 2.0.