Django on Gooogle Cloud
I’ll give a try running an Application on Google Cloud. Not with great sucess :(
Source
- https://codelabs.developers.google.com/codelabs/cloud-run-django?hl=en#0
- https://codelabs.developers.google.com/codelabs/cloud-run-hello-python3#1
Get Cloud List, Active Account
gcloud auth list
gcloud config set account 'username@gmail.com'
List Projects
gcloud config list project
[core]
project = cloud-run-372113
Your active configuration is: [cloudshell-6045]
username@cloudshell:~ (cloud-run-372113)$
Set Project ID
gcloud config set project cloud-run-372113
username@cloudshell:~ (cloud-run-372113)$ gcloud config set project cloud-run-372113
Updated property [core/project].
Enable API
gcloud services enable \
artifactregistry.googleapis.com \
cloudbuild.googleapis.com \
run.googleapis.com
username@cloudshell:~ (cloud-run-372113)$ gcloud services enable \
artifactregistry.googleapis.com \
cloudbuild.googleapis.com \
run.googleapis.com
ERROR: (gcloud.services.enable) User [username@gmail.com] does not have permission to access projects instance [cloud-run-372113] (or it may not exist): Project 'cloud-run-372113' not found or permission denied.
Help Token: AXyIxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
- '@type': type.googleapis.com/google.rpc.PreconditionFailure
violations:
- subject: ?error_code=210002&type=Project&resource_id=cloud-run-372113
type: googleapis.com
- '@type': type.googleapis.com/google.rpc.ErrorInfo
domain: serviceusage.googleapis.com
metadata:
resource_id: cloud-run-372113
type: Project
reason: RESOURCES_NOT_FOUND
username@cloudshell:~ (cloud-run-372113)$
Any Comments ?
sha256: bbf813a31c1281e47acfdca36d3b92b75b87039c93d4f295cd9a5825953e8628