简体   繁体   中英

test an API deployed on AWS EC2 whithout using http traffic

For security reasons I can't add the http traffic to my EC2 machine security group, I have only the SSH port open So I'm looking for some solutions to be able to test my API deplyed on AWS-EC2 using only the PORT22, my server is running on : http://ec2xxxxxx:5000/test

Thanks in advance!

If you SSH tunnel you would basically test as if you are using localhost. If you have security concerns, maybe best option is to run additinal micro instance in same VPC (would work in classic as well, more variations possible from internal up to full blown external ip, depending on your security concerns) and allow ONLY it's IP on port 5000. That way you can test HTTP properly without really worrying about opening main instance to world... sorry for typos, writting from a phone...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM