HOW TO USE TERRAFORM WITH LOCAL AWS (EMULATED WITH LOCALSTACK)?
Recently I was working on a project that involved provisioning an environment on AWS using Terraform, in order to test the setup during development I leaned on LocalStack to emulate AWS services to have a fast feedback loop for testing and avoid incurring costs. I faced an issue as I couldn’t figure out how could Terraform connect to my local AWS (LocalStack) instead of the actual one seamlessly, some online resources suggeted installing additional tools like tflocal or awslocal OR changing the aws provider configuration to use LocalStack endpoints.
Read moreRAILS CUSTOM ENVIRONMENT CREDENTIALS MIGRATION
Introduction Rails 5.2 introduced a new credentials API where one could store key/value pairs in an encrypted file - which can and should be checked in your git repository - managed by rails and rails would generate a key file - which shouldn’t be checked in - in order to decrypt the first file. The credentials are managed using: bin/rails credentials:edit which would generate by default: config/credentials.yml: the encrypted file config/master.key: key to decrypt the file Since at this time there was no enviroment (i.e.: staging, production, … etc) specific API, one would usually build some structure in the key/value pairs to represent enviroment specific credentials, for example:
Read moreHOW TO USE SELECTABLE OBJECTS IN GARMIN CONNECTIQ APPS
This post describes how to use Selectable objects in Garmin ConnectIQ apps with a practical example and code snippets. First what is Selectable? as per Garmin SDK documentation: Selectable is the class representation of an on-screen selectable object with defined states depending on selection mode. In other words it’s the UI element to handle user input on watches with touch screens, it becomes inevitable to use in case there are no physical buttons (other than the main select button) - Vivoactive watches for example. It’s available since SDK version 2.1.0.
Read moreESTABLISH STATIC WEBSITE USING HUGO, RENDER, CLOUDFARE AND IMPROVMX
Let me kick off this blog by telling how was it built. With the various static websites frameworks and infrastructure services out there, there are quite a lot of ways one can take to make a blog. The good thing about the one I’m going to describe is that it costs nothing 😄 completely free*. * As long as the providers stick to their word and keep the services free.
Read more