EXAMPLE
Source Provisioning
Demonstrates JIT (Just-in-Time) [source provisioning](https://atmos.tools/cli/commands/terraform/source/) from both **local** and **remote** sources.
Try it out
- Install Atmos
- Try the example
Copy the example into a new directory and make it your own:
atmos init examples/source-provisioning
cd source-provisioning
Follow the README for prerequisites and next steps.
See it in action
RECORDED DEMO Real commands. Real output.
README.md1.2 KB
View on GitHubSource Provisioning
Demonstrates JIT (Just-in-Time) source provisioning from both local and remote sources.
Components
| Component | Source Type | URI |
|---|---|---|
weather | Local | ../demo-library/weather |
ipinfo | Remote | github.com/cloudposse/atmos//examples/demo-library/ipinfo |
Usage
cd examples/source-provisioning# Local source - no network requiredatmos terraform plan weather --stack dev# Remote source - vendors from GitHubatmos terraform plan ipinfo --stack dev# List provisioned workdirsatmos terraform workdir list
Key Concepts
- Local Paths - Relative paths like
../demo-library/weather - Remote URIs - GitHub URLs with version pinning
- Workdir Isolation - Both types provision to
.workdir/
Cleanup
rm -rf .workdir/