You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since the output is truncated I currently have to split up some workloads and execute them in sequence. Every time a new client is created the connection has to be established and waited for.
Reusing the same client will drasitacally improve the speed.
Implementation Idea
New function executeCommand(t testing.TestingT, client *ssm.SSM, command string) (*CommandOutput, error) .
This can then be used in a loop without reestablishing the connection every time.
I could send a PR if this is something you guys/gals would like to include into the SSM module.
The text was updated successfully, but these errors were encountered:
What I would like to do:
Why?
https://github.com/gruntwork-io/terratest/blob/master/modules/aws/ssm.go#L138 always creates a new client.
Since the output is truncated I currently have to split up some workloads and execute them in sequence. Every time a new client is created the connection has to be established and waited for.
Reusing the same client will drasitacally improve the speed.
Implementation Idea
New function
executeCommand(t testing.TestingT, client *ssm.SSM, command string) (*CommandOutput, error)
.This can then be used in a loop without reestablishing the connection every time.
I could send a PR if this is something you guys/gals would like to include into the SSM module.
The text was updated successfully, but these errors were encountered: