🔥 Now Live: Our Latest Enterprise-Grade Feature - Live Call Routing!

Managing Squadcast resources with our expanded Terraform provider

Sep 13, 2022
Last Updated:
Sep 13, 2022
Share this post:
Managing Squadcast resources with our expanded Terraform provider
Table of Contents:

    Hey folks! We’re excited to announce that we’ve vastly expanded the capabilities of our Terraform provider. Previously, our Terraform provider was limited to creating and managing services as a resource. We have now covered the entire spectrum of resources available on Squadcast right from creating and managing users, escalation policies and also managing SLO’s via our Terraform provider. What does that mean for you? Once you’ve created an organization within your account and configured Squadcast you can go ahead and manage our resources without having to navigate through our UI. An added advantage of this is that you can manage all of your cloud infrastructure from a single source i.e. Terraform. In this blog, we have condensed a few of the advantages of Infrastructure as Code (IaC) and a few examples of how you can configure Squadcast using our expanded Terraform provider. 

    The how and why of IaC and Terraform

    It has become standard practice for modern businesses to rely on source control for software engineering. Code reviews, change history, and the ability to roll back are among the practices required for a company to ship software quickly and efficiently. Source control is also a key component of Agile and DevOps practices along with continuous integration and continuous deployment.

    The key idea behind Infrastructure as Code(IaC) is to manage almost ‘everything’ as code, where everything involves your servers, network devices, databases, application configuration, automated tests, deployment process & cloud services like Squadcast. This consists of every stage of your infrastructure lifecycle, starting from defining, deploying, updating, and destroying. The advantage of defining every resource as IaC is you can now version control it, reuse it, validate it and build a self-service model in your organization.

    Defining your infrastructure as code also has the following advantages 

    • Improved speed: It is faster to automate than manually navigating an interface when you want to manage your resources
    • Avoid configuration drift: Writing configuration in code reduces the chances of introducing errors between deployments 
    • Improve reliability: With ever-growing infrastructure stacks, Misconfiguring your resources or services in the wrong order is a possibility. With Infrastructure as Code provisioning and configuring your resources remains under your control.
    • Single source of truth: Prevent knowledge silos caused by situations where a single engineer knows how the services and resources are configured. With IaC any engineer can quickly look at the code in a single place. 

    Terraform

    Terraform is an open-source tool created by HashiCorp. Terraform allows you to build, change, and version your infrastructure through code. 

    As the number of external services increases, Terraform has also grown to support the configuration of a variety of services. Terraform providers are available for a variety of cloud providers such as Amazon AWS, Oracle, Microsoft Azure and Google cloud to name a few. 

    We at Squadcast want to encourage our users to use Terraform with Squadcast as a single source for creating, editing and deleting resources in your account. With the increasing adoption of Terraform by teams as their tool of choice for defining parts of their infrastructure stack, we aim to make things simpler for our current and future users with the option to configure their Squadcast accounts and define their infrastructure in a single location.

    By using the Terraform provider, you can manage Squadcast’s configuration as source code. This makes it easier for your On-call and SRE teams to manage resources such as creating escalation policies, creating services and managing members of a team at scale and quickly. 

    Squadcast terraform provider 

    Before getting started with an example of how you can manage a Squadcast resource with Terraform here are a couple of helpful articles from our earlier series of informational blogs on Terraform. 

    The Squadcast’s verified provider now supports a broader range of Squadcast resources, from defining users, their roles and permissions, creating on-call schedules & to creating and managing SLO’s. Head over to our Squadcast provider documentation to see the full list of resources that are supported. 

    In order to install this provider, copy and paste this code into your Terraform configuration. Then, run terraform init.

    Before creating any Terraform files you’ll first need to generate a refresh API token in Squadcast. The key that you generate will be used as the value for the token below. The documentation for that can be found here.

    Note: The above must be done from within your profile settings in your Squadcast account. 

    For the sake of simplicity, let's assume that you will be creating resources from scratch using the terraform provider, the below example will show you how to create resources such as users. 

    To get started defining Squadcast resources with Terraform, create a directory where you want to store your Terraform (.tf) files. In that directory create a new file with the .tf extension. For the sake of his example walkthrough we are going to create a provider block for ‘Squadcast’. That block initializes the Squadcast provider, setting the value of the token using the API key generated above, and will look something like this:

    With the provider set, you’ll now use resource blocks to define the specific Squadcast resources that you want to create and manage. 

    In the below example, to create a user in Squadcast, the Terraform configuration would look something like this:

    As seen above, apart from creating the user you can also define the user's roles and abilities (permissions) that the user can have on your Squadcast account. Once you have added team members, teams & squads you can then create escalation policies

    The escalation policies can be as granular as preferred with options to define the time gap between each alert notification and the channels with which you would like to alert your on-call teams. You can also choose to repeat the sequence if none of the members present in the escalation policy has acknowledged the incident.

    Once you have done the above you can go ahead and configure your services. Services are the core of what Squadcast offers and form the most logical components of your infrastructure for which alerts are generated. An example of what that would look like on Terraform is as below. 

    Tip: In order to get the best out of Squadcast check out this blog on how you can configure your services in Squadcast based on the current architecture and the type of on-call team you currently have. 

    Conclusion 

    As we move ahead with the evolution of Squadcast, we hope the expanded capabilities of Squadcast’s Terraform provider will help you manage our resources at scale and efficiently. This is under active development and we’ll keep improving the functionality of the provider as we go. To know more about our provider and the Squadcast resources you can manage, head over to our documentation. If you have any questions, or issues or would like to submit contributions to our Squadcast provider project, head over to our repository on GitHub.  

    What you should do now
    • Schedule a demo with Squadcast to learn about the platform, answer your questions, and evaluate if Squadcast is the right fit for you.
    • Curious about how Squadcast can assist you in implementing SRE best practices? Discover the platform's capabilities through our Interactive Demo.
    • Enjoyed the article? Explore further insights on the best SRE practices.
    • Schedule a demo with Squadcast to learn about the platform, answer your questions, and evaluate if Squadcast is the right fit for you.
    • Curious about how Squadcast can assist you in implementing SRE best practices? Discover the platform's capabilities through our Interactive Demo.
    • Enjoyed the article? Explore further insights on the best SRE practices.
    • Get a walkthrough of our platform through this Interactive Demo and see how it can solve your specific challenges.
    • See how Charter Leveraged Squadcast to Drive Client Success With Robust Incident Management.
    • Share this blog post with someone you think will find it useful. Share it on Facebook, Twitter, LinkedIn or Reddit
    • Get a walkthrough of our platform through this Interactive Demo and see how it can solve your specific challenges.
    • See how Charter Leveraged Squadcast to Drive Client Success With Robust Incident Management
    • Share this blog post with someone you think will find it useful. Share it on Facebook, Twitter, LinkedIn or Reddit
    • Get a walkthrough of our platform through this Interactive Demo and see how it can solve your specific challenges.
    • See how Charter Leveraged Squadcast to Drive Client Success With Robust Incident Management
    • Share this blog post with someone you think will find it useful. Share it on Facebook, Twitter, LinkedIn or Reddit
    What you should do now?
    Here are 3 ways you can continue your journey to learn more about Unified Incident Management
    Discover the platform's capabilities through our Interactive Demo.
    See how Charter Leveraged Squadcast to Drive Client Success With Robust Incident Management.
    Share the article
    Share this blog post on Facebook, Twitter, Reddit or LinkedIn.
    We’ll show you how Squadcast works and help you figure out if Squadcast is the right fit for you.
    Experience the benefits of Squadcast's Incident Management and On-Call solutions firsthand.
    Compare our plans and find the perfect fit for your business.
    See Redis' Journey to Efficient Incident Management through alert noise reduction With Squadcast.
    Discover the platform's capabilities through our Interactive Demo.
    We’ll show you how Squadcast works and help you figure out if Squadcast is the right fit for you.
    Experience the benefits of Squadcast's Incident Management and On-Call solutions firsthand.
    Compare Squadcast & PagerDuty / Opsgenie
    Compare and see if Squadcast is the right fit for your needs.
    Compare our plans and find the perfect fit for your business.
    Learn how Scoro created a solid foundation for better on-call practices with Squadcast.
    Discover the platform's capabilities through our Interactive Demo.
    We’ll show you how Squadcast works and help you figure out if Squadcast is the right fit for you.
    Experience the benefits of Squadcast's Incident Management and On-Call solutions firsthand.
    We’ll show you how Squadcast works and help you figure out if Squadcast is the right fit for you.
    Learn how Scoro created a solid foundation for better on-call practices with Squadcast.
    We’ll show you how Squadcast works and help you figure out if Squadcast is the right fit for you.
    Discover the platform's capabilities through our Interactive Demo.
    Enjoyed the article? Explore further insights on the best SRE practices.
    We’ll show you how Squadcast works and help you figure out if Squadcast is the right fit for you.
    Experience the benefits of Squadcast's Incident Management and On-Call solutions firsthand.
    Enjoyed the article? Explore further insights on the best SRE practices.
    Written By:
    September 13, 2022
    September 13, 2022
    Share this post:
    Subscribe to our LinkedIn Newsletter to receive more educational content
    Subscribe now

    Subscribe to our latest updates

    Enter your Email Id
    Thank you! Your submission has been received!
    Oops! Something went wrong while submitting the form.
    FAQ
    More from
    Nakul Shetty
    Streamlining Incident Management with our latest feature update: Merge Incidents
    Streamlining Incident Management with our latest feature update: Merge Incidents
    September 14, 2023
    Announcing our improved Schedules & On-Call Rotations
    Announcing our improved Schedules & On-Call Rotations
    February 7, 2023
    Announcing Incident watchers: Subscribe to incidents and receive incident updates in real-time
    Announcing Incident watchers: Subscribe to incidents and receive incident updates in real-time
    October 6, 2022

    Managing Squadcast resources with our expanded Terraform provider

    Managing Squadcast resources with our expanded Terraform provider
    Sep 13, 2022
    Last Updated:
    Sep 13, 2022

    Hey folks! We’re excited to announce that we’ve vastly expanded the capabilities of our Terraform provider. Previously, our Terraform provider was limited to creating and managing services as a resource. We have now covered the entire spectrum of resources available on Squadcast right from creating and managing users, escalation policies and also managing SLO’s via our Terraform provider. What does that mean for you? Once you’ve created an organization within your account and configured Squadcast you can go ahead and manage our resources without having to navigate through our UI. An added advantage of this is that you can manage all of your cloud infrastructure from a single source i.e. Terraform. In this blog, we have condensed a few of the advantages of Infrastructure as Code (IaC) and a few examples of how you can configure Squadcast using our expanded Terraform provider. 

    The how and why of IaC and Terraform

    It has become standard practice for modern businesses to rely on source control for software engineering. Code reviews, change history, and the ability to roll back are among the practices required for a company to ship software quickly and efficiently. Source control is also a key component of Agile and DevOps practices along with continuous integration and continuous deployment.

    The key idea behind Infrastructure as Code(IaC) is to manage almost ‘everything’ as code, where everything involves your servers, network devices, databases, application configuration, automated tests, deployment process & cloud services like Squadcast. This consists of every stage of your infrastructure lifecycle, starting from defining, deploying, updating, and destroying. The advantage of defining every resource as IaC is you can now version control it, reuse it, validate it and build a self-service model in your organization.

    Defining your infrastructure as code also has the following advantages 

    • Improved speed: It is faster to automate than manually navigating an interface when you want to manage your resources
    • Avoid configuration drift: Writing configuration in code reduces the chances of introducing errors between deployments 
    • Improve reliability: With ever-growing infrastructure stacks, Misconfiguring your resources or services in the wrong order is a possibility. With Infrastructure as Code provisioning and configuring your resources remains under your control.
    • Single source of truth: Prevent knowledge silos caused by situations where a single engineer knows how the services and resources are configured. With IaC any engineer can quickly look at the code in a single place. 

    Terraform

    Terraform is an open-source tool created by HashiCorp. Terraform allows you to build, change, and version your infrastructure through code. 

    As the number of external services increases, Terraform has also grown to support the configuration of a variety of services. Terraform providers are available for a variety of cloud providers such as Amazon AWS, Oracle, Microsoft Azure and Google cloud to name a few. 

    We at Squadcast want to encourage our users to use Terraform with Squadcast as a single source for creating, editing and deleting resources in your account. With the increasing adoption of Terraform by teams as their tool of choice for defining parts of their infrastructure stack, we aim to make things simpler for our current and future users with the option to configure their Squadcast accounts and define their infrastructure in a single location.

    By using the Terraform provider, you can manage Squadcast’s configuration as source code. This makes it easier for your On-call and SRE teams to manage resources such as creating escalation policies, creating services and managing members of a team at scale and quickly. 

    Squadcast terraform provider 

    Before getting started with an example of how you can manage a Squadcast resource with Terraform here are a couple of helpful articles from our earlier series of informational blogs on Terraform. 

    The Squadcast’s verified provider now supports a broader range of Squadcast resources, from defining users, their roles and permissions, creating on-call schedules & to creating and managing SLO’s. Head over to our Squadcast provider documentation to see the full list of resources that are supported. 

    In order to install this provider, copy and paste this code into your Terraform configuration. Then, run terraform init.

    Before creating any Terraform files you’ll first need to generate a refresh API token in Squadcast. The key that you generate will be used as the value for the token below. The documentation for that can be found here.

    Note: The above must be done from within your profile settings in your Squadcast account. 

    For the sake of simplicity, let's assume that you will be creating resources from scratch using the terraform provider, the below example will show you how to create resources such as users. 

    To get started defining Squadcast resources with Terraform, create a directory where you want to store your Terraform (.tf) files. In that directory create a new file with the .tf extension. For the sake of his example walkthrough we are going to create a provider block for ‘Squadcast’. That block initializes the Squadcast provider, setting the value of the token using the API key generated above, and will look something like this:

    With the provider set, you’ll now use resource blocks to define the specific Squadcast resources that you want to create and manage. 

    In the below example, to create a user in Squadcast, the Terraform configuration would look something like this:

    As seen above, apart from creating the user you can also define the user's roles and abilities (permissions) that the user can have on your Squadcast account. Once you have added team members, teams & squads you can then create escalation policies

    The escalation policies can be as granular as preferred with options to define the time gap between each alert notification and the channels with which you would like to alert your on-call teams. You can also choose to repeat the sequence if none of the members present in the escalation policy has acknowledged the incident.

    Once you have done the above you can go ahead and configure your services. Services are the core of what Squadcast offers and form the most logical components of your infrastructure for which alerts are generated. An example of what that would look like on Terraform is as below. 

    Tip: In order to get the best out of Squadcast check out this blog on how you can configure your services in Squadcast based on the current architecture and the type of on-call team you currently have. 

    Conclusion 

    As we move ahead with the evolution of Squadcast, we hope the expanded capabilities of Squadcast’s Terraform provider will help you manage our resources at scale and efficiently. This is under active development and we’ll keep improving the functionality of the provider as we go. To know more about our provider and the Squadcast resources you can manage, head over to our documentation. If you have any questions, or issues or would like to submit contributions to our Squadcast provider project, head over to our repository on GitHub.  

    What you should do now
    • Schedule a demo with Squadcast to learn about the platform, answer your questions, and evaluate if Squadcast is the right fit for you.
    • Curious about how Squadcast can assist you in implementing SRE best practices? Discover the platform's capabilities through our Interactive Demo.
    • Enjoyed the article? Explore further insights on the best SRE practices.
    • Schedule a demo with Squadcast to learn about the platform, answer your questions, and evaluate if Squadcast is the right fit for you.
    • Curious about how Squadcast can assist you in implementing SRE best practices? Discover the platform's capabilities through our Interactive Demo.
    • Enjoyed the article? Explore further insights on the best SRE practices.
    • Get a walkthrough of our platform through this Interactive Demo and see how it can solve your specific challenges.
    • See how Charter Leveraged Squadcast to Drive Client Success With Robust Incident Management.
    • Share this blog post with someone you think will find it useful. Share it on Facebook, Twitter, LinkedIn or Reddit
    • Get a walkthrough of our platform through this Interactive Demo and see how it can solve your specific challenges.
    • See how Charter Leveraged Squadcast to Drive Client Success With Robust Incident Management
    • Share this blog post with someone you think will find it useful. Share it on Facebook, Twitter, LinkedIn or Reddit
    • Get a walkthrough of our platform through this Interactive Demo and see how it can solve your specific challenges.
    • See how Charter Leveraged Squadcast to Drive Client Success With Robust Incident Management
    • Share this blog post with someone you think will find it useful. Share it on Facebook, Twitter, LinkedIn or Reddit
    What you should do now?
    Here are 3 ways you can continue your journey to learn more about Unified Incident Management
    Discover the platform's capabilities through our Interactive Demo.
    See how Charter Leveraged Squadcast to Drive Client Success With Robust Incident Management.
    Share the article
    Share this blog post on Facebook, Twitter, Reddit or LinkedIn.
    We’ll show you how Squadcast works and help you figure out if Squadcast is the right fit for you.
    Experience the benefits of Squadcast's Incident Management and On-Call solutions firsthand.
    Compare our plans and find the perfect fit for your business.
    See Redis' Journey to Efficient Incident Management through alert noise reduction With Squadcast.
    Discover the platform's capabilities through our Interactive Demo.
    We’ll show you how Squadcast works and help you figure out if Squadcast is the right fit for you.
    Experience the benefits of Squadcast's Incident Management and On-Call solutions firsthand.
    Compare Squadcast & PagerDuty / Opsgenie
    Compare and see if Squadcast is the right fit for your needs.
    Compare our plans and find the perfect fit for your business.
    Learn how Scoro created a solid foundation for better on-call practices with Squadcast.
    Discover the platform's capabilities through our Interactive Demo.
    We’ll show you how Squadcast works and help you figure out if Squadcast is the right fit for you.
    Experience the benefits of Squadcast's Incident Management and On-Call solutions firsthand.
    We’ll show you how Squadcast works and help you figure out if Squadcast is the right fit for you.
    Learn how Scoro created a solid foundation for better on-call practices with Squadcast.
    We’ll show you how Squadcast works and help you figure out if Squadcast is the right fit for you.
    Discover the platform's capabilities through our Interactive Demo.
    Enjoyed the article? Explore further insights on the best SRE practices.
    We’ll show you how Squadcast works and help you figure out if Squadcast is the right fit for you.
    Experience the benefits of Squadcast's Incident Management and On-Call solutions firsthand.
    Enjoyed the article? Explore further insights on the best SRE practices.
    Written By:
    September 13, 2022
    September 13, 2022
    Share this post:

    Subscribe to our latest updates

    Thank you! Your submission has been received!
    Oops! Something went wrong while submitting the form.
    In this blog:
      Subscribe to our LinkedIn Newsletter to receive more educational content
      Subscribe now
      FAQ
      Learn how organizations are using Squadcast
      to maintain and improve upon their Reliability metrics
      Learn how organizations are using Squadcast to maintain and improve upon their Reliability metrics
      mapgears
      "Mapgears simplified their complex On-call Alerting process with Squadcast.
      Squadcast has helped us aggregate alerts coming in from hundreds...
      bibam
      "Bibam found their best PagerDuty alternative in Squadcast.
      By moving to Squadcast from Pagerduty, we have seen a serious reduction in alert fatigue, allowing us to focus...
      tanner
      "Squadcast helped Tanner gain system insights and boost team productivity.
      Squadcast has integrated seamlessly into our DevOps and on-call team's workflows. Thanks to their reliability...
      Alexandre Lessard
      System Analyst
      Martin do Santos
      Platform and Architecture Tech Lead
      Sandro Franchi
      CTO
      Squadcast is a leader in Incident Management on G2 Squadcast is a leader in Mid-Market IT Service Management (ITSM) Tools on G2 Squadcast is a leader in Americas IT Alerting on G2 Best IT Management Products 2022 Squadcast is a leader in Europe IT Alerting on G2 Squadcast is a leader in Mid-Market Asia Pacific Incident Management on G2 Users love Squadcast on G2
      Squadcast awarded as "Best Software" in the IT Management category by G2 🎉 Read full report here.
      What our
      customers
      have to say
      mapgears
      "Mapgears simplified their complex On-call Alerting process with Squadcast.
      Squadcast has helped us aggregate alerts coming in from hundreds of services into one single platform. We no longer have hundreds of...
      Alexandre Lessard
      System Analyst
      bibam
      "Bibam found their best PagerDuty alternative in Squadcast.
      By moving to Squadcast from Pagerduty, we have seen a serious reduction in alert fatigue, allowing us to focus...
      Martin do Santos
      Platform and Architecture Tech Lead
      tanner
      "Squadcast helped Tanner gain system insights and boost team productivity.
      Squadcast has integrated seamlessly into our DevOps and on-call team's workflows. Thanks to their reliability metrics we have...
      Sandro Franchi
      CTO
      Revamp your Incident Response.
      Peak Reliability
      Easier, Faster, More Automated with SRE.
      Incident Response Mobility
      Manage incidents on the go with Squadcast mobile app for Android and iOS devices
      google playapple store
      Squadcast is a leader in Incident Management on G2 Squadcast is a leader in Mid-Market IT Service Management (ITSM) Tools on G2 Squadcast is a leader in Americas IT Alerting on G2 Best IT Management Products 2024 Squadcast is a leader in Europe IT Alerting on G2 Squadcast is a leader in Enterprise Incident Management on G2 Users love Squadcast on G2
      Squadcast is a leader in Incident Management on G2 Squadcast is a leader in Mid-Market IT Service Management (ITSM) Tools on G2 Squadcast is a leader in Americas IT Alerting on G2
      Best IT Management Products 2024 Squadcast is a leader in Europe IT Alerting on G2 Squadcast is a leader in Enterprise Incident Management on G2
      Users love Squadcast on G2
      Copyright © Squadcast Inc. 2017-2024