How to Refresh State in Terraform
Sometimes your infrastructure may be out of sync with your Terraform state because resources may have been amended or deleted manually.
For this you …
Read Article →In-depth guides, insights, and best practices for modern software engineering
Sometimes your infrastructure may be out of sync with your Terraform state because resources may have been amended or deleted manually.
For this you …
Read Article →There isn’t really a standard way to get the length of array in C. This means you need to do some additional work to achieve getting the length …
Read Article →If/Else statements are conditional statements that perform decisions based on some known state, or variable.
Terraform allows you to perform these …
Read Article →If you need to redo a Udemy course and you would like to reset the course’s progress, then you can use the following Javascript snippet below. …
Read Article →Define a function that takes in two non-negative integers aa_a_ and bb_b_ and returns the last decimal digit of aba^b_a__b_. Note that …
Read Article →If you have tried to delete a Security Group, or VPC, or various other resources and you get the dreaded Network interface is in use by another …
We typically install an npm package as follows:
npm install <package_name>
But how do we uninstall an npm package?
Often you need to reference an HTML/CSS Color Code in RGB or Hex. This is known as rgb color codes.
Below is an easy-to-use table to find the …
Read Article →Create a function that returns the sum of the two lowest positive numbers given an array of minimum 4 positive integers. No floats or …
Read Article →If you need to sort an array of objects by their property values using Javascript, then you don’t need to look further than the built-in sort …
If you need to count down a specific amount of time, say for example, when a token is set to expire, then a countdown timer will be useful.
Terraform state reflects the most up to date reference of the infrastructure.
Sometimes you may need to remove a resource from the Terraform state …
Read Article →Running terraform destroy will tear down the whole stack associated to some terraform code.
However, sometimes you might only want to remove a …
Read Article →resource "aws_dynamodb_table" "dynamodb-terraform-state-lock" {
name = …
Read Article →
Terraform, a powerful Infrastructure as Code (IaC) tool, allows you to define and provision infrastructure resources. Properly commenting your …
Read Article →If you have Terraform reporting an error but want more information, then you can configure debug logging.
I use this when Terraform gives a vague …
Read Article →Write a program that will calculate the number of trailing zeros in a factorial of a given number.
N! = 1 * 2 * 3 * ... * N
Be careful …
Read Article →The rgb function is incomplete. Complete it so that passing in RGB decimal values will result in a hexadecimal representation being …
Read Article →If you want to rename a git branch, then you have a few options, dependent on the use-case.
git branch -a …
Read Article →
Simple, given a string of words, return the length of the shortest word(s).
The string will never be empty and you do not need to …
Read Article →You are asked to square every digit of a number and concatenate them.
For example, if we run 9119 through the function, 811181 will come …
Read Article →Return the number (count) of vowels in the given string.
We will consider a, e, i, o, u as vowels for this challenge (but not y).
The …
Read Article →Given the triangle of consecutive odd numbers:
1
3 5
7 9 11
13 15 17 19
21 23 …
Read Article →
If you are using PowerShell and trying to run a terraform init, you may get an error as follows:
Error: error accessing remote module registry
Failed …