Created
November 4, 2016 13:21
-
-
Save fideloper/a6296b750e8a73d0da1d54b09dd5749e to your computer and use it in GitHub Desktop.
Change many aws instances tags (boto3)
@dad2jrn If passing them as input on the CLI lookup pythons arg parser. If passing them via file it depends on the format. JSON, YAML, CSV? Basically, you would read the file into python using...
with open('data.txt', 'r') as myfile:
data = myfile.read()
You could then take that data file and turn it into json. (if it's json format)
import json
data = json.load(data)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What would this look like if I wanted to edit specific tags on a specific set of instance IDs passed either from a text file or passed as an argument?