Search found 1 match

by veera
Fri Oct 28, 2022 7:01 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: AWS cli - check if user is logged in in shell script
Replies: 1
Views: 2312

AWS cli - check if user is logged in in shell script

Trying to build a simple shell script - but in order to run AWS cli commands like aws ssm start-session I first need to check if the user is logged in. How can I do this in a shell script with the aws cli? #!/usr/bin/env bash # if no sso access token, do login if [!aws sts get-caller-identity] aws s...