GithubHelp home page GithubHelp logo

terraform-spotinst-managed-instance-aws's Introduction

Requirements

Name Version
terraform >= 0.14.0
aws >= 3.46
spotinst >= 1.64.0

Providers

Name Version
aws 3.69.0
spotinst 1.64.0

Modules

No modules.

Resources

Name Type
aws_eip.this resource
spotinst_managed_instance_aws.this resource

Inputs

Name Description Type Default Required
auto_healing Enable the auto healing which auto replaces the instance in case the health check fails, default: 'true'. bool true no
block_device_mappings List of block devices attached into the EC2 instance. list(map(string)) [] no
block_devices_mode Determine the way we attach the data volumes to the data devices. Valid values: 'reattach', 'onLaunch'. Default: null string null no
cpu_credits cpuCredits can have one of two values: 'unlimited', 'standard'. Default: 'unlimited'. string "unlimited" no
create_eip Whether to create EIP for the managed instance bool false no
description The description of the managed instance string "Created by Terraform" no
domains List of route53 integrations list(map(string)) [] no
draining_timeout The time in seconds to allow the instance be drained from incoming TCP connections and detached from ELB before terminating it, during a scale down operation string "120" no
ebs_optimized Enable EBS optimization for supported instance which is not enabled by default. Note - additional charges will be applied. bool false no
elastic_ip Elastic IP Allocation Id to associate to the instance. string null no
enable_monitoring Describes whether instance Enhanced Monitoring is enabled. Default: false. bool false no
fallback_to_ondemand In case of no spots available, Managed Instance will launch an On-demand instance instead. Default: 'true' bool true no
grace_period The amount of time, in seconds, after the instance has launched to starts and check its health. string "120" no
health_check_type The service to use for the health check. Valid values: 'EC2', 'ELB', 'TARGET_GROUP', 'MULTAI_TARGET_SET'. Default: 'EC2'. string "EC2" no
iam_instance_profile Set IAM profile to instance. Set only one of ARN or Name. string "" no
image_id The ID of the image used to launch the instance. string n/a yes
instance_types Comma separated list of available instance types for instance. list(string) n/a yes
key_pair Specify a Key Pair to attach to the instances. string "" no
life_cycle Set lifecycle, valid values: 'spot', 'on_demand'. Default 'spot' string "spot" no
load_balancers List of load balancers list(map(string)) [] no
managed_instance_action Managed instance action. With type: 'pause', 'resume', 'recycle' map(string) {} no
minimum_instnace_lifetime Defines the preferred minimum instance lifetime. Markets which comply with this preference will be prioritized. Optional values: 1, 3, 6, 12, 24 string 24 no
name The name of the managed instance string n/a yes
network_interfaces List of network interfaces in the EC2 instance. A primary network interface has a device index of 0 list(map(string))
[
{
"associate_ipv6_address": false,
"associate_public_ip_address": null,
"device_index": 0
}
]
no
optimization_windows When performAt is 'timeWindow': must specify a list of 'timeWindows' with at least one time window Each string is in the format of - ddd:hh:mm-ddd:hh:mm ddd = day of week = Sun | Mon | Tue | Wed | Thu | Fri | Sat hh = hour 24 = 0 -23 mm = minute = 0 - 59. list(string)
[
"Mon:00:00-Mon:23:59",
"Tue:00:00-Tue:23:59",
"Wed:00:00-Wed:23:59",
"Thu:00:00-Thu:23:59",
"Fri:00:00-Fri:23:59",
"Sat:00:00-Sat:23:59",
"Sun:00:00-Sun:23:59"
]
no
orientation Select a prediction strategy. Valid values: 'balanced', 'costOriented', 'availabilityOriented', 'cheapest'. Default: 'availabilityOriented' string "availabilityOriented" no
perform_at Valid values: 'always', 'never', 'timeWindow' string "always" no
persist_block_devices Should the instance maintain its Data volumes. bool true no
persist_private_ip Should the instance maintain its private IP. bool false no
persist_root_device Should the instance maintain its root device volumes. bool true no
placement_tenancy Valid values: 'default', 'dedicated' string "default" no
preferred_type Preferred instance types for the instance. We will automatically select optional similar instance types to ensure optimized cost efficiency. string n/a yes
private_ip Private IP Allocation Id to associate to the instance. string null no
product Operation system type. Valid values: 'Linux/UNIX', 'SUSE Linux', 'Windows', 'Red Hat Enterprise Linux', 'Linux/UNIX (Amazon VPC)', 'SUSE Linux (Amazon VPC)', 'Windows (Amazon VPC)', 'Red Hat Enterprise Linux (Amazon VPC)'. string "Linux/UNIX" no
region The aws region of the managed instance string "us-west-2" no
resource_tag_specification User will specify which resources should be tagged with group tags. list(map(string))
[
{
"should_tag_amis": true,
"should_tag_snapshots": true,
"should_tag_volumes": true
}
]
no
scheduled_tasks List of scheduled tasks list(map(string)) [] no
security_group_ids One or more security group IDs. list(string) [] no
shutdown_script The Base64-encoded shutdown script to execute prior to instance termination. string null no
spotinst_account Spotinst account ID string n/a yes
spotinst_token Spotinst Personal Access token string n/a yes
subnet_ids A comma-separated list of subnet identifiers for the instance. list(string) n/a yes
tags Set tags for the instance. Items should be unique. list(map(string)) [] no
unhealthy_duration The amount of time, in seconds, an existing instance should remain active after becoming unhealthy. After the set time out the instance will be replaced. string "120" no
user_data The Base64-encoded MIME user data to make available to the instances. string null no
utilize_reserved_instances In case of any available Reserved Instances, Managed Instance will utilize them before purchasing Spot instances. Default: 'false' bool true no
vpc_id VPC id for your instance. string n/a yes

Outputs

Name Description
eip The Elastic IP ID of the managed instance
iam_instance_profile The IAM instance profile of the managed instance
id The ID of the managed instance
image_id The AMI ID of the managed instance
key_pair The SSH key pair used for the managed instance
load_balancers The Load balancer used for the managed instance
name The name of the managed instance
private_ip The private ip of the managed instance
scheduled_task The scheduled tasks used for the managed instance
security_group_ids The security group ids used for the managed instance
subnet_ids The Subnet IDs used for the managed instance

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.