diff --git a/README.md b/README.md index cf72200..72eddee 100644 --- a/README.md +++ b/README.md @@ -229,8 +229,9 @@ You can check the status of the certificate in the Google Cloud Console. | [project](#input\_project) | The ID of the project in which the resource belongs | `string` | `null` | no | | [region](#input\_region) | The region that resources should be created in | `string` | n/a | yes | | [service\_account](#input\_service\_account) | Service account to attach to the instance running Atlantis |
object({
email = string,
scopes = list(string)
})
|
{
"email": "",
"scopes": [
"cloud-platform"
]
}
| no | -| [shielded\_instance\_config](#input\_shielded\_instance\_config) | Shielded instance configuration |
object({
enable_integrity_monitoring = bool
enable_vtpm = bool
enable_secure_boot = bool
})
|
{
enable_integrity_monitoring = true
enable_vtpm = true
enable_secure_boot = true
}
| no | +| [shielded\_instance\_config](#input\_shielded\_instance\_config) | Shielded VM provides verifiable integrity to prevent against malware and rootkits |
object({
enable_integrity_monitoring = optional(bool)
enable_vtpm = optional(bool)
enable_secure_boot = optional(bool)
})
|
{
"enable_integrity_monitoring": true,
"enable_secure_boot": true,
"enable_vtpm": true
}
| no | | [spot\_machine\_enabled](#input\_spot\_machine\_enabled) | A Spot VM is discounted Compute Engine capacity that may be preemptively stopped or deleted by Compute Engine if the capacity is needed | `bool` | `false` | no | +| [ssl\_policy](#input\_ssl\_policy) | The SSL policy name that the certificate must follow | `string` | `null` | no | | [startup\_script](#input\_startup\_script) | A startup script that runs during the boot cycle when you first launch an instance | `string` | `null` | no | | [subnetwork](#input\_subnetwork) | Name of the subnetwork to attach a network interface to | `string` | n/a | yes | | [tags](#input\_tags) | Tags to attach to the instance running Atlantis | `list(string)` | `[]` | no | diff --git a/examples/complete/main.tf b/examples/complete/main.tf index 1a70e3a..18a7480 100644 --- a/examples/complete/main.tf +++ b/examples/complete/main.tf @@ -105,3 +105,10 @@ resource "google_dns_record_set" "default" { ] project = local.project_id } + +resource "google_compute_ssl_policy" "default" { + name = "example-ssl-policy" + profile = "RESTRICTED" + min_tls_version = "TLS_1_2" + project = local.project_id +} diff --git a/main.tf b/main.tf index 1e7ecc7..5193d79 100644 --- a/main.tf +++ b/main.tf @@ -381,7 +381,8 @@ resource "google_compute_target_https_proxy" "default" { ssl_certificates = [ google_compute_managed_ssl_certificate.default.id, ] - project = var.project + ssl_policy = var.ssl_policy + project = var.project } resource "google_compute_global_forwarding_rule" "https" { diff --git a/variables.tf b/variables.tf index 780b3e8..265c7b8 100644 --- a/variables.tf +++ b/variables.tf @@ -122,6 +122,12 @@ variable "iap" { default = null } +variable "ssl_policy" { + type = string + description = "The SSL policy name that the certificate must follow" + default = null +} + variable "tags" { type = list(string) description = "Tags to attach to the instance running Atlantis"