Scalr is a remote state & operations backend for Terraform with full CLI support & many quality of life features
Go to siteThe Scalr API enables programmatic interaction with Scalr's infrastructure management and automation capabilities. On Pipedream, you can harness this API to create diverse workflows that automate cloud resource provisioning, management, and monitoring. These workflows can trigger on various events and integrate with other services to streamline your DevOps processes.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
scalr: {
type: "app",
app: "scalr",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://apidirectories.scalr.io/api/iacp/v3/users`,
headers: {
Authorization: `Bearer ${this.scalr.$auth.api_token}`,
"Prefer": `profile=preview`,
"Accept": `application/vnd.api+json`,
},
})
},
})
Automated Resource Scaling: Create a workflow that listens for webhooks signaling high traffic on your site. Use the Scalr API to automatically scale up your cloud infrastructure and handle the load, then scale down when traffic normalizes.
Compliance Monitoring: Set up a scheduled workflow that checks the state of your infrastructure against compliance rules. If it finds any discrepancies, the workflow can alert your team via Slack or email and even create a ticket in Jira.
Infrastructure Deployment from Git Push: Trigger a workflow on a git push event to a specific branch in GitHub. The workflow uses the Scalr API to deploy the latest version of your application on your cloud infrastructure, ensuring continuous deployment with minimal manual intervention.
Scalr uses API keys for authentication. When you connect your Scalr account, Pipedream securely stores the keys so you can easily authenticate to Scalr APIs in both code and no-code steps.
To retrieve your API Tokens,
If your Scalr dashboard URL is https://1234.scalr.io/#/19846/26051/dashboard
, your domain is 1234
.