Entries from 2020-05-01 to 1 month

terraformでElastiCache Redis Cluster modeをたてる

terrafromでredisを立てる場合、aws_elasticache_clusterを使う方法とaws_elasticache_replication_groupを使う方法がある。 aws_elasticache_clusterの場合ひとつのノード(cluster mode disabled)しか立てられない 。 レプリカを使う場合やCluster modeを使…

dockerでscratchイメージを使う

scratch imageとは dockerが用意した最小イメージです。 shやlsすら入っていないので、goやrustのようなシングルバイナリを生成できる言語で超軽量なコンテナを作りたい際にうってつけです。 しかし、普段各言語公式のイメージなどに慣れていると、意識せず…