DEV Community

kkh12323
kkh12323

Posted on

questions about AWS Cloud

this is the architecture used in AWS

Cloud architecture
Cloud architecture
1299×622 79.1 KB
how I configured AWS VPC

VPC’s private ip range : 172.31.0.0/16
1 public subnet
3 private subnets
how I configured AWS route table

private subnet route table configuration
->172.31.0.0/16 local
->0.0.0.0/0 NAT gateway
-included subnets
→ frontend private subnet / backend private subnet / RDS private subnet
total 3 private subnets included in private route table

public subnet route table
→ 172.31.0.0/16 local
→ 0.0.0.0/0 internet gateway
→ public subnet that contains Application Load Balancer / bastion host ec2 / NAT gateway
total 1 public subnet included in public route table

How I configured Application Load Balancer

internet facing
connected instance : frontend ec2 instance in private subnet
then all the configuration done

I entered domain web site to test it

then I confronted with this error

[Vuetify] [UPGRADE] ‘v-content’ is deprecated, use ‘v-main’ instead. console.ts:34

**found in **

—> VMain

*** VApp***

*** App***

*** Root***

POST ‘http://ec2-xxx-xxx-xxx-xxx.us-west-1.compute.amazonaws.com:8000/Product/item_list’ xhr.js:177

!net::ERR_CONNECTION_REFUSED!

!Uncaught (in promise) Error:Network Error createError.js:16

*** at t.exports (createError.js:16)***

*** at XMLHttpRequest.d.onerror (xhr.js:84) !***

POST ‘http://ec2-xxx-xxx-xxx-xxx.us-west-1.compute.amazonaws.com:8000/Bag/bag_count’ xhr.js:177

net::ERR_CONNECTION_REFUSED

Uncaught (in promise) Error: Network Error createError.js:16

*** at t.exports (createError.js:16)***

*** at XMLHttpRequest.d.onerror (xhr.js:84)***

my question is

Q. what is the problem ?

Q. did I configure something wrong?

Q. how can I fix it based on this architecture ?

please advise for me

thank you !

Top comments (2)

Collapse
 
udondan profile image
Daniel Schroeder

Typically this site is for sharing knowledge, not asking questions. You might have more success asking on stackoverflow.com/

Collapse
 
kkh12323 profile image
kkh12323

Thank so much !