Automating AWS EBS Volume Conversion
In this guide, you will configure Guardrails policies to automate the conversion of AWS EBS volumes, managing volume performance configurations including IOPS capacity, throughput, and volume type.
Refer to the AWS EBS Volume documentation for additional information about the prerequisites and conversion process.
Prerequisites
Turbot/Adminpermissions at the Turbot resource level.- Familiarity with AWS EBS volume types and performance characteristics.
Overview of Policy Settings
The policy settings below are part of the AWS > EC2 > Volume > Performance Configuration policy family.
Performance Configuration Policy
- URI:
tmod:@turbot/aws-ec2#/policy/types/volumeConfiguration - Valid Values:
Skip: Bypasses the performance configuration.Check: Configured per Configuration > * policies: Verifies the volume's configuration against specified policies.Enforce: Configured per Configuration > * policies: Ensures the volume's configuration adheres to specified policies.
- Default:
Skip
IOPS Capacity
- URI:
tmod:@turbot/aws-ec2#/policy/types/volumeConfigurationIopsCapacity - Schema: Numeric value defining the IOPS capacity.
- Default: Uses the current IOPS value for the volume.
Throughput
- URI:
tmod:@turbot/aws-ec2#/policy/types/volumeConfigurationThroughput - Minimum: 125 MiB/s
- Maximum: 1000 MiB/s
- Default: Uses the current throughput value for the volume.
Volume Type
- URI:
tmod:@turbot/aws-ec2#/policy/types/volumeConfigurationType - Valid Values:
io1,io2,gp2,gp3,sc1,st1,standard - Default: Preserves the current volume type.
Step 1: Identify Volume Requirements
Determine the performance requirements of your applications, including IOPS, throughput, and volume type.
Step 2: Configure Policies
Based on your requirements, set the appropriate policy values for IOPS Capacity, Throughput, and Volume Type. Use the Enforce: Configured per Configuration > * policies option under the Performance Configuration Policy to automatically apply these configurations.
Consider using calculated policies to properly identify source and target volume types. For example, while gp3 volumes are popular and performant, they are not the universal best volume type for all workloads.
Step 3: Apply Policies
Implement these policies within your Guardrails workspace. This can be done through the Guardrails console or Guardrails Terraform, depending on your preference.
Step 4: Review
After applying the policies, monitor the performance of your EBS volumes. Adjust the policy settings as necessary to optimize performance and costs.
Troubleshooting
| Issue | Description | Guide |
|---|---|---|
| Volume not converting | The Performance Configuration policy may be set to Skip or Check instead of Enforce. | Verify the policy is set to Enforce: Configured per Configuration > * policies. |
| Conversion fails for io1/io2 volumes | Provisioned IOPS volumes have specific constraints on IOPS-to-size ratios. | See AWS EBS Volume documentation. |
| Further assistance | If the issue persists. | Open a Support Ticket |