Overview
To migrate data to Google Cloud Storage, you must first create a destination "bucket" and grant the CloudM Migrate service account the necessary permissions to write data into it.
This guide covers the required steps:
- Create a Storage Bucket: Setting up the new location for your migrated data.
- Grant Bucket Permissions: Allowing the CloudM Migrate service account to add objects to the new bucket.
- Configure KMS Key Permissions: An optional step for encrypting the new data with a customer-managed encryption key (CMEK).
Prerequisites
Before you begin, ensure you have the following:
- A Google Cloud Project with the Storage API enabled.
- The email address of the Service Account you created specifically for CloudM Migrate.
Step 1: Create a Storage Bucket
- Navigate to the Google Cloud Console.
- Using the navigation menu (☰), go to Cloud Storage > Buckets.
- Click Create Bucket.
- Follow the on-screen instructions to name and configure your bucket (e.g., location, storage class).
- Important: Make a note of the bucket name, as you will need it for your CloudM Migrate configuration.
- Click Create.
Step 2: Grant Write Permissions to the Service Account
Now that the bucket exists, you must authorize the CloudM Migrate service to write data to it.
- From the Storage Browser, locate the bucket you just created.
- Click the vertical three-dots menu (⋮) on the right-hand side of your bucket's row and select Edit access.
- Click the Add Principal button.
- In the New members field, paste the email address of your CloudM Migrate Service Account.
- In the Select a role dropdown menu, search for and select the Storage Object Admin role. This role provides the necessary permissions to create and manage objects in the bucket.
- Click Save.
Step 3: Configure KMS Key Permissions for Encryption (Optional)
Complete this step only if you want to encrypt the migrated data using a customer-managed KMS key.
- First, identify your project's Cloud Storage Service Account.
- In the Google Cloud Console, navigate to Cloud Storage > Settings.
- Under the Cloud Storage Service Account section, copy the Service Account email address.
- Next, navigate to the KMS key settings.
- Using the navigation menu (☰), go to Security > Key Management
- Select the Key Ring and then the specific Key you want to use for encryption.
- In the right-hand panel, select the Permissions tab. If the panel is not visible, click Show Info Panel.
- Click the Add Member button.
- In the New members field, paste the Cloud Storage Service Account email address you copied in step 1.
- In the Select a role dropdown menu, search for and select the Cloud KMS CryptoKey Encrypter/Decrypter role.
- Click Save.
Your Google Cloud Storage bucket is now correctly configured as a migration destination. If using the KMS Key, this can be setup within the destination settings in the batch configuration.