Skip to main content

Tag: Cloudflare

Deploying a serverless website

I have been using the following techniques to deploy my (this) website automatically from GitHub to Cloudflare Pages for a few years now. The best part is that you can have all this for free; of course, you still need to pay for a domain, nothing is 100% free in life, right? Before we start, I’d like to clarify that this will not be a step-by-step guide on creating a pipeline to deploy your website.

Using Gitlab-CI to manage your Terraform/Cloudflare configuration

Everyone who uses Cloudflare already known the quality and reliability even for free plan users. So I don’t need any kind of backup alright? Wrong. We are humans and shit happens… all time… always. Actually, at this moment, someone are making a mistake. Ask to Murphy. That’s why it’s a good idea use Terraform and use a versioning system to maintain a history of modifications. Well, basically you will need to create a new repository in yours Gitlab account (if you didn’t yet), add your terraform files into this repository.

Gerenciando as configurações no Cloudflare com Terraform

A intenção aqui é ir direto ao ponto e mostrar por meio de exemplos como gerenciar seu DNS e algumas configurações da sua conta no Cloudflare utilizando o Terraform. As vantagens deste modelo são inúmeras, entre elas a facilidade de ter sua estrutura definida por código, a possibilidade de versionamento, um backup para algum eventual problema… As respectivas documentações podem ser encontradas nos links abaixo: Cloudflare Provider - Terraform Cloudflare Terraform Docs - Cloudflare $ tree .