I’m building my infrastructure with Terraform.
I declared a digitalocean_domain
:
resource "digitalocean_domain" "royllo_domain" {
name = "royllo.org"
}
and then, I have my digitalocean_app
:
resource “digitalocean_app” “royllo_explorer_api_server” {
resource "digitalocean_app" "royllo_explorer_api_server" {
spec {
...
domain {
name = "api.explorer.royllo.org"
}
...
}
}
The app is deployed correcty and I can access it with its ingress address.
The live URL in digital ocean panel is correct: api.explorer.royllo.org
But when I try to access api.explorer.royllo.org
, it doesn’t work and when doing dig royllo.org any
there is not DNS record for my App…
What am I missing ?
I thought setting domain {}
would be enough.
I also tried to create a digitalocean_record
but i don’t know what to set in the value parameter as app doesn’t seem to return an IP
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!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Sign up for Infrastructure as a Newsletter.
Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Hi there,
I believe that for this you would need to use the
zone
argument reference as described here in the docs:https://registry.terraform.io/providers/digitalocean/digitalocean/latest/docs/resources/app#zone
Let me know how it goes!
Best,
Bobby