Skip to content

Instantly share code, notes, and snippets.

Avatar

itso hslavchev

View GitHub Profile
View running_instances.txt
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
View promote_ami.yml
---
- hosts: localhost
vars:
aws_region: us-east-1
vars_prompt:
- name: "new_ami"
prompt: "What is the new AMI id?"
private: no
tasks:
- debug:
View provisioners.json
"provisioners": [
{
"type": "shell",
"inline" : "echo '### Starting provisioner ###'"
},
{
"type": "shell",
"script": "scripts/setup.sh",
"pause_before": "3s"
}
View source_ami_filter.json
"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
}
You can’t perform that action at this time.