Skip to content
View drone.md

Hosted Drone with commercial subscription

Automatic Discovery.. I don't have organization access to accept the integration, ie. No organization access granted, access requested.

Using the manual add with capitalone/cloud-custodian

Status Code:500 Internal Server Error
Not Found
View gist:47f3083716bfa690ce3a
# Query values over instance population for a given tag key.
jp -f "ec2-instances.json" "[].Tags[?Key == 'downtime'].Value[]"
View stsassume.py
from botocore.credentials import RefreshableCredentials
from botocore.session import get_session
from boto3 import Session
def assumed_session(role_arn, session_name, session=None):
"""STS Role assume a boto3.Session
With automatic credential renewal.
View lambda-bug.sh
#!/bin/bash
set -e
FNAME="maid-dev-test-11"
echo "Create Project Directory"
mkdir -p project-dir/
echo "Create Lambda Function"
View lambda execution output test
Log output
The area below shows the logging calls in your code. These correspond to a single row within the CloudWatch log group corresponding to this Lambda function. Click here to view the CloudWatch log group.
START RequestId: 2644abca-b08d-11e5-a8cb-e1cccca020f0 Version: $LATEST
Unable to import module 'lambda_function': No module named lambda_function
END RequestId: 2644abca-b08d-11e5-a8cb-e1cccca020f0
REPORT RequestId: 2644abca-b08d-11e5-a8cb-e1cccca020f0 Duration: 72.41 ms Billed Duration: 100 ms Memory Size: 128 MB Max Memory Used: 8 MB
View objcount.py
from datetime import datetime, timedelta
import boto3
import pprint
import os
def main():
bucket = os.environ.get('BUCKET')
View attendees.py
import csv
import pythonkc_meetups.client
from pythonkc_meetups import PythonKCMeetups
pythonkc_meetups.client.GROUP_URLNAME = "Ansible-NOVA"
m = PythonKCMeetups('API_KEY')
events = m.get_upcoming_events()
attendees = m.get_event_attendees(events[0].id)
with open('attendees.csv', 'w') as fh:
View contexts.py
import os
import subprocess
import yaml
from charmhelpers.core import hookenv
LATEST = "latest"
class Service(dict):
View lsblk.py
import subprocess
import re
regex = re.compile('([A-Z]+)=(?:"(.*?)")')
parts = "NAME,KNAME,MODEL,UUID,SIZE,ROTA,TYPE,MOUNTPOINT,MAJ:MIN"
def blocks():
blocks = []
output = subprocess.check_output([
"sudo", "lsblk", "-P", "-o",
Something went wrong with that request. Please try again.