Skip to content

Instantly share code, notes, and snippets.

View longwuyuan's full-sized avatar

Long Wu Yuan longwuyuan

  • enjoydevops.com
  • India
View GitHub Profile
@longwuyuan
longwuyuan / gist:d764ed0f671f55b1239138fc915c0e11
Created July 29, 2020 10:27
Terraform crashes using data source google_compute_network or the default VPC #6877
$ terraform plan -detailed-exitcode [70/1292]
Refreshing Terraform state in-memory prior to plan...
The refreshed state will be used to calculate this plan, but will not be
persisted to local or remote state storage.
data.google_compute_network.default_vpc: Refreshing state...
Error: rpc error: code = Unavailable desc = transport is closing
04f960613e1595fdb67380bb8691af51e30168257e04f79dd56c1dd686b8e988fea599dbbfd0dca9a6cdd9c1b4365021259e0d5501ea6b16bc38fe910c3b95b9e7
% sudo tlp-stat
--- TLP 0.8 --------------------------------------------
+++ Configured Settings: /etc/default/tlp
TLP_ENABLE=1
TLP_DEFAULT_MODE=AC
DISK_IDLE_SECS_ON_AC=0
DISK_IDLE_SECS_ON_BAT=2
MAX_LOST_WORK_SECS_ON_AC=15
MAX_LOST_WORK_SECS_ON_BAT=60