My Jenkins Master working on Windows Server and want to run a shell script with GitBash. I want to attach the EBS volume to EC2. When I run "awscli" command in GitBash, I am getting a weird invalid parameter.
$ aws ec2 attach-volume --device /dev/sdf --volume-id vol-0d5736e1b8be30e92 --instance-id i-036540a7e7bbf712b
An error occurred (InvalidParameterValue) when calling the AttachVolume operation: Value (C:/Program Files/Git/dev/sdf) for parameter device is invalid. C:/Program Files/Git/dev/sdf is not a valid EBS device name.