By Liem Le
Terraform
resource "digitalocean_droplet" "api" {
image = "ubuntu-18-04-x64"
name = "api"
region = "SGP1"
size = "s-2vcpu-2gb"
count = 2
private_networking = true
tags = ["api", "www"]
ssh_keys = module.root_ssh.root_ssh_ids
}
When I try root@api_1$ ping api_2 there’s no packet returned. I had cloud firewall but not enable it for these droplets and ufw status result inactive
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi :) Certainly feels like a firewall issue - is it possible that you have assigned one of those tags to the cloud firewall? If that is the case, any new droplets with that tag will be auto-added to the firewall.
If that’s not the case, are you trying to ping on the private networking IP or the public?
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.