Skip to content
This repository has been archived by the owner on Mar 13, 2023. It is now read-only.

***Deprecated - Moved to Spotinst Repo*** Terraform module to create an Ocean LaunchSpec (VNG) for AWS ECS cluster

License

Notifications You must be signed in to change notification settings

stevenfeltner/terraform-spotinst-ecs-ocean-launchspec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spot Ocean ECS Launchspec Terraform Module

Prerequisites

  • Have an ECS cluster created and integrated with Ocean on Spot.io
  • Spot Account and API Token

Usage

### Create Ocean ECS Cluster ###
module "ocean_ecs" {
  source = "stevenfeltner/ecs-ocean/spotinst"

  cluster_name                    = "ECS-Workshop"
  desired_capacity                = 0
  region                          = "us-west-2"
  subnet_ids                      = ["subnet-123456789, subnet-123456789, subnet-123456789, subnet-123456789"]
  security_group_ids              = ["sg-123456789"]
  iam_instance_profile            = "arn:aws:iam::123456789:instance-profile/ecsInstanceRole"

  tags                            = {CreatedBy = "terraform"}
}
### Create Ocean ECS Launchspec ###
module "ocean_ecs_launchspec" {
  source = "stevenfeltner/ecs-ocean-launchspec/spotinst"

  name                            = "VNG1"
  ocean_id                        = module.ocean_ecs.ocean_id
  attributes                      = {Test = "example"}

  tags                            = {CreatedBy = "terraform"}
}
### Outputs ###
output "ocean_id" {
  value = module.ocean_ecs.ocean_id
}
output "ocean_launchspec_id" {
  value = module.ocean_ecs_launchspec.launchspec_id
}

Providers

Name Version
spotinst >= 1.45.0

Modules

  • ecs-ocean - Creates Ocean Cluster Doc
  • ecs-ocean-launchspec - (Optional) Add custom virtual node groups

Documentation

If you're new to Spot and want to get started, please checkout our Getting Started guide, available on the Spot Documentation website.

Getting Help

We use GitHub issues for tracking bugs and feature requests. Please use these community resources for getting help:

Community

Contributing

Please see the contribution guidelines.

License

Code is licensed under the Apache License 2.0.

About

***Deprecated - Moved to Spotinst Repo*** Terraform module to create an Ocean LaunchSpec (VNG) for AWS ECS cluster

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages