Cannot deploy public api on Cloud Run using Terraform

sora

Terraform now supports cloud run as documented here, and I'm trying the example code below.

resource "google_cloud_run_service" "default" {
  name     = "tftest-cloudrun"
  location = "us-central1"
  provider = "google-beta"

  metadata {
    namespace = "my-project-name"
  }

  spec {
    containers {
      image = "gcr.io/cloudrun/hello"
    }
  }
}

Although it deploys the sample hello service with no error, when I access to the auto-generated URL, it returns 403(Forbidden) response. Is it possible to create public cloud run api using terraform?

(When I'm creating the same service using GUI, GCP provides "Allow unauthenticated invocations" option under "Authentication" section, but there seems to be no equivalent option in terraform document...)

enter image description here

guillaume blaquiere

Here the deployment is only based on Knative serving spec. Cloud Run managed implements these specs but have its own internal behavior, like role check linked with IAM (not possible with Knative and a K8S cluster, this is replaced by Private/Public service). The namespace on Cloud Run managed is the projectId, a workaround to identify the project for example, not a real K8S namespace.

So, the latest news that I have from Google (I'm Cloud Run Alpha Tester) which tells they are working with Deployment Manager and Terraform for integrating Cloud Run in them. I don't have deadline, sorry.

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

分類Dev

bazel run *_deploy.jar fails with "cannot execute binary file"

分類Dev

How to deploy a ConfigMap using kubernetes client Api

分類Dev

Upload SSH public key to bitbucket cloud using curl/REST and token

分類Dev

using "firebase deploy" to deploy to hosting - how does firebase know if it is deploying to hosting and not cloud functions?

分類Dev

SSRS cannot deploy

分類Dev

When an API goes public, can an app still get rejected for using it?

分類Dev

REST API AWS cloud using java

分類Dev

how to deploy a specific tf file in terraform

分類Dev

gcloud beta run deploy fails after sucessfully uploading image, fails to enable API

分類Dev

Can application in public cloud be authorized to fetch data from government tenant via graph api?

分類Dev

How to run Load Testing in visual studio using Cloud servers or VM?

分類Dev

How to deploy to Azure Cloud Service

分類Dev

Cannot work out how to run .scm (using guile or scm) files

分類Dev

Run DB migrations on cloud build connecting to cloud sql using private IP

分類Dev

Cannot deploy a build in heroku (NODEJS)

分類Dev

Qt 5 cannot deploy on SnowLeopard

分類Dev

How do I deploy REST API using an imported array of JS objects?

分類Dev

How to enable Cloud Firestore Native Mode using API / command line?

分類Dev

Cloud Run and Revel Container

分類Dev

DDOS in Cloud Run

分類Dev

public "using" = decltype(<private>)

分類Dev

Deploy Cloud9 IDE to Heroku?

分類Dev

Capistrano deploy to many nodes on the same Cloud Service

分類Dev

Google Cloud Functions(Golang)とTerraform

分類Dev

Is there a way to emulate the run frequency of constructor code using the React Hooks API?

分類Dev

ALM create new Test Run using JSON payload ( REST API)

分類Dev

What is the Google Cloud Storage public read uri?

分類Dev

Opening public socket with python in Cloud9

分類Dev

Cannot find symbol : default access interfaces(declared in different src file) implemented on a public class java using `javac` command

Related 関連記事

  1. 1

    bazel run *_deploy.jar fails with "cannot execute binary file"

  2. 2

    How to deploy a ConfigMap using kubernetes client Api

  3. 3

    Upload SSH public key to bitbucket cloud using curl/REST and token

  4. 4

    using "firebase deploy" to deploy to hosting - how does firebase know if it is deploying to hosting and not cloud functions?

  5. 5

    SSRS cannot deploy

  6. 6

    When an API goes public, can an app still get rejected for using it?

  7. 7

    REST API AWS cloud using java

  8. 8

    how to deploy a specific tf file in terraform

  9. 9

    gcloud beta run deploy fails after sucessfully uploading image, fails to enable API

  10. 10

    Can application in public cloud be authorized to fetch data from government tenant via graph api?

  11. 11

    How to run Load Testing in visual studio using Cloud servers or VM?

  12. 12

    How to deploy to Azure Cloud Service

  13. 13

    Cannot work out how to run .scm (using guile or scm) files

  14. 14

    Run DB migrations on cloud build connecting to cloud sql using private IP

  15. 15

    Cannot deploy a build in heroku (NODEJS)

  16. 16

    Qt 5 cannot deploy on SnowLeopard

  17. 17

    How do I deploy REST API using an imported array of JS objects?

  18. 18

    How to enable Cloud Firestore Native Mode using API / command line?

  19. 19

    Cloud Run and Revel Container

  20. 20

    DDOS in Cloud Run

  21. 21

    public "using" = decltype(<private>)

  22. 22

    Deploy Cloud9 IDE to Heroku?

  23. 23

    Capistrano deploy to many nodes on the same Cloud Service

  24. 24

    Google Cloud Functions(Golang)とTerraform

  25. 25

    Is there a way to emulate the run frequency of constructor code using the React Hooks API?

  26. 26

    ALM create new Test Run using JSON payload ( REST API)

  27. 27

    What is the Google Cloud Storage public read uri?

  28. 28

    Opening public socket with python in Cloud9

  29. 29

    Cannot find symbol : default access interfaces(declared in different src file) implemented on a public class java using `javac` command

ホットタグ

アーカイブ