Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,20 @@ terraform module for creating an opinionated internal application load balancer
Module Input Variables
----------------------

- `project` - gcp project id
- `project_id` - gcp project id
- `region` - gcp region
- `environment` - logical environment
- `static_ip_name` - global load balancer name
- `name_prefix` - prefix-name used for lb proxy and forwarding rule
- `create_address` - toggle external static IP creation
- `create_load_balancer` - toggle load balaner creation
- `url_map_name` - toggle url map name
- `custom_labels_https_fwd_rule` - map of custom labels to apply to the resources
- `ssl_cert_name` - creates a unique name beginning with the specified prefix
- `certificate_map` - certificate map to attach to load balancer
- `port_range` - HTTPS Port number
- `enable_ssl` - enable SSL support
- `https_redirect` - enable HTTPS redirect
- `default_custom_error_response_policy` - Default custom error response policy
- `services` - map cloud run service metadata
- `buckets` - map of gcs bucket metadata

Expand Down
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ resource "google_compute_global_forwarding_rule" "https" {
# SSL Policy for the load balancer
resource "google_compute_ssl_policy" "tls12-ssl-policy" {
name = "${var.project_id}-tls12-ssl-policy"
profile = "MODERN" # Use MODERN for strong security settings.
min_tls_version = "TLS_1_2" # Only allow TLS 1.2 and above.
profile = "RESTRICTED" # Use MODERN for strong security settings.
min_tls_version = "TLS_1_2" # Only allow TLS 1.2 and above.

description = "SSL policy to enforce TLS 1.2 and disable TLS 1.0 and 1.1"
}
Expand Down