Published in Norway Community Site·Apr 27Performing Elasticsearch API calls with Terraform, part 2Configuring Terraform to call the Elasticsearch API — Photo by Eric Krull on Unsplash In the previous post, we created a script to automate calls to our Elasticsearch endpoint. Let’s now configure Terraform to use this script whenever we need to reach the API. Creating the Terraform null_resource As an example, say we wanted to add a lifecycle policy to Elasticsearch. First…Technology3 min read
Published in Norway Community Site·Apr 25Performing Elasticsearch API calls with Terraform, part 1Configuring Elasticsearch with Terraform, by means of direct API calls — Photo by Karan Thukral on Burst If you use Terraform for automating your Elasticsearch deployments, you might find that you need to call the Elasticsearch API during your Terraform runs. Although the Elasticsearch config can cover a lot of ES settings, there are certain changes that can only be made…Technology4 min read
Published in Norway Community Site·Feb 7Using SSL/TLS certificates from Azure Key Vault in Kubernetes podsHow to make Kubernetes pods trust internal HTTPS services — Photo by Parsoa Khorsand on Unsplash NOTE: This post builds upon my previous post Accessing Azure Key Vault secrets from Kubernetes, and assumes understanding of the subject discussed there. A common task I face as a DevOps engineer has to do with injecting TLS (formerly SSL) certificates into an application…Technology5 min read
Published in Norway Community Site·Jan 31Accessing Azure Key Vault secrets from KubernetesQuerying and injecting Azure Key Vault secrets into Kubernetes microservices — Photo by FLY:D on Unsplash If you use Kubernetes to run your applications, sooner or later your cluster pods will need access to secrets. Of course, putting secrets in code is a very bad idea. …Technology7 min read
Published in Norway Community Site·Jan 24Accessing multiple Azure subscriptions in a single Terraform runA tale of two Azure subscriptions — When infrastructure is declared as Terraform code, resources are usually only created in a single Azure subscription. It normally is best practice to keep multiple subscriptions separated in code, to prevent ending up with a large codebase which can be difficult to maintain and understand. However, there are times when…Technology4 min read
Jan 9Bash alias for cleaning git branchesAs a git user, I got tired of constantly seeing my list of branches grow out of control. Git is great for keeping the history of a repository, but at least for me, there isn't a lot of value in keeping deleted branches in my local history. …Technology2 min read
Published in Norway Community Site·Jun 17, 2019Don’t Shave that Yak!Yesterday, I had to do a two-line code change to a single source file in our project. Literally all that had to be done was to replace a hard-coded value into a variable. “Easy”, I thought. Lo and behold, after making the change, the CI pipeline decided it no longer…Terraform3 min read