Skip to content

Instantly share code, notes, and snippets.

View alex4108's full-sized avatar
🛥️
Sailing the seas

Alex Schittko alex4108

🛥️
Sailing the seas
View GitHub Profile
@alex4108
alex4108 / cleanup-ami.py
Created November 28, 2020 07:56 — forked from marvinpinto/cleanup-ami.py
Python script to clean up and update the Jenkins AMIs after a successful Packer run
#!/usr/bin/python
import requests
import os
import boto.ec2
import sys
import re
build_url = os.environ['BUILD_URL']
jenkins_base_url = os.environ['JENKINS_URL']