Prerequisites
GCP account
Open Console.
Open Menu > Pubsub > Subscriptions
Click on create Subscription

Give the subscription ID.
Choose the pubsub topic.

Choose the delivery type as push.
Give the endpoint URL

Choose the retention period for message. Choose the expiration period.
Give the Acknowledgement time

Click create. The push subscription will be created
