-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcomplete-setup.sh
More file actions
executable file
·26 lines (23 loc) · 961 Bytes
/
Copy pathcomplete-setup.sh
File metadata and controls
executable file
·26 lines (23 loc) · 961 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
source cloudfront-info.env
echo "CloudFront Distribution Created:"
echo "Distribution ID: $DISTRIBUTION_ID"
echo "CloudFront Domain: $CLOUDFRONT_DOMAIN"
echo "Certificate ARN: $CERT_ARN"
echo ""
echo "Next steps to complete setup:"
echo ""
echo "1. Validate SSL certificate via DNS:"
echo " aws acm describe-certificate --certificate-arn $CERT_ARN --region us-east-1"
echo " Add the DNS validation record to your domain"
echo ""
echo "2. Once certificate is validated, get current distribution config:"
echo " aws cloudfront get-distribution-config --id $DISTRIBUTION_ID > current-config.json"
echo ""
echo "3. Update distribution with custom domain (after certificate validation):"
echo " # This will be done automatically once certificate is validated"
echo ""
echo "4. Create DNS CNAME record:"
echo " collections.cloudcontactai.com -> $CLOUDFRONT_DOMAIN"
echo ""
echo "Current CloudFront URL (works now): https://$CLOUDFRONT_DOMAIN"