val httpConf = http
.baseURL("http://IP:9200")
.acceptHeader("text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8")
.doNotTrackHeader("1")
.acceptLanguageHeader("en-US,en;q=0.5")
.acceptEncodingHeader("gzip, deflate")
.userAgentHeader("Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:16.0) Gecko/20100101 Firefox/16.0")
.shareConnections
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# simple shell script to demonstrate how EC2 Instance Connect CLI is implemented. | |
# https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AccessingInstances.html | |
# | |
# Usage | |
# $ bash eic-cli.sh i-1234 | |
if [ $# -ne 1 ]; then | |
echo "Usage" | |
echo "$ bash eic-cli.sh i-1234" |