It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How can I use OAuth between JIRA and AWS Lambda? Edited


I wish to use a lambda function in AWS to create issues in JIRA using the jira-python sdk. I want to authenticate with OAuth, but need some help getting going. 

Basically, I am unsure of what to put as my application url in JIRA's "Application Links"

Do I need to build a custom application in AWS?

Any help will be greatly appreciated, thanks!

3 answers

0 votes

You do not need to build a custom application in AWS for this to work, and as per Mibex Software's nice walk through on How to use OAuth with Atlassian products you can "just use any application URL"- their example is based on Bamboo, but applies to JIRA as well:

While Atlassian’s cloud solutions like Bitbucket Cloud make it very easy to use OAuth, the behind-the-firewall editions of Atlassian products like Bamboo Server make this significantly harder — yet not impossible. In this blog post, we will show you how you can access Bamboo’s REST API with OAuth1. To achieve this, we’ll make use of application links. Although we have chosen Bamboo here, the basic procedure is the same for JIRA, Confluence and Bitbucket Server.



Can we auto generate the jira tickets on getting alams from aws cloudwatch , using http auth?

Sure, you can either use the Jira REST API, possibly via a client library for your language of choice (see other answer), or given you are on AWS already, you could also reuse the existing AWS-CreateJiraIssue Systems Manager Automation document that does the heavy lifting for you.

First you have to store your credentials in the Systems Manager Parameter Store - the automation flow might then be:

  1. CloudWatch triggers alarm and sends notification to SNS topic
  2. Lambda function subscribed to that topic is executed and:
    • Either retrieves auth SSM parameter and creates issue via Jira REST API
    • Or executes AWS-CreateJiraIssue SSM automation document (which implicitly retrieves the auth SSM parameter too)

Hi Steffen,

Thanks for the reply. I have a query regarding this i.e. how do I link the cloudwatch alarm and the lambda function. For example: If I am getting alarms for cpu over utilisation (I am aware of the inbuilt ec2 monitoring) then how to trigger lambda on getting that alarm so that when the lambda function gets triggered a ticket is created in jira.


Thanks and Regards,


Hi Alex,


Do you have a sample python code to create issue in jira from AWS Lambda?

Can you please pass it to me here?

I am currently working on it and badly in need of the code.

Hi Alex

Check out the Python Jira library -

You can include this in a Lambda deployment package.



Hi Alex,

I work with miniOrange,an Atlassian marketplace vendor.

We provide a REST API authentication app for Jira which can authenticate the APIs using AWS as OAuth provider.

If you're using Jira's REST API's to create an issue in your Lambda function, then you can use this app to authenticate it using AWS's OAuth access token.

If you would like to explore this solution further, just drop us an email at, we would love to discuss your use case further.




Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira

Demo Den Ep. 7: New Jira Cloud Reports

Learn how to use two new reports for next-gen projects in Jira Cloud:  Cumulative flow diagram and Sprint burndown chart. Ivan Teong, Product Manager, Jira Software, demos the Cumulative ...

344 views 1 3
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you