Articles → AWS → Behaviors In AWS Cloudfront

Behaviors In AWS Cloudfront






Purpose





Steps




  1. Create 2 publicly accessible S3 buckets
  2. Upload files on the S3 bucket
  3. Make objects on the S3 bucket public
  4. Create a CloudFront distribution
  5. Add a new origin to the CloudFront distribution
  6. Create behaviors in CloudFront
  7. Output



Create 2 Publicly Accessible S3 Buckets




Picture showing 2 publicly accessible S3 buckets created in AWS



Upload Files On The S3 Bucket




Picture showing the image file uploaded on first bucket


Picture showing the image file uploaded on second bucket



Make Objects On The S3 Bucket Public





Create A Cloudfront Distribution




Picture showing the CloudFront distribution created in AWS



Add A New Origin To The Cloudfront Distribution




Picture showing the origins added in CloudFront distribution



Create Behaviors In Cloudfront




Picture showing the Behaviors tab in CloudFront for adding a new behavior




FieldValue
Path pattern1*.png
Origin and origin groups[origin of Bucket 1]


Picture showing the Create Behavior screen for creating the new behavior




Picture showing the Create Behavior screen for creating second behavior




Picture showing both behaviors created in CloudFront



Output


Picture showing the output of Behaviors In AWS Cloudfront


Picture showing the output of Behaviors In AWS Cloudfront





Posted By  -  Karan Gupta
 
Posted On  -  Saturday, August 6, 2022

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250