Skip to content

Instantly share code, notes, and snippets.

View JamesLochhead's full-sized avatar

James Lochhead JamesLochhead

View GitHub Profile
@JamesLochhead
JamesLochhead / list.txt
Created December 14, 2022 10:31 — forked from shortjared/list.txt
List of AWS Service Principals
a4b.amazonaws.com
access-analyzer.amazonaws.com
account.amazonaws.com
acm-pca.amazonaws.com
acm.amazonaws.com
airflow-env.amazonaws.com
airflow.amazonaws.com
alexa-appkit.amazon.com
alexa-connectedhome.amazon.com
amazonmq.amazonaws.com
@JamesLochhead
JamesLochhead / terragrunt.hcl
Last active June 6, 2022 17:42
My terragrunt.hcl
remote_state {
backend = "s3"
generate = {
path = "backend.tf"
if_exists = "overwrite"
}
config = {
bucket = "CHANGME-${local.environment}-${local.aws_region}"
key = "${path_relative_to_include()}/terraform.tfstate"
region = local.aws_region
@JamesLochhead
JamesLochhead / ansible_summary.sh
Created December 18, 2021 21:32
One liner to summarise Ansible Tasks
sed 's/- name: /\t/g' <(find -wholename "*tasks/main.yml" -exec printf "\n{}\n\n" \; -exec grep "\- name" {} \;)