이름
gdcloud iam service-accounts keys create - 서비스 계정의 비공개 키가 포함된 애플리케이션 기본 사용자 인증 정보 JSON 파일을 만듭니다.
개요
gdcloud iam service-accounts keys create FILE_NAME [flags]
설명
프로젝트의 서비스 계정에 공개 키/비공개 키 쌍을 만들고 비공개 키를 JSON 파일에 넣습니다. 이 파일을 사용하여 AIS에서 STS 토큰으로 교환할 수 있습니다.
EXAMPLES
To create an application default credentials JSON file "/tmp/my-key.json" for service account "psa-test" in project "iam-test" using cacert file "/tmp/ca.crt", run:
gdcloud iam service-accounts keys create /tmp/my-key.json --iam-account=psa-test --project=iam-test --ca-cert-path=/tmp/ca.crt
필수 플래그
--iam-account string Project's service account to create the key for. The flag is required to run the command.
선택적 플래그
--ca-cert-path string CA cert path to verify the authentication endpoint. If omitted, then the system cert chain will be used.
GDCLOUD 전체 플래그
이러한 플래그는 모든 명령어에서 사용할 수 있습니다(--configuration, --format, --help, --project, --quiet).
자세한 내용은 gdcloud CLI 참조 개요 페이지를 참고하세요.