amazon-web-services


Amazon Cloudfront Allow ALL Alternate Domain Names (CNAMES)


I run an ad server that serves several static files like "ads.js". Using cloudfront and an s3 bucket, you can access this file like:
http://bucket.mydomain.com/assets/ads.js
I have hundreds of clients, and many of them would like to use their own mirror domain to serve the assets:
http://bucket.theirdomain.com/assets/ads.js
This works by making a CNAME alias DNS record that points bucket.theirdomain.com to bucket.mydomain.com.
However, I have to add each domain manually in Amazon AWS Cloudfront settings. There is an Alternate Domain Names (CNAMEs) section that I have to add *.theirdomain.com for every client that wants to do this.
Is there a way to allow all domains? Or should I make some sort of re-routing script? If the DNS skipped cloudfront and went directly to the bucket, I would be fine with that. Right now I get "ERROR: The request could not be satisfied." until I whitelist the domain for cloudfront.

Related Links

How to connect AWS EC2 private IP with filezilla
StatusMessage ClientError: Error reading registry file SOFTWARE
Amazon MWS for third-party app
Boto3 error: The AWS Access Key Id you provided does not exist in our records
Want to pass header value of a WebRequest to SQS (either as token value or in attribute) from API Gateway
Changing domain DNS from godaddy to amazon Route 53 not working
CodePipeline unable to locate SAM template yaml file
Does the SES email quota apply to verification mail by Amazon Cognito?
AWS Sending Notifications to a Lambda function in other account
AWS Lambda and Multipart Upload to/from S3
Using AWS Simple Directory for on-premise clients
Data Modeling with Amazon Cognito and DynamoDB
How to test API Gateway methods with custom authorizer and empty $context.authorizer.* variables?
AWS error while parsing .config YAML file in .ebextension
Does WireMock come out in deb file?
Why sudden spike in WriteIOPS on AWS RDS

Categories

HOME
hpoo
google-chrome
xcode
vagrant
workflow
consul
lvm
vue-resource
azure-data-lake
javafx-8
tweepy
kurento
sharepoint-online
msmq
azure-graph-api
fasm
feature-extraction
complexity-theory
mailgun
twisted
vertica
pickle
checkout
xsl-fo
scheduled-tasks
libgit2
neo4j.rb
acl
pubxml
uilocalnotification
echosign
gravity-forms-plugin
dnsmasq
monitor
fotorama
universal
pdfminer
testlink
android-alarms
rdp
elasticsearch-aggregation
web-inspector
ssi
scala-breeze
photoswipe
beeline
sharpdx
nslayoutconstraint
zend-server
adobe-reader
nrf51
xcode6.4
tsqlt
declarative
deferred-rendering
jemdoc
xcopy
seadragon
cortana
servicestack-bsd
gitlab-omnibus
alwayson
explain
dbmigrate
kotlin-android-extensions
mod-auth-openidc
uno
encryption-symmetric
cakephp-2.2
vs-unit-testing-framework
cout
qt5.4
full-text-indexing
webaii
tabletools
xmi
principalcontext
proxy-server
sensormanager
node.js-stream
reentrancy
semantic-merge
ip-geolocation
nsmutablestring
coordinate
kaazing
flymake
mkannotation
wcf-callbacks
upshot
hungarian-notation
solandra
android-2.1-eclair
android-input-method
raw-data
cleartype
data-retrieval
external-sorting
jquery-effects

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App