anchor.diff:        
   # Create a Pub/Sub trigger
   resource "google_eventarc_trigger" "<%= ctx[:vars]['trigger_pubsub_tf'] %>" {
  -name     = "<%= ctx[:vars]['trigger_pubsub_tf'] %>"
  -location = google_cloud_run_service.default.location
  -matching_criteria {
  -  attribute = "type"   
  -  value     = "google.cloud.pubsub.topic.v1.messagePublished"
  -}
  -destination {
  -  cloud_run_service {
  -    service = google_cloud_run_service.default.name
  -    region  = google_cloud_run_service.default.location
  +  provider = google-beta
  +  name     = "<%= ctx[:vars]['trigger_pubsub_tf'] %>"
  +  location = google_cloud_run_service.default.location
  +  matching_criteria {
  +    attribute = "type"   
  +    value     = "google.cloud.pubsub.topic.v1.messagePublished"
     }
  -}
  +  destination {
  +    cloud_run_service {
  +      service = google_cloud_run_service.default.name
  +      region  = google_cloud_run_service.default.location
  +    }
  +  }
   
  -depends_on = [google_project_service.eventarc]
  +  depends_on = [google_project_service.eventarc]
   }
   
   # [END eventarc_terraform_pubsub]
  
positive.code:   
  # Deploy Cloud Run service
  resource "google_cloud_run_service" "<%= ctx[:primary_resource_id] %>" {
    name     = "<%= ctx[:vars]['cloudrun_hello_tf'] %>"
    location = "us-east1"
  
  
negative.code:     
  # Create an AuditLog for Cloud Storage trigger
  resource "google_eventarc_trigger" "<%= ctx[:vars]['trigger_auditlog_tf'] %>" {
    provider = google-beta
    name     = "<%= ctx[:vars]['trigger_auditlog_tf'] %>"
    location = google_cloud_run_service.default.location
    project  = data.google_project.project.id
  