Assistance with the new Functions Component #836
-
Hi All, Apologies if this is something trivial. I have been playing with the new functions component in the 2.20.0 version of the provider. I am using the following TF code to create a brand new function. resource "digitalocean_app" "stripe-listener-function" {
spec {
name = "stripe-listener"
region = "lon"
domain {
name = "backend.example.com"
}
function {
name = "stripe-listener"
git {
repo_clone_url = "https://github.com/digitalocean/sample-functions-nodejs-helloworld.git"
branch = "master"
}
routes {
path = "/order-processor"
}
}
}
} I would expect this to show up under https://cloud.digitalocean.com/functions/ but instead it is showing as an App... Is this expected? Am I doing something wrong? Many thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi Ed, This is the expected behavior. Currently, Terraform only supports functions as components of App Platform apps. Apps can contain multiple components, allowing you to compose an application from a number of different pieces like static sites, functions, and containerized services. Currently, if you want to create standalone functions outside of App Platform, you can use the control panel or the |
Beta Was this translation helpful? Give feedback.
Hi Ed,
This is the expected behavior. Currently, Terraform only supports functions as components of App Platform apps. Apps can contain multiple components, allowing you to compose an application from a number of different pieces like static sites, functions, and containerized services.
Currently, if you want to create standalone functions outside of App Platform, you can use the control panel or the
doctl
CLI.