Tagged aws
Recently, I was creating a terraform module that creates an S3 bucket. An S3 bucket can only have one aws_s3_bucket_policy, and the module needed to include a default policy to force TLS v1.2. I also needed to be able to pass additional policy statements to the module which may or may not include a condition. Unfortunately, there is not an obvious way to include the condition only when it is part of the policy. This post shows how you can include a nested dynamic condition block when the block exists, and exclude it if it doesn't.
Tags [ terraform ] [ optional ] [ dynamic ] [ aws ] [ iam ] [ s3 ]
Tags [ terraform ] [ optional ] [ dynamic ] [ aws ] [ iam ] [ s3 ]
This is a quick overview of how to pass custom configuration values to EKS managed addons using Terraform.
Tags [ addon ] [ aws ] [ eks ] [ clusterip ] [ kubernetes ] [ coredns ] [ daily note ] [ terraform ] [ configuration ] [ jq ]
Tags [ addon ] [ aws ] [ eks ] [ clusterip ] [ kubernetes ] [ coredns ] [ daily note ] [ terraform ] [ configuration ] [ jq ]
There is no packaged version of certbot for Amazon Linux so we have to download and set it up manually. Running it the first time will install all dependencies and should then work to create and renew certificates. Unfortunately, the first run on Amazon Linux gives us and error instead of a working certbot. :(
Tags [ AWS ] [ EC2 ] [ SSL ] [ Let's Encrypt ] [ certbot ]
Tags [ AWS ] [ EC2 ] [ SSL ] [ Let's Encrypt ] [ certbot ]