- 'postgres' user is superuser
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
# ============================================================================= | |
# Install AzCopy on Windows (PowerShell) | |
# https://docs.microsoft.com/en-us/azure/storage/common/storage-use-azcopy-v10 | |
# https://github.com/Azure/azure-storage-azcopy | |
# ----------------------------------------------------------------------------- | |
# Developer.......: Andre Essing (https://www.andre-essing.de/) | |
# (https://github.com/aessing) | |
# (https://twitter.com/aessing) | |
# (https://www.linkedin.com/in/aessing/) | |
# ----------------------------------------------------------------------------- |
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/env python3 | |
""" | |
Script to turn all the SSM parameters in one region into terraform resources | |
it can also turn them into JSON with get_parameters_with_values_as_json() | |
Use different regions with the env var AWS_DEFAULT_REGION | |
ie for Northern Cali use: | |
export AWS_DEFAULT_REGION=us-west-1 | |
""" |
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/bash | |
# requires: | |
# - https://github.com/hashicorp/terraform-config-inspect | |
# - jq | |
# - sort | |
terraform-config-inspect --json | jq -r '.variables | keys | .[]' | sort |
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 python | |
""" | |
sort terraform variables | |
it's easy to do, just follow these steps: | |
python sort_terraform_variables.py variables.tf > sorted_variables.tf | |
mv sorted_variables.tf variables.tf | |
""" | |
from __future__ import print_function | |
import sys |
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 python3 | |
import argparse | |
import boto3 | |
import json | |
import os | |
from datetime import datetime | |
parser = argparse.ArgumentParser( | |
description='Saves all messages from an AWS SQS queue into a folder.') |
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": "VisualEditor0", | |
"Effect": "Allow", | |
"Action": [ | |
"lambda:CreateFunction", | |
"lambda:ListVersionsByFunction", | |
"dynamodb:DeleteItem", |
Things I wish they'd told me
When you try to debug something in packer by making a change in the Ansible role
you want to see the effect immediately. To do that just symlink your project
in ~/.ansible/roles
with whatever name you are referencing it with.
So, for example, a project refered to as rhythmic.jetty
which is locally in ansible-role-jetty
:
`ln -s $(pwd)/ansible-role-jetty ~/.ansible/roles/rhythmic.jetty`