<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://wiki.apoyar.eu/index.php?action=history&amp;feed=atom&amp;title=AWS_CloudFront_distributions_Creation</id>
	<title>AWS CloudFront distributions Creation - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.apoyar.eu/index.php?action=history&amp;feed=atom&amp;title=AWS_CloudFront_distributions_Creation"/>
	<link rel="alternate" type="text/html" href="https://wiki.apoyar.eu/index.php?title=AWS_CloudFront_distributions_Creation&amp;action=history"/>
	<updated>2026-07-20T14:07:47Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://wiki.apoyar.eu/index.php?title=AWS_CloudFront_distributions_Creation&amp;diff=163&amp;oldid=prev</id>
		<title>Admin: Created page with &quot;Amazon Web Service CloudFront distributions creation procedure:   Login into aws account and create IAM user with administrator permission.   Copy Access key &amp; secrete key ids...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.apoyar.eu/index.php?title=AWS_CloudFront_distributions_Creation&amp;diff=163&amp;oldid=prev"/>
		<updated>2021-04-16T06:26:24Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Amazon Web Service CloudFront distributions creation procedure:   Login into aws account and create IAM user with administrator permission.   Copy Access key &amp;amp; secrete key ids...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Amazon Web Service CloudFront distributions creation procedure: &lt;br /&gt;
&lt;br /&gt;
Login into aws account and create IAM user with administrator permission. &lt;br /&gt;
&lt;br /&gt;
Copy Access key &amp;amp; secrete key ids. &lt;br /&gt;
&lt;br /&gt;
We will use to work aws cli commands on phobos.apoyar server &lt;br /&gt;
&lt;br /&gt;
Firstly, install awscli packages. &lt;br /&gt;
&lt;br /&gt;
	# apt-get install awscli &lt;br /&gt;
&lt;br /&gt;
Configure aws GUI details to cli &lt;br /&gt;
&lt;br /&gt;
#aws configure &lt;br /&gt;
&lt;br /&gt;
Access key ID &lt;br /&gt;
&lt;br /&gt;
Secrete key ID &lt;br /&gt;
&lt;br /&gt;
Region &lt;br /&gt;
&lt;br /&gt;
Text	 &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
II. To list out the existing CloudFront distribution names execute below command. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 # aws cloudfront list-distributions --query &amp;#039;DistributionList.Items[*].[Comment,Id,DomainName,Status]&amp;#039; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
III. Existing cloudfront distribution settings exported to one json file with all required configurations using below command. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 # aws cloudfront get-distribution-config --id E22YPQLVV7ZL08 &amp;gt; distribution.json &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
IV. To generate preshared key use below command which need to add in above distribution.json &lt;br /&gt;
&lt;br /&gt;
# openssl rand -base64 32 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once key generated copy and keep somewhere which can be used later &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
And open file and delete etag and change dns name as per your requirement  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
vi distribution.json &lt;br /&gt;
&lt;br /&gt;
Delete etag &lt;br /&gt;
&lt;br /&gt;
&amp;quot;CallerReference&amp;quot;: &amp;quot;new” &lt;br /&gt;
&lt;br /&gt;
Replace url &lt;br /&gt;
&lt;br /&gt;
Replace comment &lt;br /&gt;
&lt;br /&gt;
And esc:wq! Save file &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
V. To create new cloudfront distribution from exported json file again login into new aws account and create IAM user with temporary administrator permissions and install awscli package and configure it with access &amp;amp; secrete key id. &lt;br /&gt;
&lt;br /&gt;
# apt-get install awscli &lt;br /&gt;
&lt;br /&gt;
# aws configure [new account] &lt;br /&gt;
&lt;br /&gt;
# aws cloudfront create-distribution --cli-input-json file://distribution.json &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
Finally, you can list out newly created CloudFront distribution on CloudFront dashboard.&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>