--
© 2018 Google Inc. 1600 Amphitheatre Parkway, Mountain View, CA 94043
Email preferences: You received this email because you signed up for the Google Compute Engine Discussion Google Group (gce-dis...@googlegroups.com) to participate in discussions with other members of the Google Compute Engine community and the Google Compute Engine Team.
---
You received this message because you are subscribed to the Google Groups "gce-discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gce-discussio...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gce-discussion/023ff8ac-8e27-4227-ac6f-3f4316e95b58%40googlegroups.com.
Hi Kapil,I am trying to build control to remediate default internet gateway association with compute engine.I looked into the sample examples but I could not find anything related to internet gateway.Looking forward for your input on this.Thank you,Sujeet
On Mon, Jan 6, 2020 at 1:44 PM Sujeet Gupta <sujeet....@gmail.com> wrote:
Hi GCP Team,--I need some input about internet gateway of GCP.In AWS we have something like internet gateway which provide inbound and outbound access to internet.1) What is the counterpart in GCP2) I am trying to develop custodian based control to remediate the event of internet gateway creation. In AWS we have something like 'CreateInternetGateWay',Do we have similar event in GCP.Thank you,Sujeet
© 2018 Google Inc. 1600 Amphitheatre Parkway, Mountain View, CA 94043
Email preferences: You received this email because you signed up for the Google Compute Engine Discussion Google Group (gce-discussion@googlegroups.com) to participate in discussions with other members of the Google Compute Engine community and the Google Compute Engine Team.
---
You received this message because you are subscribed to the Google Groups "gce-discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gce-discussion+unsubscribe@googlegroups.com.
Email preferences: You received this email because you signed up for the Google Compute Engine Discussion Google Group (gce-dis...@googlegroups.com) to participate in discussions with other members of the Google Compute Engine community and the Google Compute Engine Team.
---
You received this message because you are subscribed to the Google Groups "gce-discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gce-discussio...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gce-discussion/023ff8ac-8e27-4227-ac6f-3f4316e95b58%40googlegroups.com.
--
© 2018 Google Inc. 1600 Amphitheatre Parkway, Mountain View, CA 94043
Email preferences: You received this email because you signed up for the Google Compute Engine Discussion Google Group (gce-dis...@googlegroups.com) to participate in discussions with other members of the Google Compute Engine community and the Google Compute Engine Team.
---
You received this message because you are subscribed to the Google Groups "gce-discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gce-discussio...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gce-discussion/16e0588e-3d47-45d7-9e9f-251a36efeb67%40googlegroups.com.
Thank you so much Marcel !!My use case is very simple as below:As soon as any GCP compute engine instance is created, we want to capture the event. Based on event if the instance has access to internet gateway (access to inbound/outbound internet traffic), we want to terminate/stop the instance.Looking forward for your reply!!Thank you,Sujeet
Email preferences: You received this email because you signed up for the Google Compute Engine Discussion Google Group (gce-discussion@googlegroups.com) to participate in discussions with other members of the Google Compute Engine community and the Google Compute Engine Team.
---
You received this message because you are subscribed to the Google Groups "gce-discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gce-discussion+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gce-discussion/023ff8ac-8e27-4227-ac6f-3f4316e95b58%40googlegroups.com.
--
© 2018 Google Inc. 1600 Amphitheatre Parkway, Mountain View, CA 94043
Email preferences: You received this email because you signed up for the Google Compute Engine Discussion Google Group (gce-discussion@googlegroups.com) to participate in discussions with other members of the Google Compute Engine community and the Google Compute Engine Team.
---
You received this message because you are subscribed to the Google Groups "gce-discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gce-discussion+unsubscribe@googlegroups.com.
Hi,To view the Compute Engine Instance creation, you can view in the activity tab which will be right beside the dashboard tab in the GCP console and you can also view from Stackdriver logging by going to Stackdriver->Logging->Log viewer. Could you please clarify and elaborate on the event you are referring to?
On Tuesday, January 7, 2020 at 5:44:19 PM UTC-5, Sujeet Gupta wrote:
Thank you so much Marcel !!My use case is very simple as below:As soon as any GCP compute engine instance is created, we want to capture the event. Based on event if the instance has access to internet gateway (access to inbound/outbound internet traffic), we want to terminate/stop the instance.Looking forward for your reply!!Thank you,Sujeet
Email preferences: You received this email because you signed up for the Google Compute Engine Discussion Google Group (gce-dis...@googlegroups.com) to participate in discussions with other members of the Google Compute Engine community and the Google Compute Engine Team.
---
You received this message because you are subscribed to the Google Groups "gce-discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gce-discussio...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gce-discussion/023ff8ac-8e27-4227-ac6f-3f4316e95b58%40googlegroups.com.
--
© 2018 Google Inc. 1600 Amphitheatre Parkway, Mountain View, CA 94043
Email preferences: You received this email because you signed up for the Google Compute Engine Discussion Google Group (gce-dis...@googlegroups.com) to participate in discussions with other members of the Google Compute Engine community and the Google Compute Engine Team.
---
You received this message because you are subscribed to the Google Groups "gce-discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gce-discussio...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gce-discussion/16e0588e-3d47-45d7-9e9f-251a36efeb67%40googlegroups.com.
--
© 2018 Google Inc. 1600 Amphitheatre Parkway, Mountain View, CA 94043
Email preferences: You received this email because you signed up for the Google Compute Engine Discussion Google Group (gce-dis...@googlegroups.com) to participate in discussions with other members of the Google Compute Engine community and the Google Compute Engine Team.
---
You received this message because you are subscribed to the Google Groups "gce-discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gce-discussio...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gce-discussion/0e93cdf1-b451-4a61-a8d1-9730871b8dd5%40googlegroups.com.
gcloud compute routes delete route_name
I can also get list of route : gcloud compute routes list
but how can I get a route_name from the list of route having next_hop as 'default_internet_gateway'
Thank you,
Sujeet
To get a route_name from the list of route having next_hop as 'default_internet_gateway' please use the following command.
gcloud compute routes list | grep default-internet-gateway
https://cloud.google.com/sdk/gcloud/reference/compute/routes/list
--
© 2018 Google Inc. 1600 Amphitheatre Parkway, Mountain View, CA 94043
Email preferences: You received this email because you signed up for the Google Compute Engine Discussion Google Group (gce-dis...@googlegroups.com) to participate in discussions with other members of the Google Compute Engine community and the Google Compute Engine Team.
---
You received this message because you are subscribed to the Google Groups "gce-discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gce-discussio...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gce-discussion/05b08af6-e54d-4467-9e57-da01bf2184fc%40googlegroups.com.
It is clearly indicated that UnicodeDecodeError. It normally happens when decoding an str string from a certain coding[1]. I suspect the issue exists in your codes. Please note that we do not support specific code issues. You can refer to Stackoverflow[2] for further investigation in the application codes.
[1] https://wiki.python.org/moin/UnicodeDecodeError
[2] https://stackoverflow.com/
Hi Mary
I am creating route and trying to process the event in Cloud Function. I am constantly getting json parsing error as below. Looking forward for your quick response on it.
Traceback (most recent call last): File "/env/local/lib/python3.7/site-packages/google/cloud/functions/worker.py", line 383, in run_background_function _function_handler.invoke_user_function(event_object) File "/env/local/lib/python3.7/site-packages/google/cloud/functions/worker.py", line 217, in invoke_user_function return call_user_function(request_or_event) File "/env/local/lib/python3.7/site-packages/google/cloud/functions/worker.py", line 214, in call_user_function event_context.Context(**request_or_event.context)) File "/user_code/main.py", line 17, in run event = json.loads(base64.b64decode(event['data']).decode('utf-8')) UnicodeDecodeError: 'utf-8' codec can't decode byte 0x9c in position 1: invalid start bytepayload:
Event: {'insertId': '-naoi1tdc862', 'logName': 'projects/bold-hallway-258919/logs/cloudaudit.googleapis.com%2Factivity', 'operation': {'id': 'operation-1578614395820-59bbdce4cdb98-efcc6fb2-cd3fdc8c', 'last': True, 'producer': 'compute.googleapis.com'}, 'protoPayload': {'@type': 'type.googleapis.com/google.cloud.audit.AuditLog', 'authenticationInfo': {'principalEmail': 'xxx.x...@gmail.com'}, 'methodName': 'v1.compute.routes.insert', 'request': {'@type': 'type.googleapis.com/compute.routes.insert'}, 'requestMetadata': {'callerIp': '', 'callerSuppliedUserAgent': 'google-cloud-sdk gcloud/273.0.0 command/gcloud.compute.routes.create invocation-id/f794c079d1a64dd69f017bcb58b06f5d environment/None environment-version/None interactive/True from-script/False python/2.7.10 term/xterm-256color (Macintosh; Intel Mac OS X 18.7.0),gzip(gfe)'}, 'resourceName': 'projects/bold-hallway-258919/global/routes/myroutetencommandline', 'serviceName': 'compute.googleapis.com'}, 'receiveTimestamp': '2020-01-10T00:00:00.383651222Z', 'resource': {'labels': {'project_id': 'bold-hallway-258919', 'route_id': '123658669026574483'}, 'type': 'gce_route'}, 'severity': 'NOTICE', 'timestamp': '2020-01-09T23:59:59.675Z'}Thank you,Sujeet
To unsubscribe from this group and stop receiving emails from it, send an email to gce-dis...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to gce-discussio...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gce-discussion/e7dd9388-6e0a-4009-b2d9-d6190e4f62a4%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gce-discussion/e7dd9388-6e0a-4009-b2d9-d6190e4f62a4%40googlegroups.com.