Skip to content

Instantly share code, notes, and snippets.

View BennyG93's full-sized avatar

Ben Groves BennyG93

  • Eterlast
  • Barcelona
View GitHub Profile

Managing Environments

While doing my normal googling to figure out how other people were managing their config in their react native projects, I came across two seemingly popular methods that I unfortunately just did not click with. So I ended up creating my own workflow for managing and changing between environments.

React-native-config

Firstly I discovered react-native-config, it seemed great and boasted a 12-factor approach, however it just seemed a bit complex for what I was looking for (called me lazy) I didn't want configure something in 2 different way for both iOS and Android.

React-native-dotenv

@BennyG93
BennyG93 / terraform_dynamic_resource_loops.md
Created October 14, 2019 12:58
How to produce dynamic resources in terraform 12 from 2 lists

Producing dynamic resources in Terraform 12 from 2 lists

Now that Terraform 12 has been released and iterated on a few times, the highly anticipated for_each argument has officially been integrated directly inside the resource and data blocks. Allowing for the creation of dynamic blocks.

This for_each resource loop accepts any map or set to produce its dynamic set of resources.

e.g.

Keybase proof

I hereby claim:

  • I am bennyg93 on github.
  • I am bennyg (https://keybase.io/bennyg) on keybase.
  • I have a public key ASC82UYs1LZPbKNNuGiGGjLGyDQch44In5yPz8bmyWc8Rgo

To claim this, I am signing this object: