Untitled

 avatar
unknown
plain_text
10 months ago
879 B
8
Indexable
public static String sendCommandToInstances(SsmClientWrapper ssmClient, List<String> instances, String documentName,
            Map<String, List<String>> documentParameters, String ssmbucketName, String outputS3KeyPrefix) {
        SsmClientWrapper.CommandIdBuilder sendCommandRequestBuilder = ssmClient.SendCommandToInstances();
        sendCommandRequestBuilder.parameters(documentParameters)
                .instanceIds(instances)
                .deliveryTimeoutInSeconds(SSM_DELIVERY_TIMEOUT_IN_SECONDS)
                .outputS3BucketName(ssmbucketName)
                .documentName(documentName)
                .outputS3KeyPrefix(outputS3KeyPrefix);

        // add more logs for MVP debugging
        log.info("Document Name: {}", documentName);
        log.info("Document Parameters: {}", documentParameters);

        return sendCommandRequestBuilder.build();
    }
Editor is loading...
Leave a Comment