How to Deploy React App (any static website) to S3 and CloudFront? (CI/CD Pipeline | GitHub Actions)

Поділитися
Вставка
  • Опубліковано 3 гру 2024

КОМЕНТАРІ • 44

  • @AntonPutra
    @AntonPutra  Рік тому +1

    🔴 - To support my channel, I’d like to offer Mentorship/On-the-Job Support/Consulting - me@antonputra.com

  • @TheVSI
    @TheVSI 2 місяці тому +1

    thank you, this was extremely helpful and ive succesfully deployed my site

  • @Rayhand117
    @Rayhand117 3 місяці тому +1

    You Helped me again and again!
    Thanks a lot!

    • @AntonPutra
      @AntonPutra  3 місяці тому +1

      thank you!!my pleasure!!

  • @kiranbakale8207
    @kiranbakale8207 4 місяці тому +1

    Thanks anton, keep up the good work

  • @hanniep8489
    @hanniep8489 8 місяців тому

    Great tutorial!!! Very clear explanation on what to do and why we do it!

  • @hamzazbili6803
    @hamzazbili6803 Рік тому +5

    thank you! The only helpful video I could find

  • @AntonPutra
    @AntonPutra  Рік тому +1

    👉 How to Manage Secrets in Terraform - ua-cam.com/video/3N0tGKwvBdA/v-deo.html
    👉 Terraform Tips & Tricks - ua-cam.com/video/7S94oUTy2z4/v-deo.html
    👉 ArgoCD Tutorial - ua-cam.com/video/zGndgdGa1Tc/v-deo.html

  • @bangarisaiswaraj
    @bangarisaiswaraj 11 місяців тому

    Very well organised video. Thanks Anton!

  • @datatechnology9213
    @datatechnology9213 Рік тому +2

    Great Thanks. Everything on Point 👌👍

  • @programm4you
    @programm4you Рік тому +1

    Спасибо, дружище, упростил мне жизнь! Все получилось и даже без policy/role, все уже было настроено.

  • @ftowork19office88
    @ftowork19office88 2 роки тому +3

    Thank you! it was awesome

  • @olawaseem
    @olawaseem 2 роки тому +2

    what was cost for hosting in aws and domain from google?

    • @AntonPutra
      @AntonPutra  2 роки тому +1

      hosting is really depend on the usage, my website almost cost me nothing, domain from $12 per year

  • @shivagangula2680
    @shivagangula2680 Рік тому

    how to access routing pages in cloud front i got access denied

  • @attinderpalsingh5745
    @attinderpalsingh5745 Рік тому

    What if my project has environment variables ? Is there any way i can save them anywhere? Not on GitHub and local ?

    • @AntonPutra
      @AntonPutra  Рік тому

      Perhaps you can add them to your CI/CD pipeline, but it would depend on the tools you are using.

  • @juliusoh
    @juliusoh Рік тому

    how do you set up cloudfront for ALB for EKS?

    • @AntonPutra
      @AntonPutra  Рік тому +1

      Not sure if I understand your question. If you need an ALB, you would use the AWS load balancer controller. CloudFront is typically used for static content that is distributed via CDN.

    • @juliusoh
      @juliusoh Рік тому

      @AntonPutra I meant is it possible to put cloud front in front of alb?

  • @babankumarsutradhar4544
    @babankumarsutradhar4544 2 роки тому +1

    What was cost cloudfront ?

  • @Thesanhokway
    @Thesanhokway Рік тому

    Hi Anton, when I removed static hosting and allow access only to the cloud front, it's working fine but when I refresh the page, routing is not working. It is showing access denied. Could you help out in this?

    • @AntonPutra
      @AntonPutra  Рік тому

      Sorry it's hard for me to debug, check if you disable "block public access"

    • @Thesanhokway
      @Thesanhokway Рік тому

      Thanks for the reply, Anton. The problem is solved by adding index.html to the errors page

    • @AntonPutra
      @AntonPutra  Рік тому

      @@Thesanhokway got it

  • @mikhailsh8916
    @mikhailsh8916 2 роки тому +3

    I like your video ))

  • @datatechnology9213
    @datatechnology9213 Рік тому

    Subscribed 👍

  • @afkgaming3203
    @afkgaming3203 7 місяців тому

    Why is ur video so Zoomed in and you do not show ur cursor. Its difficult to undestand

    • @AntonPutra
      @AntonPutra  7 місяців тому

      thanks for the feedback, i don't do it anymore

  • @RezzaACM
    @RezzaACM Рік тому +2

    Your name very Indonesian 😂. I think you are from Indonesia 😂

    • @AntonPutra
      @AntonPutra  Рік тому +1

      Yeah i get it a lot, i was told my last name translates as son =)

  • @harriottgaige5871
    @harriottgaige5871 2 роки тому +2

    𝖕𝖗𝖔𝖒𝖔𝖘𝖒 👍

  • @gareebsportscricket2984
    @gareebsportscricket2984 Рік тому

    thank you

  • @mohamedaslam6619
    @mohamedaslam6619 2 роки тому

    brother i ahving this error in github actions can you help me at
    new ClientRequest (node:_http_client:284:14)
    at Object.request (node:https:357:10)
    at features.constructor.handleRequest (/home/runner/.npm/_npx/55947e5ced8dc5f0/node_modules/aws-sdk/lib/http/node.js:45:23)
    at executeSend (/home/runner/.npm/_npx/55947e5ced8dc5f0/node_modules/aws-sdk/lib/event_listeners.js:418:29)
    at Request.SEND (/home/runner/.npm/_npx/55947e5ced8dc5f0/node_modules/aws-sdk/lib/event_listeners.js:432:9)
    at Request.callListeners (/home/runner/.npm/_npx/55947e5ced8dc5f0/node_modules/aws-sdk/lib/sequential_executor.js:102:18)
    at Request.emit (/home/runner/.npm/_npx/55947e5ced8dc5f0/node_modules/aws-sdk/lib/sequential_executor.js:78:10)
    at Request.emit (/home/runner/.npm/_npx/55947e5ced8dc5f0/node_modules/aws-sdk/lib/request.js:686:14)
    at Request.transition (/home/runner/.npm/_npx/55947e5ced8dc5f0/node_modules/aws-sdk/lib/request.js:22:10) {
    code: 'NetworkingError',
    region: 'us-east-1',
    hostname: 'cloudfront.amazonaws.com',
    retryable: true,
    time: 2022-11-06T15:05:33.025Z
    }
    node:internal/process/promises:279
    triggerUncaughtException(err, true /* fromPromise */);
    ^
    [UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "Invalidate error: NetworkingError [ERR_INVALID_CHAR]: Invalid character in header content ["Authorization"] (NetworkingError [NetworkingError]: Invalid character in header content ["Authorization"]
    at ClientRequest.setHeader (node:_http_outgoing:647:3)
    at new ClientRequest (node:_http_client:284:14)
    at Object.request (node:https:357:10)
    at features.constructor.handleRequest (/home/runner/.npm/_npx/55947e5ced8dc5f0/node_modules/aws-sdk/lib/http/node.js:45:23)
    at executeSend (/home/runner/.npm/_npx/55947e5ced8dc5f0/node_modules/aws-sdk/lib/event_listeners.js:418:29)
    at Request.SEND (/home/runner/.npm/_npx/55947e5ced8dc5f0/node_modules/aws-sdk/lib/event_listeners.js:432:9)
    at Request.callListeners (/home/runner/.npm/_npx/55947e5ced8dc5f0/node_modules/aws-sdk/lib/sequential_executor.js:102:18)
    at Request.emit (/home/runner/.npm/_npx/55947e5ced8dc5f0/node_modules/aws-sdk/lib/sequential_executor.js:78:10)
    at Request.emit (/home/runner/.npm/_npx/55947e5ced8dc5f0/node_modules/aws-sdk/lib/request.js:686:14)
    at Request.transition (/home/runner/.npm/_npx/55947e5ced8dc5f0/node_modules/aws-sdk/lib/request.js:22:10))".] {
    code: 'ERR_UNHANDLED_REJECTION'
    }
    Error: The process '/usr/local/bin/npx' failed with exit code 1