session manager をコードから扱う
ECS exec
https://github.com/aws/copilot-cli/blob/6ec69950bc2d458ef9667284211fe1435c9b2f16/internal/pkg/aws/ecs/ecs.go#L308-L323
https://github.com/aws/copilot-cli/blob/7b874e974105890eeb2e3775870881d7cc077f71/internal/pkg/exec/ssm_plugin.go#L51-L61
ecs.ExecuteCommand を叩いて、返ってきたセッション情報を session-manager-plugin に渡して実行すれば良い
どのような引数が渡せるか?
https://github.com/aws/aws-cli/blob/45b0063b2d0b245b17a57fd9eebd9fcc87c4426a/tests/unit/customizations/ecs/test_executecommand_startsession.py#L137-L146
第4引数には
StartSession の入力
を json にして渡せる?
ドキュメントの指定やポートフォワードのパラメータとかも渡せる?