β 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 with categories
- π’ Policy with type
- π’ Production policy
- Policy Type:
BEST_PRACTICE
- Policy Categories:
COST
Logicβ
- π§ prod.logic.yamlπ’
- π AWS S3 Bucket
- π AWS S3 Bucket - object.extracts.yaml
- π§ͺ test-data.json
Descriptionβ
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:
Region Recommended Alternative us-west-1 us-west-2 ... see more
Remediationβ
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β
- 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}}
- 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}}
Update applications or services to use the new bucket.
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β
Linked Framework Sectionsβ
Section | Sub Sections | Internal Rules | Policies | Flags | Compliance |
---|---|---|---|---|---|
πΌ Cloudaware Framework β πΌ Resource Optimization | 23 | no data |