The solution provides a set of ready-to-use extensions (Lambda@Edge functions, CloudFront Functions, CloudFormation templates) that could be useful when you use CloudFront. You can deploy them from the solution web console. After deployment, you can use it directly without programming or customize it when needed.
In the navigation panel, under Extensions, choose Repository.
Choose redirect-by-device, and click Deploy button.
Choose the sample website distribution (you can find it in Outputs tab of CFExtSampleWorkshop stack) and choose Default (*) under Behaviors.
Choose Next.
In Function associations page, choose viewer-request (refer to CloudFront events for more details).
Choose Next.
In Review page, choose Deploy.
Choose View deployment status to navigate to CloudFormation console for more details.
You should receive a CREATE_COMPLETE status in approximately 1 minute.