I am trying to enable APNSChannel on Pinpoint using CloudFormation template and I am using key credentials for configuration. I added Authentication key , which is .p8 file, as txt in this format:
-----BEGIN PRIVATE KEY-----
xxxxxxyyyyyyyyyyyyshckdyyyyyy
-----END PRIVATE KEY-----
But I get following error for APN when I run my stack:
Property validation failure: [Value for property {/DefaultAuthenticationMethod} does not match pattern {TOKEN|CERTIFICATE}]
Do you have any idea how can I resole the issue?