Skip to content

Instantly share code, notes, and snippets.

View tmichelet's full-sized avatar

Tristan Michelet tmichelet

View GitHub Profile
@tmichelet
tmichelet / ec2_instances.py
Created January 5, 2016 23:24
list ec2 instances for an access key
import boto
import boto.ec2
accounts = [
('<AWS_access_key_id>', '<AWS_secret_access_key>'),
]
REGIONS = ['us-east-1', 'us-west-2', 'us-west-1']
for key, secret in accounts:
@tmichelet
tmichelet / aws.py
Last active October 3, 2015 00:09
[AWS] display metrics and contexts
import boto
import boto.ec2
import boto.ec2.cloudwatch
accounts = [
('<key>', '<secret>'),
]
regions = [r.name for r in boto.ec2.regions()]
for key, secret in accounts:
for region in regions:
@tmichelet
tmichelet / readme.md
Last active September 22, 2015 21:05
Multi Datadog accounts

How to be part of several Datadog accounts

My org has several accounts, how do I join them?

Just ask someone to invite you from the orgs you want to join.

I'm an admin and I want to create another account for my org

  1. Ask support@datadoghq.com to enable multi accounts for your organization
  2. go to app.datadoghq.com/account/new_org from your main account, and chose an account name