The `spotinst-agent` is a Python-based executor designed as a spectrum instance agent. Its primary function is to run remote scripts, collect data, and deploy applications on machines using a polling architecture. It's an active project, with version 1.1.260 released in June 2024, and appears to follow a regular release cadence.
pip install spotinst-agentVerified import paths — ran on the pinned version, not inferred.
The `spotinst-agent` is primarily installed and deployed as a service, with its behavior configured through YAML files rather than direct Python API calls. The quickstart focuses on installation and a conceptual understanding of its operation. For programmatic interaction with Spotinst services, users should refer to the `spotinst-sdk` or `spotinst-sdk2` libraries.
Ensure your environment's Python version is compatible. Consider using a dedicated virtual environment. For new projects, evaluate if `spotinst-sdk` or `spotinst-sdk2` (which are Python 3-native) better suit your needs for API interaction.
Thoroughly review the agent's documentation for correct YAML configuration syntax and best practices. Use version control for configuration files and validate them before deployment.
Clearly define your use case: if you need to manage Spotinst resources programmatically, use `spotinst-sdk` or `spotinst-sdk2`. If you need an agent running on an instance to perform tasks, `spotinst-agent` is the correct package.
Follow the documented credential precedence. For quick setups, use environment variables (`export SPOTINST_TOKEN=...`, `export SPOTINST_ACCOUNT=...`). For production, consider using a shared credentials file or IAM roles where applicable.
No dependency data recorded yet.