aws vault invalid client token id error

aws-vault で InvalidClientTokenId: The security token included in the request is invalid で怒られる │ Error: error reading IAM Role (rds-enhanced-monitoring-dev-db): InvalidClientTokenId: The security token included in the request is invalid │ status code: 403, request id: d09fe380-0c00-4485-9aeb-1e58740fdcb3 ここに答えがあった Error: The security token included in the request is invalid · Issue #260 · 99designs/aws-vault · GitHub I’ve encountered the same problem. It’s caused by the AWS API restrictions, that won’t allow you to touch IAM related APIs using the account with MFA enabled, unless you pass the MFA token within the request....

2021-12-02 ·  2023-09-22 · 1 分 · 125 文字

別ファイルに書いた main パッケージの Function が undefined 判定される

別ファイルに書いた main パッケージの Function が undefined 判定される ここに答えがあった go - “undefined” function declared in another file? - Stack Overflow Please read “How to Write Go Code”. Use go build or go install within the package directory, or supply an import path for the package. Do not use file arguments for build or install. While you can use file arguments for go run, you should build a package instead, usually with go run ....

2021-11-26 ·  2023-09-22 · 1 分 · 97 文字

ConoHa WING by GMO

国内最速 レンタルサーバ 楽天ひかり

2021-06-13 ·  2021-06-13 · 1 分 · 3 文字

trap コマンドは pipe と併用すると動作しない

trap コマンドは pipe と併用すると動作しない 以下のBashスクリプトがあった場合に、パイプで出力全部ログ吐いちゃおう、 っておもったらうまくERRトラップが動かなくなったので、メモ 動くコード #!/bin/bash trap "echo Non-zero exit code detected!" ERR function fail_please() { echo "Returning non-zero exit code!" return 1 } fail_please # 出力結果 Returning non-zero exit code! Non-zero exit code detected! 動かないコード #!/bin/bash trap "echo Non-zero exit code detected!" ERR function fail_please() { echo "Returning non-zero exit code!" return 1 } fail_please |& tee log_file.log # 出力結果 Returning non-zero exit code! Bash: Trap ERR does not work when pipe operator is used The ERR trap fires for “simple commands” a pipeline is not a simple command....

2021-04-09 ·  2021-04-19 · 1 分 · 142 文字

ApiGatewayのログを ServerlessFramework で設定したい

要件としては、ApiGateway <=> Lambda の統合設定条件配下にて、 Lambdaからの応答結果が6MBを超えた場合に以下のようなログが出力される Lambda execution failed with status 200 due to customer function error: body size is too long. Lambda request id: XXXX-XXXX... これに対して、ServerlessFramework でログ設定を行いたい 参考 Serverless.yml Reference Enhancements for API Gateway REST API log setup Serverless complains about “Rest API id could not be resolved.” ApiGateway ステージ ログ/トレース の設定と動作 IAM Policy作成含め以下の設定だけで作成される provider: logs: restApi: accessLogging: false # Optional configuration which enables or disables access logging. Defaults to true....

2019-11-11 ·  2019-11-11 · 1 分 · 148 文字