How to Create a DynamoDB Lock Table for Terraform
Provision the DynamoDB Table
resource "aws_dynamodb_table" "dynamodb-terraform-state-lock" {
name = …
Read Article →
52 articles about terraform development, tools, and best practices
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 →If you are automating AWS resources in Terraform, then you will want to not hardcode things as much as possible.
Terraform makes it possible to pull …
Read Article →AWS AppStream has finally made its way into the Terraform AWS Provider.
If you are using hashicorp/aws
version 3.67
or above, then you can do the …
If you have been handed the Acquiring state lock
error message about ConditionalCheckFailedException: The conditional request
then you have 2 options …
If you need to lock an AWS Lambda function down to a source account for security reasons (PCI.Lambda.1) then you can do so by using the source_account …