You need a good banking relationship, approval (much like a loan approval) and possibly collaterol (in the form of a cash deposit) with the bank.

The bank will assist you in drafting the letter of credit according to the terms and conditions of your transaction.

This is not a cheap transaction as the bank is putting its reputation on the line by issuing the credit and they charge accordingly.