To get the APPLE_PRIVATE_KEY for app attestation, you'll need to follow these steps in your Apple Developer account:
Go to Apple Developer Portal
Visit https://developer.apple.com Sign in with your Apple Developer account Click on "Certificates, Identifiers & Profiles"
Create a new key: