Interview Prep/AWS/S3, EBS and EFS

`modify-volume` fails: `You've reached the maximum modification rate per volume limit. Wait at least 6 hours between modifications per EBS volume.`

IntermediateTroubleshootingS3, EBS and EFS
Answer

Likely causes → EBS allows one modification per volume every 6 hours, and the previous change must have reached completed or optimizing.

Diagnose →

aws ec2 describe-volumes-modifications --volume-ids vol-0abc \
  --query 'VolumesModifications[].[ModificationState,StartTime,EndTime,TargetSize,TargetIops]'

Fix →

  1. If you need space now, attach a second volume and extend with LVM, or move data out
  2. Otherwise wait, and change size, IOPS and throughput in one call: aws ec2 modify-volume --volume-id vol-0abc --size 200 --iops 6000 --throughput 500

Prevent → Right-size with headroom, and batch all attribute changes into one modification.

aws All AWS questions Roadmap: AWS core services

More on S3, EBS and EFS