Created
February 24, 2019 16:08
-
-
Save J00MZ/e5ef01cc7c3a40462558fd00541107b2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
provider "spotinst" { | |
token = "${var.spotinst_token}" | |
account = "${var.spotinst_account}" | |
} | |
resource "spotinst_elastigroup_azure" "qa_mlb_runtime" { | |
name = "qa_mlb_runtime" | |
resource_group_name = "DevQA-RG" | |
region = "northeurope" | |
product = "Linux" | |
user_data = "IyEvYmluL2Jhc2gKCmV4cG9ydCBFTlZfVFlQRT0icWEiCmV4cG9ydCBTRVJWRVJfVFlQRT0iY29yZS1hcHAiCgpleHBvcnQgU0NSSVBUU19ESVI9Ii9vcHQvc2NyaXB0cy8iCmV4cG9ydCBSVU5GSUxFPSJtYWluLnNoIgpleHBvcnQgQVpVUkVfU1RPUkFHRV9DT05ORUNUSU9OX1NUUklORz0iRGVmYXVsdEVuZHBvaW50c1Byb3RvY29sPWh0dHBzO0FjY291bnROYW1lPW1vb3ZpdGRldjtBY2NvdW50S2V5PXFMdFROcWpoU1pCU1N5OUxJQitwaVdZUnpOS1dXd1JLeWF5dEZoRHY4dmU2NjM4TDNjOHJJUmdRY3plOXNRZzRLcWQ1eTlRUE9WYTRsaFhsay9oUnZRPT07RW5kcG9pbnRTdWZmaXg9Y29yZS53aW5kb3dzLm5ldCIKCiMgR2V0IHNjcmlwdHMgYW5kIGNoYW5nZSBwZXJtcwpheiBzdG9yYWdlIGJsb2IgZG93bmxvYWQgLS1jb250YWluZXItbmFtZSBzY3JpcHRzIC0tbmFtZSAkUlVORklMRSAtLWZpbGUgJFNDUklQVFNfRElSLyRSVU5GSUxFCmNobW9kICt4ICIke1NDUklQVFNfRElSfS8ke1JVTkZJTEV9IgoKIyBSdW4gdGhlIHNjcmlwdCEKJFNDUklQVFNfRElSLyRSVU5GSUxFICRFTlZfVFlQRSAkU0VSVkVSX1RZUEUgPj4gL3RtcC9ib290LmxvZyAyPiYx" | |
min_size = 0 | |
max_size = 4 | |
desired_capacity = 1 | |
od_sizes = ["standard_d1_v2"] | |
low_priority_sizes = ["standard_d1_v2"] | |
image = { | |
publisher = "OpenLogic" | |
offer = "CentOS" | |
sku = "7.3" | |
} | |
# image = { | |
# marketplace = { | |
# publisher = "Canonical" | |
# offer = "UbuntuServer" | |
# sku = "16.04-LTS" | |
# } | |
# } | |
strategy = { | |
od_count = 0 | |
draining_timeout = 300 | |
} | |
health_check = { | |
health_check_type = "INSTANCE_STATE" | |
grace_period = 120 | |
auto_healing = true | |
} | |
network = { | |
virtual_network_name = "Dev" | |
subnet_name = "dev-0" | |
resource_group_name = "DevQA-RG" | |
assign_public_ip = false | |
} | |
login = { | |
user_name = "${var.ssh_username}" | |
ssh_public_key = "${var.ssh_public_key}" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment