Skip to content

Instantly share code, notes, and snippets.

@jamesmishra
Created November 4, 2020 07:39
Show Gist options
  • Save jamesmishra/3f17857b3c7da4efd3391dfb914edfdb to your computer and use it in GitHub Desktop.
Save jamesmishra/3f17857b3c7da4efd3391dfb914edfdb to your computer and use it in GitHub Desktop.
Provose 3.0 Fargate example
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