Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/micnguyen266/lambda_jira_issue_automation
Using AWS CloudWatch Events to Invoke a Lambda Function to create a JIRA ticket using their REST API.
https://github.com/micnguyen266/lambda_jira_issue_automation
automation aws-ec2 aws-lambda cloudwatch-events jira-rest-api python
Last synced: 27 days ago
JSON representation
Using AWS CloudWatch Events to Invoke a Lambda Function to create a JIRA ticket using their REST API.
- Host: GitHub
- URL: https://github.com/micnguyen266/lambda_jira_issue_automation
- Owner: micnguyen266
- License: mit
- Created: 2020-05-28T06:44:09.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-05-31T08:04:46.000Z (over 4 years ago)
- Last Synced: 2024-04-30T01:29:46.225Z (9 months ago)
- Topics: automation, aws-ec2, aws-lambda, cloudwatch-events, jira-rest-api, python
- Language: Python
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
### Jira Issue Automation with Lambda and CloudWatch
1. Create a CloudWatch Rule that looks up the events like in the cloudwatch_event_pattern.json file.
2. Create a Lambda function and add environment variables as necessary like `JIRA_PROJECT` and `JIRA_ISSUETYPE_ID`.
Generate an API token in your JIRA service account and convert `username:api_key | base64` and insert in the headers.
3. Make sure to add the CloudWatch event as a trigger to the Lambda function.
4. Use the lambda_test_event.json file to make a test ticket. Please note in the event you would need to put an actual Instance ID as
the ec2nametag function will look up the instance tags.
5. If things are not working make sure to setup the appropriate IAM roles.### Author
Michael Nguyen https://github.com/micnguyen266