{"id":13258,"date":"2023-11-27T07:08:04","date_gmt":"2023-11-27T13:08:04","guid":{"rendered":"https:\/\/www.supportpro.com\/blog\/?p=13258"},"modified":"2024-02-18T23:34:54","modified_gmt":"2024-02-19T05:34:54","slug":"aws-amplify-in-react-application-deployment","status":"publish","type":"post","link":"https:\/\/www.supportpro.com\/blog\/aws-amplify-in-react-application-deployment\/","title":{"rendered":"AWS Amplify in React Application deployment"},"content":{"rendered":"\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2023\/11\/ogp.jpg\" data-rel=\"penci-gallery-image-content\" ><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"538\" data-id=\"13259\" src=\"https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2023\/11\/ogp-1024x538.jpg\" alt=\"\" class=\"wp-image-13259\" srcset=\"https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2023\/11\/ogp-1024x538.jpg 1024w, https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2023\/11\/ogp-300x158.jpg 300w, https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2023\/11\/ogp-768x403.jpg 768w, https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2023\/11\/ogp-1170x614.jpg 1170w, https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2023\/11\/ogp-585x307.jpg 585w, https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2023\/11\/ogp.jpg 1200w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n<\/figure>\n\n\n\n<p>The digital age requires businesses and individuals to have a website. Whether you are a developer, blogger, or an entrepreneur, hosting your website securely and efficiently is essential. Let&#8217;s see how to create a static website using Amazon Amplify, one of the powerful services offered by Amazon Web Services (AWS)..<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>What is Amazon Amplify?<\/p>\n\n\n\n<p>Amazon Amplify is a fully managed service that enables developers to easily build, deploy, and host static web applications. It simplifies the process of setting up and managing infrastructure, allowing you to focus on developing your website and providing an exceptional user experience.<\/p>\n\n\n\n<p>Step 1: Set Up an AWS Account<\/p>\n\n\n\n<p>To get started with Amazon Amplify, you need an AWS account. If you don&#8217;t already have one, visit the AWS website and create a new account https:\/\/aws.amazon.com\/.&nbsp;<\/p>\n\n\n\n<p>Once you&#8217;re logged in, you can access the AWS Management Console.<\/p>\n\n\n\n<p>Step 2: Create a New Amplify App<\/p>\n\n\n\n<p>In the AWS Management Console, search for &#8220;Amplify&#8221; and open the Amplify Console. Click on the &#8220;Get Started&#8221; button.<\/p>\n\n\n\n<p>Step 3: Connect Your Repository<\/p>\n\n\n\n<p>Amplify supports version control systems such as GitHub, Bitbucket, and AWS CodeCommit. After successful authorization, you can select which repository you want to deploy and select the branch.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh7-us.googleusercontent.com\/B6uaunjK8wdAoiAs03v7ugRpNC4CxP8pkBSb7FC-zEujZ-PVT-vYsoaYSOOWoFRH8JwjiC7F1_fm4HJdmS2bd-kKxKwbkWAVHwtFl-JRy6khj7YsQoF7paq98rTmEArkjykOAQHuLbw7BdpfeVkrMfw\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh7-us.googleusercontent.com\/AcFFDksx-jPG569Wxeb_lUsICMzDwT7l9VwG1uZm9zcvI2FcEi0yZe4OeHx5zS4d8jh3uozEm3R3iO5Y9xoIcbstpZfliFcChx0H493ykwC9aI76HFZgfILkFzc4yun-rlnwckjBY5vzfdRkINutlzI\" alt=\"\"\/><\/figure>\n\n\n\n<p>Step 4: Configure Build Settings<\/p>\n\n\n\n<p>Once your repository is connected, Amplify will detect the type of project you&#8217;re hosting (e.g., React, Angular, Vue.js, or plain HTML\/CSS). It will suggest build settings based on the detected project type. Review and modify these settings as needed, ensuring they align with your website&#8217;s requirements.<\/p>\n\n\n\n<p>The base template that AWS provides is shown below.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2023\/11\/image.png\" data-rel=\"penci-gallery-image-content\" ><img decoding=\"async\" width=\"238\" height=\"330\" src=\"https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2023\/11\/image.png\" alt=\"\" class=\"wp-image-13300\" srcset=\"https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2023\/11\/image.png 238w, https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2023\/11\/image-216x300.png 216w\" sizes=\"(max-width: 238px) 100vw, 238px\" \/><\/a><\/figure>\n\n\n\n<p>Also, under the Advanced Settings toggle, you can set environment variables and a custom-build container.<\/p>\n\n\n\n<p>Finally, after reviewing your application&#8217;s settings, click Save and Deploy. AWS will begin configuring and deploying your application. Once AWS is deployed, you can navigate to the Amplify home page and see your newly deployed application. The amplify endpoint will let you access the website https:\/\/main.XXXXXX.amplifyapp.com\/<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh7-us.googleusercontent.com\/HTaMbjF_RNYOvH0o6brq17Bb6h0hMyNy0KyxEVf9FQDq2grTmJwSHj1ufF3x1LaI_WCIt3kNf-4-gk1lfUmJJ0rdeOpKFtfcjHty0-f-J5ffgJk0GgY-eUJG_BxblnQ1TnNYMLSmZoOdYOYRqRMM5Xg\" alt=\"\"\/><\/figure>\n\n\n\n<p>Step 5: Set Up Custom Domains and SSL<\/p>\n\n\n\n<p>To give your website a professional touch, you can set up a custom domain and enable SSL encryption. Amplify makes it easy to automatically add custom domains, provisions, and SSL certificates using AWS Certificate Manager (ACM). Once the endpoint is added in domain DNS the website can be accessed using your domain.<\/p>\n\n\n\n<p>Step 6: Continuous Deployment<\/p>\n\n\n\n<p>One of Amplify&#8217;s key features is its ability to enable continuous deployment. By connecting Amplify to your version control system, your website will automatically build and deploy whenever changes are pushed to the repository. This ensures that your website is always up to date.<\/p>\n\n\n\n<p>Step 8: Monitor and Manage<\/p>\n\n\n\n<p>You can monitor the performance of your website, track build logs, and manage multiple aspects of your application with Amplify&#8217;s dashboard. You can view metrics, set up alerts, and integrate with AWS CloudWatch for advanced monitoring capabilities.<\/p>\n\n\n\n<p>Pricing:<\/p>\n\n\n\n<p>You must be wondering why this is so cool and easy to deploy the website and is going to cost more. Nah, the AWS Amplify is included in the 12-month free tier&nbsp;<\/p>\n\n\n\n<p>Ie; No cost for up to: <\/p>\n\n\n\n<ul class=\"has-normal-font-size wp-block-list\"><li>1,000 build minutes per month<\/li><li>1,000 build minutes per month<\/li><li>5 GB stored on CDN per month<\/li><li>15 GB per month<\/li><li>500,000 requests per month<\/li><li>100 GB hours per month.<\/li><\/ul>\n\n\n\n<p>As you know AWS free tier is for 12 months only, once it&#8217;s over or you have a pay-as-you-go account then the following pricing is applied.<\/p>\n\n\n\n<div class=\"wp-block-group is-vertical is-layout-flex wp-container-core-group-is-layout-8cf370e7 wp-block-group-is-layout-flex\">\n<p>BUILD &amp; DEPLOY &#8211; $0.01 per minute<\/p>\n\n\n\n<p>DATA STORAGE &#8211; $0.023 per GB per month (this charge recurs until the app is deleted)<\/p>\n\n\n\n<p>DATA TRANSFER OUT &#8211; $0.15 per GB served<\/p>\n\n\n\n<p>REQUEST COUNT (SSR) &#8211; $0.30 per 1 million requests<\/p>\n\n\n\n<p>REQUEST DURATION (SSR) &#8211; $0.20 per hour (GB-hour)<\/p>\n<\/div>\n\n\n\n<p>Amazon Amplify simplifies the process of hosting websites, allowing developers and website owners to focus on their content and user experience. By following the steps outlined in this guide, you can quickly set up and deploy your website with Amplify&#8217;s powerful features. Embrace the power of AWS Amplify and enjoy a scalable, secure, and hassle-free hosting experience for your website.<\/p>\n\n\n\n<div class=\"wp-block-media-text alignwide has-media-on-the-right is-stacked-on-mobile is-vertically-aligned-center has-white-background-color has-background\"><figure class=\"wp-block-media-text__media\"><img decoding=\"async\" width=\"904\" height=\"931\" src=\"https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2022\/09\/Free-server-checkup.png\" alt=\"guy server checkup\" class=\"wp-image-12943 size-full\" srcset=\"https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2022\/09\/Free-server-checkup.png 904w, https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2022\/09\/Free-server-checkup-291x300.png 291w, https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2022\/09\/Free-server-checkup-768x791.png 768w, https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2022\/09\/Free-server-checkup-585x602.png 585w\" sizes=\"(max-width: 904px) 100vw, 904px\" \/><\/figure><div class=\"wp-block-media-text__content\">\n<p class=\"has-large-font-size\">Need help with your servers?<\/p>\n\n\n\n<!--HubSpot Call-to-Action Code --><span class=\"hs-cta-wrapper\" id=\"hs-cta-wrapper-3350a795-db50-482f-9911-301930d1b1be\"><span class=\"hs-cta-node hs-cta-3350a795-db50-482f-9911-301930d1b1be\" id=\"hs-cta-3350a795-db50-482f-9911-301930d1b1be\"><!--[if lte IE 8]><div id=\"hs-cta-ie-element\"><\/div><![endif]--><a href=\"https:\/\/cta-redirect.hubspot.com\/cta\/redirect\/2725694\/3350a795-db50-482f-9911-301930d1b1be\"><img decoding=\"async\" class=\"hs-cta-img\" id=\"hs-cta-img-3350a795-db50-482f-9911-301930d1b1be\" style=\"border-width:0px;\" src=\"https:\/\/no-cache.hubspot.com\/cta\/default\/2725694\/3350a795-db50-482f-9911-301930d1b1be.png\" alt=\"Contact Us today!\"><\/a><\/span><script charset=\"utf-8\" src=\"https:\/\/js.hscta.net\/cta\/current.js\"><\/script><script type=\"text\/javascript\"> hbspt.cta.load(2725694, '3350a795-db50-482f-9911-301930d1b1be', {\"useNewLoader\":\"true\",\"region\":\"na1\"}); <\/script><\/span><!-- end HubSpot Call-to-Action Code -->\n<\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>The digital age requires businesses and individuals to have a website. Whether you are a developer, blogger, or an entrepreneur, hosting your website securely and efficiently is essential. Let&#8217;s see&hellip;<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","footnotes":""},"categories":[69,77,5],"tags":[],"class_list":["post-13258","post","type-post","status-publish","format-standard","hentry","category-aws","category-compiling-tools","category-general-topics"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/13258","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/comments?post=13258"}],"version-history":[{"count":6,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/13258\/revisions"}],"predecessor-version":[{"id":13303,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/13258\/revisions\/13303"}],"wp:attachment":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/media?parent=13258"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/categories?post=13258"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/tags?post=13258"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}