Universal link をAWS CloudFrontでホスティングして構築する
必要なもの
静的ホスティング
リダイレクトしない
index.html と json形式の apple-app-site-association ファイルを置く
ドメイン
適当に取得したドメイン
やること
手順
1. 独自ドメインの設定
3. index.html, apple-app-site-association ファイルを作成
4. 作成したファイルを作成したバケットに配置
5. S3の Static Hosting を有効化 Origin Settings
table:
Origin Domain Name 作成したS3のバケットを指定
Restrict Bucket Access yes
Origin Access Identity create new identity
Grant Read Permissions on Bucket yes
Default Cache Behavior Settings
table:
Viewer Protocol Policy Redirect HTTP to HTTPS
Distributtion Settings
table:
Altername Domain Names (CNAMEs) ドメイン
SSL Certificatescustom SSL certificate で証明書指定
Default Root Object index.html
Bucket for logs ログを保存するS3バケットを指定
logは指定しなくてもOK
8. 待つ
注意
SSL設定ができてないとアクセスしてもセキュリティアラートが表示される 参考