Skip to main content

⭐ Repository β†’ πŸ“ Compliance Engine β†’ πŸ“ CloudAware β†’ πŸ“ AWS β†’ πŸ“ S3

πŸ›‘οΈ AWS S3 Bucket is located in a less cost-effective region🟒

  • Contextual name: πŸ›‘οΈ Bucket is located in a less cost-effective region🟒
  • ID: /ce/ca/aws/s3/bucket-cost-effective-region
  • Tags:
  • Policy Type: BEST_PRACTICE
  • Policy Categories: COST

Logic​

Description​

Open File

Description​

This policy identifies AWS S3 Buckets that are storing objects in regions with higher pricing compared to nearby alternatives.

Rationale​

Storage costs vary across AWS regions. Buckets located in higher-cost regions may significantly increase expenses without providing additional benefits, unless required for specific use cases such as latency optimization, compliance, or data residency. Identifying these buckets enables organizations to evaluate whether migrating them to a more cost-effective region is feasible, potentially resulting in substantial savings.

Impact​

Migrating S3 buckets to different regions requires careful planning to ensure that performance, compliance, and data sovereignty requirements are maintained.

Audit​

This policy flagged an AWS S3 Bucket as INCOMPLIANT if it resides in one of the following regions identified as less cost-efficient:

RegionRecommended Alternative
us-west-1us-west-2

... see more

Remediation​

Open File

Remediation​

To reduce storage costs, migrate S3 buckets from higher-cost regions to more cost-efficient alternatives. Since S3 buckets cannot be moved directly between regions, the recommended approach is to replicate or copy objects into a new bucket in the desired region and then decommission the original bucket once migration is complete.

From Command Line​

  1. Create a new bucket in a lower-cost region:
aws s3api create-bucket \
--bucket {{new-bucket-name}} \
--region {{target-region}} \
--create-bucket-configuration LocationConstraint={{target-region}}
  1. Synchronize objects from the existing bucket to the new bucket:
aws s3 sync s3://{{source-bucket}} s3://{{new-bucket-name}} \
--source-region {{source-region}} \
--region {{target-region}}
  1. Update applications or services to use the new bucket.

  2. Empty and decommission the old bucket once migration is validated:

aws s3 rm s3://{{source-bucket}} --recursive
aws s3 rb s3://{{source-bucket}} --force

policy.yaml​

Open File

Linked Framework Sections​

SectionSub SectionsInternal RulesPoliciesFlagsCompliance
πŸ’Ό Cloudaware Framework β†’ πŸ’Ό Resource Optimization23no data