- An instance of IBM Cloud Certificate Manager.
-
Create a new IBM Cloud Function action
- In IBM Cloud Functions, select Actions from the sidebar
- Click on Create
- Follow the on-screen instructions
-
Deploy the sample
Select Code from the sidebar, and paste the contents of the main.js file of the sample
-
Select Parameters from the sidebar, and add the following:
-
allowedCertificateManagerCRNs
- a JSON Object containing a list of Certificate Manager instances that are allowed to invoke this function. Apply it in order to protect your cloud function from being invoked by unauthorized clients.
E.g.{"crn:v1:bluemix:public:cloudcerts:us-south:a....":true,"crn:v1:bluemix:public:cloudcerts:eu-de:a...":true}
- Find your Certificate Manager instance CRN from the Settings sidebar item
- Or from CLI:
ibmcloud resource service-instance [INSTANCE NAME]
, grab theID
value
-
cmRegion
- your Certificate Manager service instance region value. Can be one of:us-south
,eu-gb
,eu-de
,jp-tok
E.g."us-south"
-
cloudflareEmail
- email address associated with your account -
cloudflareApiKey
- API key generated on the "My Account" page
-
-
In the Endpoints sidebar, tick the Enable as Web Action checkbox