Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How create load balancer with Internal Network Visibility (VPC) via Terrafom #1299

Closed
Maksclub opened this issue Jan 8, 2025 · 2 comments
Closed

Comments

@Maksclub
Copy link

Maksclub commented Jan 8, 2025

I have terraform resource

resource "digitalocean_loadbalancer" "sandbox_loadbalancer" {
  name   = "sandbox-loadbalancer"
  region = var.do_region
  project_id = digitalocean_project.sandbox_project.id
  vpc_uuid = digitalocean_vpc.sandbox_vpc.id

  disable_lets_encrypt_dns_records = true

  forwarding_rule {
    entry_port     = 80
    entry_protocol = "http"

    target_port     = 80
    target_protocol = "http"
  }

  healthcheck {
    port     = 22
    protocol = "tcp"
  }

  droplet_ids = local.sandbox_droplet_ids
}

How I can set Internal (Private VPC) visibility like Web UI :
Screenshot 2025-01-08 at 21 47 22

@Maksclub Maksclub changed the title How create load balancer with internal Network Visibility via Terrafom How create load balancer with Internal Network Visibility (VPC) via Terrafom Jan 8, 2025
@andrewsomething
Copy link
Member

You can set network = "INTERNAL" to create a load balancer that is only accessible on the private network.

@Maksclub
Copy link
Author

Thank you, i had old version of provider in config and IDE plugin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants