In the past, managing IT infrastructure was a hard job. It required a lot of manual effort and it was hard to keep track of all the necessary information (monitoring, scalability etc). Thankfully, as time went on new frameworks emerged like Infrastructure as Code (IaC) and Cloud Computing. IaC is favorable because in addition to being cost effective and easily maintainable it also increases the speed at which infrastructure can be deployed. Developers like it because it makes it easier to build infrastructure, increases consistency, and makes infrastructure changes easy to track.
Atlassian and AWS are committed to developing integrations that enable teams to do their best work. Whether your team is already on the cloud, or moving to the cloud, the integrations allow for growth and scale of your business.
Enter Atlassian’s Opsgenie as an AWS CloudFormation Resource. AWS CloudFormation is an IaC offering which gives you an easy way to model, provision and manage a collection of related AWS and third-party resources throughout their lifecycle. You can now use a template to launch Opsgenie resources and their dependencies as a stack. Leveraging AWS’s third-party resource extension capability, Atlassian Opsgenie has created its own custom Opsgenie CloudFormation Resources to provide its users an easy and efficient way to maintain and manage Opsgenie as well as AWS Resources at one place.
This integration not only provides you the flexibility to easily create, update, delete your Opsgenie resources—but also provides a seamless option to model, provision and manage your resources. Simply put all of your Opsgenie configuration in a single JSON file then create and maintain your stack with the help of CloudFormation. Currently, Atlassian’s Opsgenie supports three kinds of resources, namely:
To create Opsgenie resources via CloudFormation, first you’ll need to set up your Opsgenie account.
Add Opsgenie Resources to your CloudFormation registry
You can add Opsgenie Resources to your CloudFormation Registry in two ways:
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "OG user",
"Parameters": {
"OpsgenieApiKey":{
"Description":"Enter Opsgenie Api Key",
"Type":"String"
},
},
"Resources": {
"TestUser": {
"Type": "Atlassian::Opsgenie::User",
"Properties": {
"OpsgenieApiKey": {"Ref": "OpsgenieApiKey"},
"OpsgenieApiEndpoint": "https://api.opsgenie.com",
"Username": "test-user@opsgenie.com",
"FullName": "test user",
"Role": "User"
}
}
}
}
You can either use the AWS CloudFormation console or command line tool. In this article we are going to create the resources via the AWS console.
Step 1: In your AWS CloudFormation console click “create stack” in the top right corner and choose an option.
Step 2: Upload the resource json file which you have already created and click on Next. You can also give the s3 link of your JSON file.
Step 3: Specify the Stack Name and OpsgenieApiKey in the respective fields and click on Next.
Step 4: On the Configure stack options page, fill up the required fields and click Next.
Step 5: Review your changes and click on Create Stack.
TADAAA! Your stack is created.
You’ll now be able to see the user resource created in your Opsgenie account by going to Settings > Users page.
We’re so excited to be able to offer this integration to our customers so they can easily deploy Opsgenie resources as part of their stack. Try it out and let us know what you think.
Tohfa Rabab
0 comments