In order to get credentials from the Elastic environment you need to create an API key within the Elastic Cloud Portal. The easiest way to do this is to navigate to ela.st/cloud-key. From there, just create the API and save it for later use in your CloudFormation script.