Skip to content

Instantly share code, notes, and snippets.

View abuxton's full-sized avatar
💭
Always discombobulated. Never really too busy.

adam buxton abuxton

💭
Always discombobulated. Never really too busy.
View GitHub Profile
# Create kv-policy with variable for Identity Group ID
data "vault_policy_document" "group" {
rule {
path = "group-kv/data/training/{{identity.groups.ids.${vault_identity_group.group.id}.name}}/*"
capabilities = ["create", "read", "update", "delete", "list"]
description = "allow all on secrets"
}
rule {
@abuxton
abuxton / README.md
Last active January 29, 2025 13:08
debugging cloud-init and user_data on cloud platforms
@abuxton
abuxton / markdown-cheatsheet.md
Created November 16, 2022 16:41 — forked from LeanSeverino1022/markdown-cheatsheet.md
markdown cheatsheet #markdown #cheatsheet
@abuxton
abuxton / README.md
Last active October 7, 2022 12:26
tfe helper

tfe helpers

# will render output of tfe_user_data_.sh.tpl nonsensative
output "tfe_user_data" {
  value = nonsensitive(templatefile("${path.module}/templates/tfe_user_data.sh.tpl", local.user_data_args))
}
@abuxton
abuxton / Makefile
Last active September 7, 2022 11:13
makefile helper
test:
sentinel test -verbose $(shell find . -name "$(name)" -type f ! -path "*/testdata/*")
tests:
sentinel test $(shell find . -name "*.sentinel" -type f ! -path "*/testdata/*")
format:
sentinel fmt -write=true $(shell find . -name "*.sentinel" -type f)
generate:
@abuxton
abuxton / Terraform on Mac M1.md
Created August 3, 2022 10:42 — forked from straubt1/Terraform on Mac M1.md
Notes to install Terraform on M1

Installing the amd64 version of Terraform on Mac with M1

Not all Terraform providers are built for arm64.

One solution here is to install Terraform as amd64 which can be easily done from the downloads page.

However, for those who are using and switching between versions of Terraform often, a more streamlined approach is desirable.

Enter asdf.

@abuxton
abuxton / tmux.md
Created July 20, 2022 07:28 — forked from davewongillies/tmux.md
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a