python + google cloud 에서 serverless quickstart 에러
https://www.serverless.com/framework/docs/providers/google/examples/hello-world/python/
을 따라하면서 생긴 오류와 해결 방법
1.
google cloud service account 에 role 을 줄 때,
Storage Admin 을 주라고 하는데, 해당 Role 이 없다.
GCP 대시보드 오류인지 storage 입력해도 검색도 안된다.
object 로 검색해서 Storage Object Admin 을 선택하면 된다.
2. Error: Deployment failed: RESOURCE_ERROR
serverless.yml 에서 region 을 asia-southeast3-c 을 asia-northeast3 로 변경
Serverless: Configuration warning at 'provider.region': should be equal to one of the allowed values [us-central1, us-east1, us-east4, europe-west1, europe-west2, asia-east2, asia-northeast1, asia-northeast2, us-west2, us-west3, us-west4, northamerica-northeast1, southamerica-east1, europe-west3, europe-west6, australia-southeast1, asia-south1, asia-southeast2, asia-northeast3]
3. Error: Not Found
at Gaxios._request (/Users/geekslife/workspace/quantro/serverless/my-service/node_modules/gaxios/build/src/gaxios.js:127:23)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async JWT.requestAsync (/Users/geekslife/workspace/quantro/serverless/my-service/node_modules/google-auth-library/build/src/auth/oauth2client.js:343:18)
https://github.com/serverless/serverless-google-cloudfunctions/issues/246 참고해서 region: my-test 로 되어있는 부분을 region: my-tes 와 같이 변경하고 시작하니 된다.
google cloud storage 에 버킷을 생성하는 부분이 뭔가 버그가 있는 듯. 날 때도 있고 안날 때도 있고..
댓글
댓글 쓰기