Skip to main content

Scan Using EC2 Instance Connect

cnspec lets you remotely scan EC2 instances using EC2 Instance Connect:

  1. Open a terminal.
  2. Set the AWS_REGION environment variable where the instance is running.
  3. Run: cnspec scan aws ec2 instance-connect USER@HOST
USERYour user name for the AWS account
HOSTThe instance's public IP address or DNS

To learn about configuring EC2 instances with EC2 Instance Connect, read Connect to your Linux instance using EC2 Instance Connect in the AWS documentation.

Learn more

To learn about...Read...
Scanning with AWS SSMScan Using AWS Systems Manager
Scanning from a workstationScan from a Workstation
Snapshot scanningScan an EBS Snapshot
Continuous AWS scanningContinuously Scan AWS
cnspecThe cnspec documentation