Skip to content

Instantly share code, notes, and snippets.

View hslavchev's full-sized avatar

itso hslavchev

  • New York, NY
View GitHub Profile
Running instances: 1035
AMIs in use: 3
AMI ID Created Nodes Apps Applications Using This AMI
------------ ---------- ----- ---- ---------------------------
ami-0110b111 2019-02-21 980 5 appa, appb, appc, appd, appe
ami-01a1a110 2019-02-11 50 1 testc
ami-0a1a1010 2019-03-05 5 2 testa, testb
---
- hosts: localhost
vars:
aws_region: us-east-1
vars_prompt:
- name: "new_ami"
prompt: "What is the new AMI id?"
private: no
tasks:
- debug:
"provisioners": [
{
"type": "shell",
"inline" : "echo '### Starting provisioner ###'"
},
{
"type": "shell",
"script": "scripts/setup.sh",
"pause_before": "3s"
}
"source_ami_filter": {
"filters": {
"virtualization-type": "hvm",
"name": "ubuntu/images/hvm-ssd/*ubuntu-bionic-18.04-amd64-server-*",
"root-device-type": "ebs"
},
"owners": ["099720109477"],
"most_recent": true
}