★★ACM、サブドメインの追加
①ACM証明書の作成
CloudFront 用証明書(us-east-1)
ACM(バージニア)→ 証明書をリクエスト
ドメイン名: dlt.test-pf.kddi.com
検証方法: DNS 検証
API Gateway 用証明書(ap-northeast-1)
ACM(東京)→ 証明書をリクエスト
ドメイン名: ate.test-pf.kddi.com
検証方法: DNS 検証
② CloudFront の設定(dlt.test-pf.kddi.com)
CloudFront → 既存を編集
General タブ:
Alternate domain names (CNAME):
→ 「dlt.test-pf.kddi.com」を追加
Custom SSL certificate:
→ 上で作成した us-east-1 の証明書を選択
③ API Gateway カスタムドメインの設定(ate.test-pf.kddi.com)
API Gateway(東京)→ カスタムドメイン名 → 作成
ドメイン名: ate.test-pf.kddi.com
ACM 証明書: 上で作成した ap-northeast-1 の証明書を選択
エンドポイントタイプ:
HTTP API → リージョン
REST API → リージョン
④ Route 53 Aレコード(エイリアス)の追加
dlt.test-pf.kddi.com → CloudFront
Route 53 → test-pf.kddi.com ホストゾーン → レコード作成
レコード名: dlt
タイプ: A
エイリアス: ON
トラフィックのルーティング先:
→ CloudFront ディストリビューションへのエイリアス
→ ディストリビューションのドメイン(xxxx.cloudfront.net)が候補に出る
ate.test-pf.kddi.com → API Gateway
Route 53 → test-pf.kddi.com ホストゾーン → レコード作成
レコード名: ate
タイプ: A
エイリアス: ON
トラフィックのルーティング先:
→ API Gateway API へのエイリアス
→ リージョン: ap-northeast-1
→ ate.test-pf.kddi.com のカスタムドメインが候補に出る
https://python-basic.com/
https://diver.diveintocode.jp/dive_into_exam
git clone https://git-codecommit.ap-northeast-1.amazonaws.com/v1/repos/リポジトリ名
cd リポジトリ名
git add .
git commit -m "first"
git push
git init
git branch -M main # ← mainに統一(推奨)
git add infra/terraform
git commit -m "first commit"
git remote add origin https://git-codecommit.ap-northeast-1.amazonaws.com/v1/repos/リポジトリ名
git push -u origin main
terraform-aws-automated-test
terraform-aws-automated-test-ecr