Importing existing volume mappings of SDC using sdc_volumes_mapping resource
This guide explains how to import volumes mapped to SDC using sdc_volumes_mapping_resource. Below steps are taken from this article.
Step 1: Add the import block
import {
to = powerflex_sdc_volumes_mapping.test
id = "sdc_id"
}
Step 2: Plan and generate configuration
terraform plan -generate-config-out=test.tf
Step 3: Review generated configuration in test.tf
Step 4: Run terraform apply to import the volumes mapped to SDC. Choose only one argument from mutually exclusive arguments.
For example, choose either volume_id or volume_name from sdc_volumes_mapping resource.