Forum Topic

Thanks for your participation and contribution.


Back to AWS

List and Delete AWS Signalling Channels

Post a reply
149 views
i90runner1
i90runner1

Delete AWS Signalling Channels

https://docs.aws.amazon.com/cli/latest/reference/kinesisvideo/index.html#cli-aws-kinesisvideo

aws kinesisvideo   list-signaling-channels --profile serviceaccount --max-items 5 | jq '.ChannelInfoList[].ChannelARN' | xargs -t -n 1  aws kinesisvideo  delete-signaling-channel  --profile serviceaccount  --channel-arn 

With DateTime Filter

$ aws kinesisvideo   list-signaling-channels --profile prodsvc --max-items 5 | jq '.ChannelInfoList | { "cn": .[].ChannelName , "ct": .[].CreationTime } | select( ._ct < "2020-11-18T15:22:23.243000-06:00") | .cn' | xargs -t -n 1 echo  "aws kinesisvideo  

Last updated

i90runner1
i90runner1

Using temporary credentials with AWS resources

https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_use-resources.html

export AWS_ACCESS_KEY_ID=AKIAI44QH8DHBEXAMPLE
export AWS_SECRET_ACCESS_KEY=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
export AWS_SESSION_TOKEN=AQoDYXdzEJr...<remainder of security token>
aws ec2 describe-instances --region us-west-1
aws kinesisvideo   list-signaling-channels --region us-west-2

Last updated

1-2 of 2

Reply to this discussion

You cannot edit posts or make replies: You should be logged in before you can post.