# App clip trigger

Static site that loads the app clip banner if loaded in safari.

```
aws s3 cp "index.html" "s3://bigscreen-scan-app-clip-site/index.html" --cache-control "no-cache" --content-type "text/html" --profile LambdaAdmin
aws s3 cp "facescan.jpg" "s3://bigscreen-scan-app-clip-site/facescan.jpg" --cache-control "no-cache" --content-type "image/jpeg" --profile LambdaAdmin
aws s3 cp "index.html" "s3://bigscreen-scan-app-clip-site/start" --cache-control "no-cache" --content-type "text/html" --profile LambdaAdmin
aws s3 cp "./.well-known/apple-app-site-association" "s3://bigscreen-scan-app-clip-site/.well-known/apple-app-site-association" --cache-control "no-cache" --content-type "application/json" --profile LambdaAdmin
```

# AWS Notes:

The app clip site is served from an S3 bucket via a Cloudfront distribution.

S3 Bucket: `bigscreen-scan-app-clip-site`: https://s3.console.aws.amazon.com/s3/buckets/bigscreen-scan-app-clip-site?region=us-west-2

Cloudfront distribution: https://us-east-1.console.aws.amazon.com/cloudfront/v3/home?region=us-west-2#/distributions/E10EOQ8PTSVAZN

Note that the Cloudfront distribution was added into the permissions of the S3 bucket through an origin domain where "Legacy access identifiers" was specified.

