Terraform setup

Does someone here have an public repo with an example terraform -> cloudflare setup?
41 Replies
Cyb3r-Jak3
Cyb3r-Jak3•3y ago
What parts/resources are you looking for with terraform?
ItsJulian
ItsJulianOP•3y ago
An example setup for cloudflare domains/dns records Based on this I want to extend this later to also include configuring cf access
Unknown User
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
ItsJulian
ItsJulianOP•3y ago
Thanks all, I will have a look at this repo!
Unknown User
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
ItsJulian
ItsJulianOP•3y ago
Thanks, do you have any tips/best practices when creating a new tf setup? For example with splitting it into multi repo or one mono repo and splitting multiple environments
Unknown User
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
ItsJulian
ItsJulianOP•3y ago
Each zone has it's own folder?
Unknown User
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
ItsJulian
ItsJulianOP•3y ago
So each domain has these files
Unknown User
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
ItsJulian
ItsJulianOP•3y ago
Ah okay and do you run your tf in a ci/cd pipeline or do you run it by hand every time
Unknown User
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
ItsJulian
ItsJulianOP•3y ago
Ah nice! Thanks for your info, I will take look! That would me nice!
Unknown User
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
ItsJulian
ItsJulianOP•3y ago
so you have a job per domain?
Unknown User
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
ItsJulian
ItsJulianOP•3y ago
Sounds like a good usecase of matrices 🤪
Unknown User
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
ItsJulian
ItsJulianOP•3y ago
Aah Thanks for all the info!
Unknown User
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
ItsJulian
ItsJulianOP•3y ago
Aah I thought you just copied the files over between domains with all code in them
Unknown User
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
ItsJulian
ItsJulianOP•3y ago
so for example you just call your nameserver module in each domain.tld/nameserver.tf file?
Unknown User
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
ItsJulian
ItsJulianOP•3y ago
So you have a shared folder or something with your modules beside your domain folder structure
Unknown User
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
ItsJulian
ItsJulianOP•3y ago
Ah okay, good to know!
Unknown User
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
ItsJulian
ItsJulianOP•3y ago
And you make your modules so that you just provide the domain and override default values when needed?
Unknown User
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
ItsJulian
ItsJulianOP•3y ago
Aaah nice
Unknown User
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
ItsJulian
ItsJulianOP•3y ago
So for this example tou automatically also create an access application?
Unknown User
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
ItsJulian
ItsJulianOP•3y ago
Yeah this will prevent a lot of duplicated code
Unknown User
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
ItsJulian
ItsJulianOP•3y ago
Thanks for all the info! You mean the person that automatically joins a chat when someone uses the word 'terraform' 😋
Unknown User
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
ItsJulian
ItsJulianOP•3y ago
Aaah nice nice
Unknown User
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server