
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
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@latestGet 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:
| Feature | Virtual Cloud | LocalStack |
|---|---|---|
| Primary Focus | Infrastructure Code Testing | General 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.featureCI/CD Integration
GitHub Actions
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_HERERun 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.