agent/ssm/ssm.go
func GetSecretsFromSSM(names []string, client SSMClient) (map[string]string, error) {
	var secretNames []*string
	for _, name := range names {
		secretNames = append(secretNames, aws.String(name))
	}

	in := &ssm.GetParametersInput{
		Names:          secretNames,
		WithDecryption: aws.Bool(true),
	}

	out, err := client.GetParameters(in)
	if err != nil {
		return nil, err
	}

	return extractSSMValues(out)
}
func GetSecretsFromSSM(names []string, client SSMClient) (map[string]string, error) {
	var secretNames []*string
	for _, name := range names {
		secretNames = append(secretNames, aws.String(name))
	}

	in := &ssm.GetParametersInput{
		Names:          secretNames,
		WithDecryption: aws.Bool(true),
	}

	out, err := client.GetParameters(in)
	if err != nil {
		return nil, err
	}

	return extractSSMValues(out)
}
func GetSecretsFromSSM ( names [ ] string , client SSMClient ) ( map [ string ] string , error ) { var secretNames [ ] * string for _ , name := range names { secretNames = append ( secretNames , aws . String ( name ) ) } in := & ssm . GetParametersInput { Names : secretNames , WithDecryption : aws . Bool ( true ) , } out , err := client . GetParameters ( in ) if err != nil { return nil , err } return extractSSMValues ( out ) }
// GetSecretFromSSM makes the api call to the AWS SSM parameter store to
// retrieve secrets value in batches
GetSecretFromSSM makes the api call to the AWS SSM parameter store to retrieve secrets value in batches