Control Oracle Cloud Egress & Storage Charges
In this article
Oracle Cloud’s “always free” tier and low-cost compute are attractive, but unexpected egress (data transfer out) and storage fees can appear on your bill if you’re not careful. This guide shows you how to monitor, limit, and reduce these charges using built-in Oracle Cloud tools and a few configuration changes. You’ll learn how to set up budgets and alerts, check your current usage, and adjust your resources to avoid surprises.
What You'll Need
- An active Oracle Cloud account with access to the OCI Console (tenancy administrator or a user with permissions to view usage and manage budgets).
- Basic familiarity with the OCI Console navigation (the hamburger menu top-left).
- If you have multiple compartments, know which compartment holds your resources (or use the root compartment for a tenancy-wide view).
Step-by-Step
- Check your current egress and storage usage. Go to the OCI Console, open the hamburger menu, and select Billing & Cost Management → Usage Report. Here you can run a report for a specific time range. Filter by service (e.g., “Object Storage”, “Block Storage”, “Virtual Cloud Network”) and look for usage types like “Egress” or “Data Transfer Out”. This shows you what’s currently generating charges.
- Set up a budget and alert. In the same Billing section, select Budgets. Click Create Budget. Choose the scope (usually “Tenancy” for an overall view), set the amount you’re comfortable with (e.g., $50/month), and configure alert rules. You can get email alerts when you reach 50%, 75%, and 100% of your budget. This is your first line of defense—you’ll know before the bill spikes.
- Enable cost tracking tags (optional). If you want to track costs per project or team, create tags under Governance & Administration → Tag Namespaces. Apply them to your resources (e.g., “project:website”). Then, in the Usage Report, group by tag to see which resource is driving charges.
- Reduce egress charges by using the right services. Egress costs apply when data leaves Oracle’s network to the internet. To minimize this:
- Use Object Storage with a public bucket only when necessary; instead, use pre-authenticated requests or private buckets with VCN access.
- If you serve content to users, use Oracle Cloud CDN (if available in your region) to cache data at edge locations, reducing direct egress.
- For large data transfers, consider using OCI Data Transfer (physical appliance) or FastConnect for dedicated connectivity—these often have lower per-GB costs than internet egress.
- Optimize storage costs. Review your storage usage:
- In Object Storage, use lifecycle policies to automatically move objects to Archive Storage (cheaper) after a set number of days, and delete old versions if you don’t need them.
- For Block Volume, check for unattached volumes and delete them. Also, consider using lower-cost block volume (e.g., balanced instead of high-performance) if your workload allows.
- For File Storage, delete unused snapshots and old files.
- Use the “Always Free” tier wisely. Oracle’s free tier includes 10GB of Object Storage, 200GB of Block Volume, and 10TB of egress per month (as of this writing). Make sure you stay within these limits. If you exceed them, you’ll be charged at standard rates. Check the current free tier limits in the Oracle Cloud documentation because they can change.
- Monitor with the Cost Analysis tool. Under Billing & Cost Management → Cost Analysis, you can create custom charts to see daily egress and storage costs. Set up a recurring schedule to email you a report weekly.
- Shut down idle resources. If you have compute instances that are not in use, stop them. Stopped instances do not incur compute charges, but the attached block volumes still incur storage charges. Consider terminating them if you don’t need them, and remember to delete the boot volume.
- Use Network Firewall or Security Lists to block unexpected egress. If you suspect a compromised instance is sending data out, review your security lists and network security groups. Ensure only necessary ports are open. You can also use Flow Logs to see traffic patterns and identify anomalies.
Common Mistakes
- Forgetting to delete terminated instances’ boot volumes. When you terminate an instance, the boot volume is not automatically deleted. You must manually delete it under Block Storage → Boot Volumes.
- Ignoring egress from backups. If you back up data to another region, that’s egress. Keep backups in the same region to avoid cross-region egress fees.
- Using public buckets for static assets. Every download from a public bucket incurs egress. Use a CDN or private bucket with signed URLs.
- Not setting up budgets. Many users only realize the charges after the bill arrives. A budget alert can save you from a shock.
Tips
- Set your budget alert at 80% of your expected spend, not 100%, so you have time to react.
- Use the OCI CLI or SDK to script a daily usage report and send it to a Slack channel or email.
- For Object Storage, enable versioning only if you need it; each version counts as a separate object and increases storage.
- If you’re using the free tier, keep an eye on the Free Tier Limits page in the console—it shows your current usage against the limits.
- Consider using Arm-based compute instances (like the VM.Standard.A1.Flex) which are part of the free tier and can handle many workloads, saving you money on compute.
Troubleshooting
- I see egress charges even though I’m within the free tier. Check the free tier limits—some services like File Storage or certain egress types may not be covered. Also, ensure you’re using the correct region; free tier is per tenancy, not per region.
- My budget alert didn’t trigger. Alerts are based on forecasted spend, not actual. If you’re spending in a burst, the forecast may not catch up. Set a lower threshold (e.g., 50%) and also check the “Actual Spend” report.
- I can’t see the Usage Report. You need the
Usage Reportpermission. Ask your administrator to grant you theBILLING_USAGE_READpolicy. - I deleted a bucket but still see storage charges. Object Storage charges may include multipart uploads or incomplete uploads. Check for “incomplete multipart uploads” and delete them. Also, ensure you’ve emptied the bucket before deletion.
- Egress charges are higher than expected. Check if you have any cross-region replication enabled. Also, review your Flow Logs to see if there’s unexpected traffic from a compromised instance.
Frequently Asked Questions
Q: Is there any way to avoid egress charges entirely?
A: Not entirely, but you can minimize them by keeping data within Oracle’s network (e.g., using VCN peering) and using CDN for public content. The free tier includes 10TB of egress per month, which is generous for most small workloads.
Q: How do I see my current storage usage?
A: In the OCI Console, go to Billing & Cost Management → Usage Report, filter by service (Object Storage, Block Storage, File Storage), and look for usage types like “Storage”. You can also see per-resource usage in each service’s dashboard.
Q: What is the cost of egress per GB?
A: It varies by region and volume tier. As of this writing, the first 10TB per month is free (for all customers, not just free tier), then it drops to around $0.0085/GB for the next 10TB, and so on. Check the official pricing page for your region.
Q: Can I set a hard limit on egress to prevent overage?
A: No, Oracle does not offer a hard cap. You can only set budget alerts. To enforce a limit, you would need to implement your own monitoring (e.g., a script that shuts down instances when egress exceeds a threshold).
Q: Are there any charges for data transfer between availability domains?
A: Yes, inter-AD data transfer incurs charges. Keep your resources in the same AD to avoid this.
Q: How do I delete an unattached block volume?
A: In the console, go to Block Storage → Block Volumes, find the volume with status “Available” (not attached), click the three-dot menu, and select “Terminate”. Confirm the deletion.