VM をサービス アカウントとして実行する
bookmark_borderbookmark
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
VM のサービス アカウントを割り当て、アクセス スコープを追加して、サービス アカウントとして実行されるように VM を設定します。
さらに詳しい情報
このコードサンプルを含む詳細なドキュメントについては、以下をご覧ください。
コードサンプル
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["わかりにくい","hardToUnderstand","thumb-down"],["情報またはサンプルコードが不正確","incorrectInformationOrSampleCode","thumb-down"],["必要な情報 / サンプルがない","missingTheInformationSamplesINeed","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["その他","otherDown","thumb-down"]],[],[[["This code sample demonstrates how to configure a Google Compute Engine VM to use a service account."],["The configuration includes assigning a specific email to the service account and setting the scope to `cloud-platform`."],["It utilizes Terraform to define the VM resource, including specifications for the boot disk, local SSD, and network interface."],["The example showcases the recommended best practice of using a custom service account with specific permissions granted via IAM Roles to enhance security."]]],[]]