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 →56 articles about terraform development, tools, and best practices
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 →If/Else statements are conditional statements that perform decisions based on some known state, or variable.
Terraform allows you to perform these …
Read Article →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.
export …
Read Article →
If you have an aws_lambda_function block that needs to make use of environment variables, then you can simply do the following:
resource …
Read Article →
If you need to generate a random number or string in Terraform, then you can use the following:
resource "random_id" "myrandom" { …
Read Article →
If you have received the following error while trying to issue commands to kubectl:
Unable to connect to the server: dial tcp: lookup
Then it may be …
Read Article →Storing Terraform states files locally is not recommended. Instead you should use a backend such as as S3 from AWS.
To do this, you just need to add …
Read Article →An output in Terraform is a way to view the result of an action that has been performed, or resource that has been created.
Let’s say that you …
Read Article →