Created
November 4, 2020 07:39
-
-
Save jamesmishra/3f17857b3c7da4efd3391dfb914edfdb to your computer and use it in GitHub Desktop.
Provose 3.0 Fargate example
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
module "myproject-fargate" { | |
source = "github.com/provose/provose?ref=v2.0.0" | |
provose_config = { | |
authentication = { | |
aws = { | |
region = "us-east-1" | |
} | |
} | |
name = "myproject-fargate" | |
internal_root_domain = "example-internal.com" | |
internal_subdomain = "myproject-fargate" | |
} | |
containers = { | |
hellofargate = { | |
image = { | |
name = "nginxdemos/hello" | |
tag = "latest" | |
private_registry = false | |
} | |
public = { | |
https = { | |
internal_http_port = 80 | |
internal_http_health_check_path = "/" | |
public_dns_names = ["fargate.example.com"] | |
} | |
} | |
instances = { | |
# set `instance_type` to be "FARGATE_SPOT" to save money by | |
# using Spot instances behidn the scenes. | |
instance_type = "FARGATE" | |
container_count = 10 | |
cpu = 256 | |
memory = 512 | |
} | |
} | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment