IaC
This is a quick reference guide for adding tags in AWS CDK. Introduction Environment Adding Tags in CDK Examples Adding Tags at the Stack Level Adding Tags at the Construct Level Note: Deprecated Tag Assignment Method Conclusion References…
This article describes how to nest Stacks when deploying with AWS CDK. Introduction Environment Nesting Stacks in CDK Problem: Stacks Cannot Be Simply Nested Solution: Use NestedStack Conclusion References Introduction When I tried to nest…
This article summarizes the basic commands frequently used in AWS CDK. Introduction Environment CDK Commands Summary Check CDK Version Install CDK Create CDK Project Preparation Before Running CDK Commands List CDK Stacks Generate CloudFor…
This guide explains how to dynamically configure backend settings for storing Terraform state files. Introduction How to Dynamically Configure the Terraform Backend Conclusion References Introduction I encountered a use case where I needed…
A quick reference for how to get the AWS region in Terraform. Introduction Getting AWS Region in Terraform How to do it Bonus: Reading the Terraform Source Code Conclusion References Introduction When working with AWS resources in Terrafor…
This is a brief guide on how to retrieve the current AWS account ID in Terraform. Introduction Getting AWS Account ID in Terraform How to Do It Bonus: Reading the Terraform Source Code Conclusion References Introduction When writing Terraf…
Understanding the behavior of Terraform's one() function. Introduction Understanding the Behavior of one() Specification of one() Examples When to Use one() Conclusion References Introduction Terraform provides a one() function. Because th…
This post explains how to output a resource in Terraform when its creation is controlled using the count parameter. Introduction Outputting Resources Controlled by count Method 1: Use the one Function Method 2: Use the try Function Conclus…
This post explains the CloudFormation template that sets up the backend (S3/DynamoDB) to store Terraform state. Introduction CloudFormation Template to Provision Terraform Backend Conclusion References Introduction How to provision the bac…
This is a quick note on how to change the log output level in Terraform. Introduction Outputting DEBUG-Level Logs in Terraform Setting Log Levels Separately for Terraform and Providers Appendix: Reading Terraform's Source Code Conclusion R…
This post summarizes how to use !FindInMap inside !Sub in AWS CloudFormation. Introduction Using !FindInMap Inside !Sub Conclusion References Introduction CloudFormation's !Sub is a function that substitutes values into a string, while !Fi…
This article summarizes how to use the ternary operator in Terraform, along with practical examples. Introduction Ternary Operator in Terraform How to Use Practical Examples Simple Example Combining Conditions Example of Type Casting Error…