AWS CodeDeploy에서 LastModified가 30일 지난 파일들을 삭제하는 bash script
AWS S3에 예전 배포 파일들이 쌓여있으면 관리하기 어렵다. 배포를 자주 할 수록 더욱 그렇다. 그러니 파일 변경일을 기준으로 30일 이상 지난 파일을 삭제해보자.
AWS S3에 예전 배포 파일들이 쌓여있으면 관리하기 어렵다. 배포를 자주 할 수록 더욱 그렇다. 그러니 파일 변경일을 기준으로 30일 이상 지난 파일을 삭제해보자.
When old deployment files pile up in AWS S3, they become hard to manage. The more frequently you deploy, the worse it gets. So let’s delete files that are 30...
‘*/’ 로 설정해야 하위 디렉토리의 파일까지 재귀적으로 artifact에 포함된다. AWS 문서에도 나와 있기는 한데… 다소 애매하게 설명하고 있어서 놓치기 쉽다.
You need to set it to ‘*/’ so that files in subdirectories are recursively included in the artifact. It is mentioned in the AWS docs too… but it’s explained ...
CloudFront(이하 CF)에서 error page redirection은 1회의 request에서 1회만 가능하다. 2회 이상 동작하지 않는다. 예를 들어보자.
In CloudFront (hereafter CF), error page redirection can only happen once per request. It does not run more than once. Let’s look at an example.
build artifact는 codeBuild가 build를 마친 후, 그 결과물을 저장한 파일. 나중에 auto scaling 할 때 쓰인다 source artifact는 codeBuild가 build를 하기 위해 소스코드를 가져온 파일
A build artifact is the file that stores the result after CodeBuild finishes a build. It is used later during auto scaling. A source artifact is the file con...
html parser가 inline style을 만나면 CSSOM을 만들기 위해 parser 동작을 일시 중지할까? cssom은 javascript가 css style을 조작하기 위한 모델이다 cssom은 외부 css를 받아오든, style tag를 만나든, inline styl...
When the HTML parser encounters an inline style, does it pause the parser to build the CSSOM? The CSSOM is the model JavaScript uses to manipulate CSS styles...
create-react-app으로 react 개발을 하다가, webpack 설정이 궁금해서 npm run eject를 해봤다. 설정을 훑어보고 git checkout -f 로 원복했는데… 다시는 npm run eject를 할 수 없었다.
While doing React development with create-react-app, I was curious about the webpack configuration, so I tried running npm run eject. I looked over the confi...
CloudFront(이하 CF)에 HTTP request를 보낼 때, 존재하지 않는 method(HTTP Verb)로 보내면 어떻게 될까?
What happens when you send an HTTP request to CloudFront (hereafter CF) with a nonexistent method (HTTP Verb)?
CloudFront의 Custom Error Page은 오로지 redirection을 할 뿐이지, 어떠한 side effect도 없다. AWS 엔지니어에게 확인받음. 그러니 response header에 x-cache: error from cloudfront 가 떠도 의도한 바라면...
CloudFront’s Custom Error Page only performs a redirection and has no side effects whatsoever. Confirmed by an AWS engineer. So even if x-cache: error from c...
진행 중인 transition이 취소되면? transitionEnd event가 발생하지 않는다. 이렇게 되면 transitionEnd를 기준으로 event를 발생시키는 javascript 앱에 오류가 발생한다.
What happens when a transition in progress is cancelled? The transitionEnd event doesn’t fire. When this happens, it causes errors in JavaScript apps that tr...
요약: safari는 scrollIntoView의 모든 option을 지원하지 않음 reference: https://caniuse.com/?search=scrollIntoView safari 13, 14에서 test함 오류 목...
Summary: Safari does not support all of the scrollIntoView options reference: https://caniuse.com/?search=scrollIntoView Tested on Safari...