[FOLIO-1855] Implement AWS resource clean up tool Created: 10/Mar/19  Updated: 03/Jun/20  Resolved: 11/Mar/19

Status: Closed
Project: FOLIO
Components: None
Affects versions: None
Fix versions: None

Type: Task Priority: P2
Reporter: John Malconian Assignee: John Malconian
Resolution: Done Votes: 0
Labels: ci, platform-backlog
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original estimate: Not Specified

Sprint: Core: Platform - Sprint 59
Story Points: 3
Development Team: Core: Platform

 Description   

A new FOLIO ec2 instance is built when PRs are created in platform-core and platform-complete. An automated method to tear down these instances is needed when they are no longer useful to prevent the unnecessary utilization and expense of AWS resources. Create a shell script that utilizes AWS CLI tools along with the Github API to identify AWS resource candidates for termination and schedule termination of resources at regular intervals. The script should identify instances with the 'Pr' and 'Hostname' tags and utilize tag info to make determination of state of PR ('open'/'closed') and terminate EC2 instance resources and associated disk volumes and DNS names.



 Comments   
Comment by John Malconian [ 11/Mar/19 ]

The script is called aws_pr_cleanup.sh. It lives in folio-infrastructure/CI/scripts. Script is invoked hourly via Jenkins job Automation/AWS_Cleanup

Generated at Thu Feb 08 23:16:24 UTC 2024 using Jira 1001.0.0-SNAPSHOT#100246-sha1:7a5c50119eb0633d306e14180817ddef5e80c75d.