import * as cloud from "@pulumi/cloud" ; const topic1 = new cloud . Topic ( "topic1" ) ; const topic2 = new cloud . Topic ( "topic2" ) ; topic1 . subscribe ( "subscription" , async ( _ ) => { } ) ; topic2 . subscribe ( "subscription" , async ( _ ) => { } ) ;