Skip to Content
InfraSpec Logo

InfraSpec Virtual Cloud

Test infrastructure 100x faster. Pay 90% less. Zero cleanup.


The Problem with Testing in AWS

Testing infrastructure against real AWS is expensive, slow, and risky:

  • πŸ’Έ High costs - $0.10+ per test run adds up to thousands monthly
  • ⏱️ Slow execution - Network latency means 2-10 seconds per API call
  • πŸ”„ CI/CD bills - Every pipeline run racks up charges
  • πŸ—‘οΈ Cleanup headaches - Failed tests leave orphaned resources costing money
  • 🐌 Poor feedback loops - Slow tests kill developer productivity
  • πŸ” Security concerns - Exposing AWS credentials in CI/CD environments
Note

Real Cost Example: A team of 10 developers running 50 tests/day spends $1,000+/month on AWS testing costs alone, plus 83+ hours of wasted time waiting for slow tests.

The Solution: InfraSpec Virtual Cloud

InfraSpec Virtual Cloud is a high-fidelity AWS emulator designed specifically for infrastructure testing. It provides accurate AWS behavior without the complexity, cost, or latency of real AWS.

Key Benefits

⚑ 100x Faster

Tests run in milliseconds instead of seconds. No network latency, no API rate limits.

πŸ’° 90% Cheaper

Flat monthly rate with unlimited tests. No per-request charges, no surprise bills.

πŸ”’ Zero Credentials

No AWS credentials needed. Test safely without exposing secrets in CI/CD.

🧹 No Cleanup

Failed tests don’t leave dangling resources. Everything is ephemeral and automatic.

🎯 High Fidelity

Accurate AWS behavior without complexity. Purpose-built for infrastructure testing.

πŸš€ Unlimited Scale

Run unlimited parallel tests. No rate limits, no throttling, no quotas.

How It Works

InfraSpec Virtual Cloud runs as a managed service that emulates AWS APIs with high fidelity. Simply point your tests to Virtual Cloud instead of real AWS:

Install InfraSpec CLI

brew install infraspec # or go install github.com/robmorgan/infraspec@latest

Get Your API Token

Sign up at cloud.infraspec.sh  and get your InfraSpec Cloud Token.

Run Tests with Virtual Cloud

infraspec --virtual-cloud features/

Virtual Cloud automatically handles all AWS API calls without touching real AWS.

Always Current with AWS

AWS releases hundreds of API changes every year. Virtual Cloud stays current automatically through CloudMirror, our proprietary AWS API parity system.

πŸ”„ Weekly Analysis

CloudMirror scans the latest AWS SDK every week, identifying new operations and API changes automatically.

🎯 Smart Prioritization

Not all APIs are equal. We prioritize high-impact operations (Create, Delete, Describe) that matter most for testing.

πŸ“Š Full Transparency

Check our AWS Compatibility page for real-time coverage data on every supported service.

This means you always get accurate, up-to-date AWS behavior without waiting for manual updates. Learn more about how CloudMirror works.

How Virtual Cloud Compares to LocalStack

Already familiar with LocalStack? Here’s how InfraSpec Virtual Cloud is different:

FeatureVirtual CloudLocalStack
Primary FocusInfrastructure Code TestingGeneral AWS Emulation
Testing Frameworkβœ… Built-in (BDD/Gherkin)❌ Bring your own
Setupβœ… Single CLI command⚠️ Docker + configuration
AWS Parity Trackingβœ… Weekly (CloudMirror)βœ… Weekly
Infrastructure Assertionsβœ… 20+ built-in❌ Write your own

Usage Examples

Basic Usage

Add the --virtual-cloud flag to any InfraSpec command:

# Run tests with Virtual Cloud infraspec --virtual-cloud features/ # Run specific feature infraspec --virtual-cloud features/s3/bucket_encryption.feature

CI/CD Integration

.github/workflows/test.yml
name: Infrastructure Tests on: [push, pull_request] jobs: test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Install InfraSpec run: | curl -fsSL https://infraspec.sh/install.sh | bash - name: Run Tests run: infraspec --virtual-cloud features/ env: INFRASPEC_CLOUD_TOKEN: ${{ secrets.INFRASPEC_CLOUD_TOKEN }}

Getting Started

Sign Up

Create your InfraSpec account at cloud.infraspec.sh  and get your API token.

Configure Your Environment

Add your token to your environment or CI/CD secrets:

# Configure an environment variable export INFRASPEC_CLOUD_TOKEN="your-token-here" # Or persist it in your config file infraspec config set infraspec-cloud-token YOUR_TOKEN_HERE

Run Your First Test using Virtual Cloud

infraspec --virtual-cloud features/

Feel the Speed, See the Magic!

Your tests now run 100x faster with zero AWS costs. No cleanup needed!

Frequently Asked Questions

How accurate is Virtual Cloud compared to real AWS?

Virtual Cloud provides high-fidelity emulation of AWS APIs, matching real AWS behavior for infrastructure testing scenarios. Our CloudMirror system automatically tracks AWS SDK changes weekly, ensuring we stay current with new operations and API updates. Check our AWS Compatibility page for detailed coverage information.

Can I test against both Virtual Cloud and real AWS?

Yes! Simply omit the --virtual-cloud flag to test against real AWS. Many teams use Virtual Cloud for development and CI/CD, then validate against real AWS before production deployment.

Can I self-host Virtual Cloud?

Enterprise customers can deploy Virtual Cloud in their own infrastructure for enhanced security and compliance. Contact sales to discuss self-hosted options.

How do I migrate from LocalStack or Moto?

InfraSpec Virtual Cloud is API-compatible with standard AWS SDKs and Terraform providers. Simply point your tests to Virtual Cloud with no code changes required. Contact sales for migration assistance.

Ready to Get Started?

Virtual Cloud is available as part of an InfraSpec subscription.

Last updated on