Cloud

How to Output DEBUG-Level Logs in Terraform

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…

Using !FindInMap Inside !Sub | CloudFormation

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…

How to Operate as ec2-user or root in Session Manager | AWS Systems Manager

This post summarizes how to work as ec2-user or root user in AWS Systems Manager (SSM) Session Manager. Introduction Working as ec2-user or root with Session Manager Current Situation: Shell Access as ssm-user Solution: sudo su --login ec2…

Get the Absolute Path of the Default Working Directory in GitHub Actions

This is a note on how to get the absolute path of the default working directory in GitHub Actions. Introduction Getting the Absolute Path of the Default Working Directory Cannot Retrieve Using ${{ env.GITHUB_WORKSPACE }} Can Be Retrieved U…

"aws s3 cp" vs "aws s3 sync": Key Differences

This post explains the differences between the AWS CLI commands s3 cp and s3 sync. Introduction Key Differences Between cp and sync Comparing Descriptions Comparing Command Options Comparing Command Behaviors Simple S3 copy Copy updated S3…

How to Handle Errors in boto3 | AWS SDK for Python

This article summarizes how to handle errors in boto3, AWS SDK for Python. Introduction Handling Errors in boto3 Using client.exceptions Using botocore.exceptions Example Code Handling BucketAlreadyExists error in S3 create_bucket Handling…

boto3 vs boto: Differences and History

This post summarizes the differences between boto3 and boto, the origins of "boto" itself, and the history of the AWS SDK for Python. Introduction The History of AWS SDK for Python Differences Between boto3 and boto What Happened to boto2?…

How to Use the Ternary Operator in Terraform

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…

S3 Bucket Policies and IAM Policies: How They Work Together

This post provides an overview of how S3 bucket policies and IAM policies interact for both same-account and cross-account access scenarios. Introduction S3 Bucket Policies and IAM Policies: How They Work Together Conclusion First Preparat…

What is SKU in Azure?

Understanding The meaning of SKU in Azure. Introduction What is SKU in Azure? What does SKU stand for? What does SKU mean in Azure? Conclusion References Introduction I've been using AWS for a long time, but recently I started learning Azu…