copyright | lastupdated | keywords | subcollection | ||
---|---|---|---|---|---|
|
2019-04-03 |
service instance, create service instance, KMS service instance, Key Protect service instance |
key-protect |
{:shortdesc: .shortdesc} {:codeblock: .codeblock} {:screen: .screen} {:new_window: target="_blank"} {:pre: .pre} {:tip: .tip} {:note: .note} {:important: .important}
{: #provision}
You can create an instance of {{site.data.keyword.keymanagementservicefull}} by using the {{site.data.keyword.cloud_notm}} console or the {{site.data.keyword.cloud_notm}} CLI. {: shortdesc}
{: #provision-gui}
To provision an instance of {{site.data.keyword.keymanagementserviceshort}} from the {{site.data.keyword.cloud_notm}} console, complete the following steps.
- Log in to your {{site.data.keyword.cloud_notm}} account
{: new_window}.
- Click Catalog to view the list of services that are available on {{site.data.keyword.cloud_notm}}.
- From the All Categories navigation pane, click the Security and Identity category.
- From the list of services, click the {{site.data.keyword.keymanagementserviceshort}} tile.
- Select a service plan, and click Create to provision an instance of {{site.data.keyword.keymanagementserviceshort}} in the account, region, and resource group where you are logged in.
{: #provision-cli}
You can also provision an instance of {{site.data.keyword.keymanagementserviceshort}} by using the {{site.data.keyword.cloud_notm}} CLI.
-
Log in to {{site.data.keyword.cloud_notm}} through the {{site.data.keyword.cloud_notm}} CLI{: new_window}.
ibmcloud login
{: pre} Note: If the login fails, run the
ibmcloud login --sso
command to try again. The--sso
parameter is required when you log in with a federated ID. If this option is used, go to the link listed in the CLI output to generate a one-time passcode. -
Select the account, region, and resource group where you would like to create a {{site.data.keyword.keymanagementserviceshort}} service instance.
You can use the following command to set your target region and resource group.
ibmcloud target -r <region_name> -g <resource_group_name>
{: pre}
-
Provision an instance of {{site.data.keyword.keymanagementserviceshort}} within that account and resource group.
ibmcloud resource service-instance-create <instance_name> kms tiered-pricing
{: pre}
Replace
<instance_name>
with a unique alias for your service instance. -
Optional: Verify that the service instance was created successfully.
ibmcloud resource service-instances
{: pre}
{: #provision-service-next-steps}
To find out more about programmatically managing your keys, check out the {{site.data.keyword.keymanagementserviceshort}} API reference doc {: new_window}.