Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- EFS_SERVER_IPS_ARRAY=( $(aws efs describe-mount-targets --file-system-id ${SharedFileSystem} | jq '.MountTargets[].IpAddress' -r) )
- echo "IPs in EFS_SERVER_IPS_ARRAY:"
- for element in "${!EFS_SERVER_IPS_ARRAY[@]}"
- do
- echo "$element"
- echo "$element $MOUNT_SOURCE" >> /etc/hosts
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement