Skip to content

Instantly share code, notes, and snippets.

View eamonnfaherty's full-sized avatar

Eamonn Faherty eamonnfaherty

View GitHub Profile
Cable Modem Status
Item Status Comments
Acquired Downstream Channel (Hz)
402750000
Locked
Ranged Upstream Channel (Hz)
39400000
Locked
Provisioning State
# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
AWSTemplateFormatVersion: '2010-09-09'
Description: IAM Role needed to use AWS Organizations to assume role into member AWS Accounts.
Parameters:
ServiceCatalogFactoryAccountId:
Description: The account you will be installing AWS Service Catalog Factory into
Type: String
@eamonnfaherty
eamonnfaherty / gist:7ac332daf24a0d6d7fc313c8ba72045c
Created January 20, 2021 15:07
terminates products, deletes products and portfolios across your org
import boto3
from multiprocessing import Pool
import traceback
# config
account_access_role_arn = "arn:aws:iam::{}:role/OrganizationAccountAccessRole"
regions_to_clean = [
"eu-west-1",
"eu-west-2",
#!/usr/bin/env bash
set -e
echo "Starting to prune change sets"
ALL_STACKS=$(aws cloudformation list-stacks --stack-status-filter CREATE_COMPLETE UPDATE_COMPLETE UPDATE_ROLLBACK_COMPLETE --query 'StackSummaries[].StackName' --output text)
for STACK_NAME in $ALL_STACKS
do
import json
import yaml
import os
from pathlib import Path
def load_manifest(manifest_path):
# Load the expanded manifest YAML file
with open(manifest_path, 'r') as f: