Code | Title | Duration | Link |
---|---|---|---|
Keynote | Andy Jassy Keynote Announcement Recap | 0:01 | https://www.youtube.com/watch?v=TZCxKAM2GtQ |
Keynote | AWS re:Invent 2016 Keynote: Andy Jassy | 2:22 | https://www.youtube.com/watch?v=8RrbUyw9uSg |
Keynote | AWS re:Invent 2016 Keynote: Werner Vogels | 2:16 | https://www.youtube.com/watch?v=ZDScBNahsL4 |
Keynote | [Tuesday Night Live with Jame |
#!/usr/bin/env python | |
# Simple [boto3](https://github.com/boto/boto3) based EC2 manipulation tool | |
# | |
# To start an instance, create a yaml file with the following format: | |
# | |
# frankfurt: | |
# - subnet-azb: | |
# - type: t2.micro | |
# image: image-tagname |
from fabric.api import env | |
env.use_ssh_config = True | |
env.forward_agent = True | |
env.roledefs = { | |
# key # hostname from config | |
'foo': ['foo.production'], | |
} |
def get_account_id(context): | |
return context.invoked_function_arn.split(':')[4] | |
def lambda_handler(event, context): | |
print("My account ID is %s" % get_account_id(context)) |
# -*- coding: utf-8 -*- | |
''' | |
Functions to interact with the state compiler on the master | |
''' | |
from __future__ import absolute_import | |
import pprint | |
# Import salt libs | |
import salt.utils.minion |
import boto3 | |
def role_arn_to_session(**args): | |
""" | |
Usage : | |
session = role_arn_to_session( | |
RoleArn='arn:aws:iam::012345678901:role/example-role', | |
RoleSessionName='ExampleSessionName') | |
client = session.client('sqs') | |
""" |
Idea is that we can setup salt-api to receive hook call from GitHub, and configured run stat.sls
only if the request HMAC signature matche is successful.
Unfortunately most documentation says to deactivate salt-api hooks authentication (i.e. webhook_disable_auth: True
) which is not a good idea.
This Gist is about finding a way to declare which state to run based on data GitHub sends on push hook. But ONLY if the request is valid.
Skeleton defines desired logic, see reactor_github_push.py below.
A curated list of AWS resources to prepare for the AWS Certifications
A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.
For more about AWS and AWS Certifications and updates to this Gist you should follow me @leonardofed
from _pytest.junitxml import LogXML, Junit | |
from io import open | |
import pytest | |
import sys | |
import time | |
class MultiRunXml(LogXML): | |
""" | |
This is a wrapper around Pytest's LogXML, which |