$ git clone https://github.com/aws-samples/ec2-classic-resource-finder.git
$ cd ec2-classic-resource-finder
$ sh Classic-Resource-Finder.sh
JQ does not appear to be installed, please install JQ and try running this again.
# yum -y install jq
$ sh Classic-Resource-Finder.sh
# -------------------------------------------------------------------------
Searching for resources in EC2-Classic in eu-north-1
# -------------------------------------------------------------------------
Determining if EC2-Classic is enabled...Done
Searching for EIPs in EC2-Classic...Done
Searching for any EC2-Classic instances...Done
Searching for any Security Groups not in a VPC...Done
Searching for VPCs with ClassicLink Enabled...Done
Searching for Auto-Scaling groups without a VPC configured...Done
Searching for any Classic Load Balancer in EC2-Classic...Done
Searching for any RDS-Classic instances...Done
Searching for any Elasticache clusters not in a VPC...Done
Searching for any Redshift clusters not in a VPC...Done
Searching for any ElasticBeanstalk Environments without a VPC...Done
Searching for any DataPipelines that dont have subnets associated...Done
Searching for EMR clusters not configured to launch in a subnet...Done
Searching for OpsWorks stacks with resources in EC2-Classic...Done
(途中省略)
# -------------------------------------------------------------------------
Search for resources in us-west-2 is complete
# -------------------------------------------------------------------------
Search for EC2-Classic Resources is complete! Please check for the CSVs output to
this directory.If no resources were found in EC2-Classic for a service, there was
no CSV created.As a final step once you have verified you have no other
EC2-Classic resources, please open a support case and request your account be
converted to VPC-Only as outlined in this document:
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-migrate.html
$