Skip to content

Instantly share code, notes, and snippets.

View svenikea's full-sized avatar
🏠
Working from home

John Wick svenikea

🏠
Working from home
View GitHub Profile
@reegnz
reegnz / README.md
Last active June 14, 2023 19:20
Using terraform for_each and toset instead of count

Using terraform for_each and toset instead of count

Using terraform count and the pain of working with it

If you're using terraform extensively you probably ran into an issue like this.

This is a synthetic example but I still hope the problem is recognizable as something that also happens out in the wild.

First, you have a list variable (in terraform.tfvars)

@bgauduch
bgauduch / multiple-repository-and-identities-git-configuration.md
Last active July 17, 2024 12:57
Git config with multiple identities and multiple repositories

Setup multiple git identities & git user informations

/!\ Be very carrefull in your setup : any misconfiguration make all the git config to fail silently ! Go trought this guide step by step and it should be fine 😉

Setup multiple git ssh identities for git

  • Generate your SSH keys as per your git provider documentation.
  • Add each public SSH keys to your git providers acounts.
  • In your ~/.ssh/config, set each ssh key for each repository as in this exemple: