GCP 배포 관리자를 사용하여 버킷을 만들려고합니다. 이미 퀵 스타트 가이드를 통해 compute.v1.instance
을 만들었습니다. 하지만 Google Cloud Storage에서 양동이를 만들려고하고 있지만 403 Forbidden
이외의 정보는 얻을 수 없습니다.Google Cloud Platform 배포 관리자 템플릿을 사용하여 버킷 만들기
내 템플릿 파일의 모양입니다. 내가
gcloud deployment-manager deployments create deploy-test --config deploy.yml
를 호출하고있어
resources:
- type: storage.v1.bucket
name: test-bucket
properties:
project: my-project
name: test-bucket-name
이
입니다 그리고 이것은 내가 자격 증명 설정이Waiting for create operation-1474738357403-53d4447edfd79-eed73ce7-cabd72fd...failed.
ERROR: (gcloud.deployment-manager.deployments.create) Error in Operation operation-1474738357403-53d4447edfd79-eed73ce7-cabd72fd: <ErrorValue
errors: [<ErrorsValueListEntry
code: u'RESOURCE_ERROR'
location: u'deploy-test/test-bucket'
message: u'Unexpected response from resource of type storage.v1.bucket: 403 {"code":403,"errors":[{"domain":"global","message":"Forbidden","reason":"forbidden"}],"message":"Forbidden","statusMessage":"Forbidden","requestPath":"https://www.googleapis.com/storage/v1/b/test-bucket"}'>]>
다시 받고있어, 나는 심지어 계정 소유자 세트를 만든 것입니다 자격증 명 (모든 항목에 액세스 할 수 있음)을 보내고 난 아직도이 응답을 받고 있습니다.
어떤 아이디어 나 좋은 곳을 볼 수 있나요? 내 구성입니까 아니면 요청에 추가 자격 증명을 전달해야합니까?
나는 AWS 배경에서 왔지만 여전히 GCP 주위에있는 길을 찾고 있습니다.
감사합니다.
방금이 게시물에 대한 일반 사항을 작성했습니다. 고유 한 이름을 사용하고 있습니다. 이름의 고유성 때문에 403이 다시 전송되지 않습니다. – stu
정확한 이름 규칙 ([여기] (https://cloud.google.com/storage/docs/naming)에 나열)을 확인 했습니까? [오류 코드의 Google Cloud Storage 설명서] (https://cloud.google.com/storage/docs/json_api/v1/status-codes#403_Forbidden)는이 전화를 걸 수있는 올바른 권한이 없음을 나타냅니다. . [Cloud Console] (https://console.cloud.google.com/)을 사용하여 동일한 버킷을 만들려고 했습니까? – Fematich
양해 해 주셔서 감사합니다. 당신 말이 옳았습니다. 저는 독창성을위한 충분한 조합이라고 생각되는'tf-composite-frontend-angular'라는 이름을 사용했습니다. 방금 수동으로 만들려고 시도했지만 고유하지 않다고 말하지 않았습니다. 그래서 나는'-1'을 덧붙였습니다. 다시 한번 감사드립니다. (한숨) – stu