Skip to content

Instantly share code, notes, and snippets.

View nitrocode's full-sized avatar
🚀
Thinking and typing

nitrocode nitrocode

🚀
Thinking and typing
View GitHub Profile
@nitrocode
nitrocode / copy_tags.py
Created February 25, 2021 16:25 — forked from nadirollo/copy_tags.py
python script to copy tags from a packer build into different accounts
#!/usr/bin/env python
import boto3
import os
import json
script_dir = os.path.dirname(os.path.realpath(__file__))
owner_account = 'xxxxxxxxxxx'
@nitrocode
nitrocode / update-ssm-tags.py
Last active October 1, 2020 23:33 — forked from pjaudiomv/update-ssm-tags.sh
Tags instances with detected platform_version
#!/usr/bin/env python
# Original: https://gist.github.com/pjaudiomv/ff5efca41cdb7244ef4416c6097f6a7a
import boto3
import pdb
TAG_PLATFORM_VERSION = 'platform_version'
def get_ssm_by_platform_versions(ssm_res):