β Repository β π Compliance Engine β π CloudAware β π Google β π Storage
π‘οΈ Google Storage Bucket is located in a less cost-effective regionπ’
- Contextual name: π‘οΈ Bucket is located in a less cost-effective regionπ’
- ID:
/ce/ca/google/storage/bucket-cost-effective-region
- Tags:
- π’ Policy with categories
- π’ Policy with type
- π’ Production policy
- Policy Type:
BEST_PRACTICE
- Policy Categories:
COST
Logicβ
- π§ prod.logic.yamlπ’
Descriptionβ
Descriptionβ
This policy identifies Google Storage Buckets that are provisioned in Google regions known to have higher pricing compared to nearby alternatives.
Rationaleβ
Cloud service costs vary across regions due to differences in infrastructure expenses, energy pricing, and regional market conditions. For workloads without strict geographic or latency requirements, deploying instances in more cost-efficient regions within the same continent can deliver significant cost savings without adversely affecting performance.
Impactβ
Migrating workloads to different regions requires careful planning to avoid service disruptions and to ensure latency, compliance, and data sovereignty requirements continue to be met.
Auditβ
This policy flagged an Google Storage Bucket as
INCOMPLIANT
if it is running in one of the following regions identified as less cost-efficient:
Region Recommended Alternative ... see more
Remediationβ
Remediationβ
Migrate Google Cloud Storage Bucketsβ
The migration depends on the size of the data to transfer:
- Option 1: Use
gcloud
(for transfers < 1 TB)- Option 2: Use Storage Transfer Service (for transfers β₯ 1 TB)
Determine Transfer Strategyβ
New bucket name:
- Applications must be updated to point to
{{destination-bucket}}
.- Steps: copy data β update applications β verify β delete original bucket.
Keep bucket name:
- Use a temporary bucket
{{temp-bucket}}
.- Steps: copy data β downtime β delete original bucket β create new bucket with same name β copy data from temporary bucket β delete temporary bucket β verify.
Note: Bucket names must be globally unique. When retaining the same name, create the new bucket immediately after deleting the old one.
From gcloud CLI (< 1 TB)β
Use this option when your data is small enough to be handled efficiently via
gcloud
CLI.Create the Destination Bucketβ
gcloud storage buckets create gs://{{destination-bucket}} \
--location={{target-region}} \
--storage-class={{storage-class}}
... [see more](remediation.md)
policy.yamlβ
Linked Framework Sectionsβ
Section | Sub Sections | Internal Rules | Policies | Flags | Compliance |
---|---|---|---|---|---|
πΌ Cloudaware Framework β πΌ Resource Optimization | 23 | no data |