Anote a conta de serviço do Cloud EKM do seu projeto. No exemplo a seguir, substitua PROJECT_NUMBER pelo número do projeto do seu projetoGoogle Cloud . Essas informações também ficam visíveis sempre que você usa o console Google Cloud para criar uma chave do Cloud EKM.
Preparar o sistema de parceiro de gerenciamento de chave externo
No sistema de parceiros de gerenciamento de chaves externas, conceda à conta de serviço Google Cloud acesso para usar a chave externa. Trate a conta de serviço como um endereço de e-mail.
Os parceiros podem usar uma terminologia diferente da usada neste tópico.
Verificar se a CLI gcloud está atualizada
Se você for usar a Google Cloud CLI, verifique se ela está atualizada com
o seguinte comando:
gcloud
gcloud components update
Como solucionar erros
Se você receber um erro ao criar ou usar uma chave do Cloud EKM, um erro será registrado. Para informações sobre como resolver problemas de erros do Cloud EKM, consulte a referência de erros do Cloud EKM.
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Informações incorretas ou exemplo de código","incorrectInformationOrSampleCode","thumb-down"],["Não contém as informações/amostras de que eu preciso","missingTheInformationSamplesINeed","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 2025-08-18 UTC."],[],[],null,["# Set up Cloud EKM via the internet\n\nThis topic is about using Cloud External Key Manager (Cloud EKM) to create and manage external keys\naccessed via the internet.\n\nBefore you begin\n----------------\n\nAfter you complete the steps below, you can begin using Cloud EKM\nkeys to protect your data.\n\n### Create a new project\n\n1. In the Google Cloud console, go to the Manage Resources page.\n\n [Go to the Manage Resources page](https://console.cloud.google.com/project)\n2. Create a new Google Cloud project or select an existing project.\n\n | **Important:** The name you use must be between 4 and 30 characters. When you type the name, the form will suggest a project ID, which you can edit. The project ID you use must be between 6 and 30 characters, with a lowercase letter as the first character. You can use a dash, lowercase letter, or digit for the remaining characters, but the last character cannot be a dash. You should be aware that some resource identifiers (such as project IDs) might be retained beyond the life of your project. For this reason, avoid storing sensitive information in resource identifiers.\n ...see naming guidelines\n3.\n [Verify that billing is enabled for your Google Cloud project](/billing/docs/how-to/verify-billing-enabled#confirm_billing_is_enabled_on_a_project).\n\n4. You can learn more about [Cloud EKM pricing](/kms/pricing).\n\n### Enable Cloud KMS\n\n1. Enable the Cloud Key Management Service API for the project.\n\n [Enable the Cloud Key Management Service API](https://console.cloud.google.com/flows/enableapi?apiid=cloudkms.googleapis.com)\n2. Make a note of your project's Cloud EKM service account. In the\n following example, replace \u003cvar translate=\"no\"\u003ePROJECT_NUMBER\u003c/var\u003e with your\n Google Cloud project's [project number](/resource-manager/docs/creating-managing-projects#identifying_projects). This\n information is also visible each time you use the Google Cloud console to create\n a Cloud EKM key.\n\n ```\n service-PROJECT_NUMBER@gcp-sa-ekms.iam.gserviceaccount.com\n ```\n\n### Prepare the external key management partner system\n\nIn the external key management partner system, grant the Google Cloud service account\naccess to use the external key. Treat the service account as an email address.\nPartners may use different terminology than that used in this topic.\n\n### Ensure gcloud CLI is up to date\n\nIf you're going to use the Google Cloud CLI, ensure that it's up-to-date with\nthe following command: \n\n### gcloud\n\n```\ngcloud components update\n```\n\nTroubleshooting errors\n----------------------\n\nIf you experience an error when creating or using a Cloud EKM key, an\nerror is logged. For information about troubleshooting Cloud EKM\nerrors, see the [Cloud EKM error reference](/kms/docs/reference/ekm_errors).\n\nWhat's next\n-----------\n\n- [Create an external key](/kms/docs/create-external-key)"]]