My EC2 instance is up and running at ec2:8080 because my node server is listening on port 8080. But I want to connect my instance as a cname to my website under a domain (At namecheap). The cname only accepts ec2 not ec2:8080, so my code won't go up. This is probably an easy fix, any help? (my security group accepts all ports so its not that)
You need to point your domain's DNS settings to your public DNS or elastic IP provided by EC2. From there, you need to allow an exception in your security group granting HTTP traffic through to port 8080. Assuming the DNS changes propagate, you should be able to access your instance on node server running on port 8080 by:
http://your.public.dns.address:8080/
or
http://elastic.ip:8080
Hope that helps.