I have set up the static outbound ip for my app engine with the following google document(https://cloud.google.com/appengine/docs/standard/outbound-ip-addresses)
but I am not sure how could I confirm that my app engine is using the static outbound ip.
I deployed simple flask app on my app engine and trying to make a request from my local PC.
my first I idea is get some info from the request.response from the local request but I am stuck
does anyone know or has experiences with this?
thanks
Hello, have you take a look at GCP Connectivity Tests[1], App Engine to VM or IP may work for your use case[2] after running the test then check for the packet headers source IP[3].
Also maybe using a trid part tool such a Wireshark can give you that information.
2- Configuration analysis states | Connectivity Tests | Google Cloud
At least 2 possible options
1. You can list the IP addresses for a project by running
gcloud compute addresses list --project <PROJECT_ID>
2. If you already know the IP and you want to make sure your GAE app is using it, one way is to
a) Create another GAE project (or use a dummy project you have)
b) Set the firewall rule to only allow traffic from the IP you gave your original GAE project
c) Try to load or call the url of this new GAE project from your machine. Because of your firewall rules, it should fail.
d) Then make a call to this new GAE App from the original GAE App. If it's successful, then you have your confirmation. If it's denied, then something's wrong somewhere