https://pulumi.com logo
#google-cloud
Title
# google-cloud
e

early-elephant-96200

03/13/2024, 7:38 PM
has anyone had any luck with setting up Centralized Monitoring to a central GCP project using python? specifically, when i run pulumi up the preview is all good but then pulumi hangs during the up and doesn't seem to complete after letting run for several minutes
Copy code
def monitoring(projectInfo, monitoringProjectID: str):
  gcp.monitoring.MonitoredProject(
    resource_name="Monitored Project",
    name=projectInfo.project_id.apply(lambda id: f"projects/{monitoringProjectID}/monitoredProjects/{id}"),
    metrics_scope=f"projects/{monitoringProjectID}",
  )