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 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: |
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
#!/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 |
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 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", |
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
# 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 |
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
Cable Modem Status | |
Item Status Comments | |
Acquired Downstream Channel (Hz) | |
402750000 | |
Locked | |
Ranged Upstream Channel (Hz) | |
39400000 | |
Locked | |
Provisioning State |
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
Schema: factory-2019-04-01 | |
Products: | |
- Name: "aws-config-enable-config" | |
Owner: "[email protected]" | |
Description: "Enables AWS Config" | |
Distributor: "cloud-engineering" | |
SupportDescription: "Speak to [email protected] about exceptions and speak to [email protected] about implementation issues" | |
SupportEmail: "[email protected]" | |
SupportUrl: "https://wiki.example.com/cloud-engineering/governance/aws-config-enable-config" | |
Tags: |
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
#!/bin/sh | |
# guide on how to add global git hooks: | |
# https://coderwall.com/p/jp7d5q/create-a-global-git-commit-hook | |
# add this as a pre-push git hook | |
# .git/hooks/pre-push | |
remote="$1" | |
url="$2" | |
REGION=$(git remote -v | grep codeco | awk -F\/ '{print $3}' | awk -F. '{print $2}' | uniq) |
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
Set-ExplorerOptions -showHiddenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions | |
Enable-RemoteDesktop | |
cinst puppet |
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
1 2016-02-12 | |
1 2016-02-16 | |
1 2016-02-24 | |
1 2016-03-02 | |
1 2016-03-18 | |
1 2016-03-24 | |
1 2016-04-07 | |
1 2016-04-08 | |
1 2016-04-12 | |
1 2016-04-27 |
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
# Add the following 'help' target to your Makefile | |
# And add help text after each target name starting with '\#\#' | |
# A category can be added with @category | |
HELP_FUN = \ | |
%help; \ | |
while(<>) { push @{$$help{$$2 // 'options'}}, [$$1, $$3] if /^(\w+)\s*:.*\#\#(?:@(\w+))?\s(.*)$$/ }; \ | |
print "usage: make [target]\n\n"; \ | |
for (keys %help) { \ | |
print "$$_:\n"; $$sep = " " x (20 - length $$_->[0]); \ |
NewerOlder