CloudAWS
Scan Using EC2 Instance Connect
This document covers the configuration and use of EC2 Instance Connect to scan EC2 instances.
cnspec lets you remotely scan EC2 instances using EC2 Instance Connect:
- Open a terminal.
- Set the
AWS_REGIONenvironment variable where the instance is running. - Run:
cnspec scan aws ec2 instance-connect USER@HOST
| For... | Substitute... |
|---|---|
| USER | Your user name for the AWS account |
| HOST | The instance's public IP |
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 SSM | Scan Using AWS Systems Manager |
| Scanning from a workstation | Scan from a Workstation |
| Snapshot scanning | Scan an EBS Snapshot |
| Continuous AWS scanning | Continuously Scan AWS |
| cnspec | The cnspec documentation |