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?
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.
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
🔴 - To support my channel, I’d like to offer Mentorship/On-the-Job Support/Consulting - me@antonputra.com
thank you, this was extremely helpful and ive succesfully deployed my site
my pleasure!
You Helped me again and again!
Thanks a lot!
thank you!!my pleasure!!
Thanks anton, keep up the good work
thank you!
thank you! The only helpful video I could find
Welcome!
Great tutorial!!! Very clear explanation on what to do and why we do it!
Thank you!
Very well organised video. Thanks Anton!
Спасибо, дружище, упростил мне жизнь! Все получилось и даже без policy/role, все уже было настроено.
pozhaluysta!
Great Thanks. Everything on Point 👌👍
Thank you! it was awesome
No problem 😊
👉 How to Manage Secrets in Terraform - th-cam.com/video/3N0tGKwvBdA/w-d-xo.html
👉 Terraform Tips & Tricks - th-cam.com/video/7S94oUTy2z4/w-d-xo.html
👉 ArgoCD Tutorial - th-cam.com/video/zGndgdGa1Tc/w-d-xo.html
what was cost for hosting in aws and domain from google?
hosting is really depend on the usage, my website almost cost me nothing, domain from $12 per year
What if my project has environment variables ? Is there any way i can save them anywhere? Not on GitHub and local ?
Perhaps you can add them to your CI/CD pipeline, but it would depend on the tools you are using.
I like your video ))
Thanks
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?
Sorry it's hard for me to debug, check if you disable "block public access"
Thanks for the reply, Anton. The problem is solved by adding index.html to the errors page
@@Thesanhokway got it
What was cost cloudfront ?
it's based on usage
how do you set up cloudfront for ALB for EKS?
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.
@AntonPutra I meant is it possible to put cloud front in front of alb?
how to access routing pages in cloud front i got access denied
Subscribed 👍
Thanks!
Why is ur video so Zoomed in and you do not show ur cursor. Its difficult to undestand
thanks for the feedback, i don't do it anymore
Your name very Indonesian 😂. I think you are from Indonesia 😂
Yeah i get it a lot, i was told my last name translates as son =)
𝖕𝖗𝖔𝖒𝖔𝖘𝖒 👍
:)
thank you
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