Skip to content

Instantly share code, notes, and snippets.

Avatar

Mathew Werber matwerber1

  • Seattle
View GitHub Profile
@matwerber1
matwerber1 / cross-account-sqs.py
Last active Apr 19, 2021
Cross-Account SQS via IAM or Resource Policies
View cross-account-sqs.py
import boto3
import botocore.exceptions
from boto3.session import Session
import json
import datetime
import os
# Scenario
# ------------------------------
# Account A contains an SQS queue, and Account B would like to write to the queue.
@matwerber1
matwerber1 / ec2-node-amzn.sh
Created Sep 26, 2018 — forked from ogckw/ec2-node-amzn.sh
ec2-amazon-linux-node-userdata
View ec2-node-amzn.sh
#!/bin/bash
# Program:
# EC2 initially install node.js, git for development environment.
# You can modify nodev and nvmv for changing node and nvm version.
# Set permission to ec2-user install above.
# History:
# 2017/07/25 Hans First release
home=/home/ec2-user
nodev='8.11.2'
nvmv='0.33.11'