tech

bashで入力の冗長を減らす

何かと bash/zsh で作業していると、直近の引数を再度入力したくなることがある。便利な特殊変数を紹介。

fargate platform 1.4 で service を起動できない

今まで fargate で service を動かせていたが、platform 1.4 では動かせないことがあった。その対処法を紹介。

ECS(fargate) 起動時間をスケジュール設定する

fargate でサービスを運用していて、夜間サービスを停止したい時がある。オートスケールの設定を流用することで、夜間停止を行うことができる。

AWS Directory Service について

AWS では Active Directory / LDAP アプリケーションは大きく3つ存在している。全ての説明は Classmethod 社の記事がわかりやすかったので引用する。

ALB の設定を aws cli で確認する

ALB の設定を aws cli で確認する

no image

cannot be deleted because it is currently associated with another service

NLB を削除できない。API Gateway で VPI links で NLB を登録していたが、先にその設定を解除(削除)する必要がある。

The overall deployment failed because too many individual instances failed deployment, too few healthy instances are available for deployment, or some instances in your deployment group are experiencing problems.

CodeDeploy で Step 3 で失敗することがある。The overall deployment failed because too many individual instances failed deployment の対処。

機械学習などで使われる p50, p90, p95 (パーセンタイル)とは

パーセンタイルパーセントと、パーセンタイルを比べるとわかりやすい。一般的な パーセントの場合は、率をあらわす。50パーセントは全体に対し、半分がという意味になる。一方でパーセンタイルは似たようでちょっと違う。全体を 100個に区切り、小さい方順にソートして 何番目にあるかを表現されている。

CloudWatch の Dimensions を確認する

CLoudWatch で aws cloudwatch list-metrics --namespace AWS/ApiGateway --metric-name Count 

An error occurred (InvalidParameterException) when calling the PutSubscriptionFilter operation: Could not execute the lambda function. Make sure you have given CloudWatch Logs permission to execute your function.

An error occurred (InvalidParameterException) when calling the PutSubscriptionFilter operation: Could not execute the lambda function. Make sure you have given CloudWatch Logs permission to execute your function.