Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

import google monitoring returns empty tf files. #99

Closed
saitotqr opened this issue Jun 11, 2019 · 1 comment
Closed

import google monitoring returns empty tf files. #99

saitotqr opened this issue Jun 11, 2019 · 1 comment

Comments

@saitotqr
Copy link

saitotqr commented Jun 11, 2019

Hi, I'm using project owner account to import. but import google monitoring returns empty .tf files below.

terraformer import google --resources=monitoring --connect=true --zone=asia-northeast1 --projects=my-gcp-prj
2019/06/11 15:56:57 google importing project my-gcp-prj
2019/06/11 15:56:57 google importing... monitoring
2019/06/11 15:57:00 project: required field is not set
2019/06/11 15:57:00 project: required field is not set
2019/06/11 15:57:00 project: required field is not set
2019/06/11 15:57:00 project: required field is not set
2019/06/11 15:57:00 project: required field is not set
2019/06/11 15:57:00 project: required field is not set
2019/06/11 15:57:00 project: required field is not set
2019/06/11 15:57:00 project: required field is not set
2019/06/11 15:57:00 project: required field is not set
2019/06/11 15:57:00 google Connecting.... 
2019/06/11 15:57:00 google save monitoring
2019/06/11 15:57:00 [DEBUG] New state was assigned lineage  "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
2019/06/11 15:57:00 google save tfstate for monitoring

monitoring_alert_policy.tf

resource "google_monitoring_alert_policy" "projects--my-gcp-prj--alertPolicies--12270733397295926724" {}

resource "google_monitoring_alert_policy" "projects--my-gcp-prj--alertPolicies--18416277687926950534" {}

resource "google_monitoring_alert_policy" "projects--my-gcp-prj--alertPolicies--2641331155153181887" {}

resource "google_monitoring_alert_policy" "projects--my-gcp-prj--alertPolicies--6165830597848982763" {}

monitoring_notification_channel.tf

resource "google_monitoring_notification_channel" "projects--my-gcp-prj--notificationChannels--14664454090038840730" {}

resource "google_monitoring_notification_channel" "projects--my-gcp-prj--notificationChannels--7956856499735477724" {}

resource "google_monitoring_notification_channel" "projects--my-gcp-prj--notificationChannels--9929777985012302021" {}

monitoring_uptime_check_config.tf

resource "google_monitoring_uptime_check_config" "projects--my-gcp-prj--uptimeCheckConfigs--uptime-check-for-api-1559734933" {}

resource "google_monitoring_uptime_check_config" "projects--my-gcp-prj--uptimeCheckConfigs--uptime-check-for-web-1559734602" {}
@sergeylanzman
Copy link
Collaborator

Thank for your report!
Fixed in ee5a188 in Master now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants