Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save alvinnguyen/8ab05fb8b163149fd82d72ae3ae62a5f to your computer and use it in GitHub Desktop.
Save alvinnguyen/8ab05fb8b163149fd82d72ae3ae62a5f to your computer and use it in GitHub Desktop.
Step by step on finding EC2-Classic Networking resource on AWS account

EC2-Classic Networking Resource Deprecation

Deadline August 15, 2022

Source

EC2-Classic Networking is Retiring – Here’s How to Prepare https://aws.amazon.com/blogs/aws/ec2-classic-is-retiring-heres-how-to-prepare/

Identify depreciating resource on your AWS (instruction for Mac OS)

Install AWS-CLI

curl "https://awscli.amazonaws.com/AWSCLIV2.pkg" -o "AWSCLIV2.pkg"
sudo installer -pkg AWSCLIV2.pkg -target /

Confirm AWS CLI installation

$ which aws
/usr/local/bin/aws 
$ aws --version
aws-cli/2.4.5 Python/3.8.8 Darwin/18.7.0 botocore/2.4.5

Install brew (if you haven't already)

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Install python3

brew install python

Install boto3

pip3 install boto3

Download EC2-Classic Resource Finder

cd ~/
curl -O https://raw.githubusercontent.com/aws-samples/ec2-classic-resource-finder/main/py-Classic-Resource-Finder.py

Config your AWS Credentials & default region

$ cat ~/.aws/config
[default]
region = ap-southeast-2

$ cat ~/.aws/credentials
[default]
aws_access_key_id = XXXXXXXXXXXXXX
aws_secret_access_key = XXXXXXXXXXXXXX

Execute the .py script to find EC2-Classic Networking resource

$ python3 ~/py-Classic-Resource-Finder.py

Find the output in newly generated folder

E.g. ~/641933245611, which should contain the following files. Going through each file to see if they have any EC2-Classic Networking resource to migrate.


11-07-2022-11-12-20_Classic_EIPs.csv
11-07-2022-11-12-20_Classic_EC2_Instances.csv
11-07-2022-11-12-20_Classic_SGs.csv
11-07-2022-11-12-20_Classic_ClassicLink_VPCs.csv
11-07-2022-11-12-20_Classic_Auto_Scaling_Groups.csv
11-07-2022-11-12-20_Classic_CLBs.csv
11-07-2022-11-12-20_Classic_RDS_Instances.csv
11-07-2022-11-12-20_Classic_ElastiCache_Clusters.csv
11-07-2022-11-12-20_Classic_Redshift_Clusters.csv
11-07-2022-11-12-20_Classic_ElasticBeanstalk_Applications_Environments.csv
11-07-2022-11-12-20_Classic_EMR_Clusters.csv
11-07-2022-11-12-20_Classic_OpsWorks_Stacks.csv
11-07-2022-11-12-20_Classic_DataPipelines.csv
11-07-2022-11-12-20_Errors.txt
11-07-2022-11-12-20_Classic_Platform_Status.csv

Migration

Find more information for migration at https://aws.amazon.com/blogs/aws/ec2-classic-is-retiring-heres-how-to-prepare/

Resource

  1. https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html
  2. https://github.com/aws-samples/ec2-classic-resource-finder
  3. https://brew.sh/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment