A Terraform module for deploying a static site to DigitalOcean App Platform.
Name | Version |
---|---|
terraform | >= 0.15.1, < 1.1.4 |
digitalocean | >= 2.4.0 |
Name | Version |
---|---|
digitalocean | 2.16.0 |
No modules.
Name | Type |
---|---|
digitalocean_app.this | resource |
Name | Description | Type | Default | Required |
---|---|---|---|---|
spec | (Required) A DigitalOcean App spec describing the app. | any |
[] |
no |
Name | Description |
---|---|
active_deployment_id | The ID the app's currently active deployment. |
created_at | The date and time of when the app was created. |
default_ingress | The default URL to access the app. |
id | ID of the app. |
live_url | The live URL of the app. |
updated_at | The date and time of when the app was last updated. |
Deploy a Hugo static site using the module.
module "hugo_blog" {
source = "../"
spec = [{
name = "test"
region = "nyc1"
domain = {
name = "test.gonzalezandrew.com"
type = "PRIMARY"
zone = "gonzalezandrew.com"
}
static_site = {
name = "blog"
build_command = "hugo -d public"
environment_slug = "hugo"
source_dir = "/"
github = {
repo = "GonzalezAndrew/blog"
branch = "master"
deploy_on_push = true
}
routes = {
path = "/"
}
}
}]
}