This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import logging | |
import boto3 | |
from botocore.exceptions import ClientError, BotoCoreError | |
import requests | |
from requests import RequestException | |
def get_instance_name(): | |
try: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "", | |
"Effect": "Allow", | |
"Principal": { | |
"Service": "lambda.amazonaws.com" | |
}, | |
"Action": "sts:AssumeRole" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This snippet goes in your tumblr html theme right after you've loaded the analytics.js library. | |
// Use this to replace analytics.page() in the generic analytics.js library setup code. | |
// Homepage blog views will be tracked as analytics.page("Blog", "Home"), | |
// whereas individual post views will be tracked as analytics.page("Blog", "Post") with metadata. | |
{block:PermalinkPage} | |
{block:Posts} | |
{block:Text} | |
{block:Title} | |
analytics.page("Blog", "Post", { | |
postTitle: "{PlaintextTitle}", |