3:I[5613,[],""] 5:I[1778,[],""] 6:I[2581,["250","static/chunks/250-9edeb9d2171db55c.js","185","static/chunks/app/layout-051d49746254c3f8.js"],""] 4:["slug","learning/likelion/week10","c"] 0:["YFd_7cSmvIuy-EBayyLo2",[[["",{"children":[["slug","learning/likelion/week10","c"],{"children":["__PAGE__?{\"slug\":[\"learning\",\"likelion\",\"week10\"]}",{}]}]},"$undefined","$undefined",true],["",{"children":[["slug","learning/likelion/week10","c"],{"children":["__PAGE__",{},["$L1","$L2",null]]},["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","$4","children"],"loading":"$undefined","loadingStyles":"$undefined","loadingScripts":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/b14273d44a3cc3aa.css","precedence":"next","crossOrigin":""}]]}]]},[null,["$","html",null,{"lang":"ko","children":[["$","head",null,{"children":["$","script",null,{"dangerouslySetInnerHTML":{"__html":"\n\t\t\t\t\tconst saved = window.localStorage.getItem(\"data-theme\");\n\t\t\t\t\tif (saved) {\n\t\t\t\t\t\tif (saved === \"dark\") {\n\t\t\t\t\t\t\tdocument.documentElement.setAttribute(\"data-theme\", \"dark\");\n\t\t\t\t\t\t} else if (saved === \"light\") {\n\t\t\t\t\t\t\tdocument.documentElement.setAttribute(\"data-theme\", \"light\");\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tdocument.documentElement.setAttribute(\"data-theme\", \"light\");\n\t\t\t\t\t}\n\t\t\t\t"}}]}],["$","body",null,{"children":["$","$L6",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children"],"loading":"$undefined","loadingStyles":"$undefined","loadingScripts":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}]}]}]]}],null]],[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/a3a92ccd642ec2bc.css","precedence":"next","crossOrigin":""}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/6f7575626860276e.css","precedence":"next","crossOrigin":""}]],"$L7"]]]] 8:I[2664,["250","static/chunks/250-9edeb9d2171db55c.js","839","static/chunks/839-022cf7a9ced654a8.js","877","static/chunks/app/%5B...slug%5D/page-0ab240b8cea332e0.js"],""] 9:I[1749,["250","static/chunks/250-9edeb9d2171db55c.js","839","static/chunks/839-022cf7a9ced654a8.js","877","static/chunks/app/%5B...slug%5D/page-0ab240b8cea332e0.js"],"Image"] 2:["$","div",null,{"className":"style_container__fKKke","children":[["$","$L8",null,{}],["$","div",null,{"className":"style_post__b12XM","children":[["$","div",null,{"className":"style_headerWords__W9tOe","id":"headerWords","children":["$","div",null,{"className":"style_container__kC8fE","children":[["$","div",null,{"className":"style_title__RVWQ2","children":"멋사 - 10주차 RDS/S3 세션"}],["$","div",null,{"className":"style_description__dS1rF","children":"AWS의 RDS, S3 파헤치기"}]]}]}],["$","div",null,{"className":"style_time__vHpWr","children":"2024. 6. 5."}],["$","div",null,{"className":"style_title__mMA8e","children":"멋사 - 10주차 RDS/S3 세션"}],["$","div",null,{"className":"style_description__XJTFe","children":"AWS의 RDS, S3 파헤치기"}],["$","div",null,{"className":"style_border__x5cYB","id":"headLine"}],["$","div",null,{"className":"style_contentStyle__Yta8A","children":[[["$","h1",null,{"id":"목차","className":"style_heading__KYLdz style_heading1__0P2Vc","children":"목차"}],["$","div",null,{"className":"style_border__h4ej3"}]],"\n",["$","ul",null,{"className":"style_ul__SYxQ0","children":["\n",["$","li",null,{"className":"style_li__17u78","children":[["$","a",null,{"href":"#%EB%B0%B0%EC%9A%B4-%EB%82%B4%EC%9A%A9-%EC%A0%95%EB%A6%AC","children":"배운 내용 정리","className":"style_a__MgrUe"}],"\n",["$","ul",null,{"className":"style_ul__SYxQ0","children":["\n",["$","li",null,{"className":"style_li__17u78","children":["$","a",null,{"href":"#aws%EC%9D%98-resource-%EC%84%9C%EB%B9%84%EC%8A%A4","children":"AWS의 Resource 서비스","className":"style_a__MgrUe"}]}],"\n",["$","li",null,{"className":"style_li__17u78","children":["$","a",null,{"href":"#sqlite3--mysql","children":"SQLite3 → MySQL","className":"style_a__MgrUe"}]}],"\n",["$","li",null,{"className":"style_li__17u78","children":["$","a",null,{"href":"#rds","children":"RDS","className":"style_a__MgrUe"}]}],"\n",["$","li",null,{"className":"style_li__17u78","children":["$","a",null,{"href":"#s3","children":"S3","className":"style_a__MgrUe"}]}],"\n",["$","li",null,{"className":"style_li__17u78","children":["$","a",null,{"href":"#django-%EC%84%B8%ED%8C%85","children":"Django 세팅","className":"style_a__MgrUe"}]}],"\n"]}],"\n"]}],"\n",["$","li",null,{"className":"style_li__17u78","children":[["$","a",null,{"href":"#%ED%9B%84%EA%B8%B0","children":"후기","className":"style_a__MgrUe"}],"\n",["$","ul",null,{"className":"style_ul__SYxQ0","children":["\n",["$","li",null,{"className":"style_li__17u78","children":["$","a",null,{"href":"#%EA%B2%B0%EA%B5%AD-%ED%94%BC%ED%95%98%EC%A7%80-%EB%AA%BB%ED%95%9C-%EC%8B%A4%EC%88%98","children":"결국 피하지 못한 실수","className":"style_a__MgrUe"}]}],"\n"]}],"\n"]}],"\n"]}],"\n",[["$","h1",null,{"id":"배운-내용-정리","className":"style_heading__KYLdz style_heading1__0P2Vc","children":"배운 내용 정리"}],["$","div",null,{"className":"style_border__h4ej3"}]],"\n",[["$","h2",null,{"id":"aws의-resource-서비스","className":"style_heading__KYLdz style_heading2__HKlKs","children":"AWS의 Resource 서비스"}],["$","div",null,{"className":"style_border__h4ej3"}]],"\n",["$","div",null,{"className":"style_p__L5AWZ","children":"AWS에는 Resource를 관리할 수 있는 다양한 서비스들이 존재한다."}],"\n",["$","ul",null,{"className":"style_ul__SYxQ0","children":["\n",["$","li",null,{"className":"style_li__17u78","children":["\n",["$","div",null,{"className":"style_p__L5AWZ","children":"컴퓨팅"}],"\n",["$","ul",null,{"className":"style_ul__SYxQ0","children":["\n",["$","li",null,{"className":"style_li__17u78","children":["$","strong",null,{"className":"style_strong__ip7oe","children":"EC2"}]}],"\n",["$","li",null,{"className":"style_li__17u78","children":"Lambda"}],"\n"]}],"\n"]}],"\n",["$","li",null,{"className":"style_li__17u78","children":["\n",["$","div",null,{"className":"style_p__L5AWZ","children":"스토리지"}],"\n",["$","ul",null,{"className":"style_ul__SYxQ0","children":["\n",["$","li",null,{"className":"style_li__17u78","children":["$","strong",null,{"className":"style_strong__ip7oe","children":"S3"}]}],"\n",["$","li",null,{"className":"style_li__17u78","children":"EBS"}],"\n"]}],"\n"]}],"\n",["$","li",null,{"className":"style_li__17u78","children":["\n",["$","div",null,{"className":"style_p__L5AWZ","children":"데이터베이스"}],"\n",["$","ul",null,{"className":"style_ul__SYxQ0","children":["\n",["$","li",null,{"className":"style_li__17u78","children":[["$","strong",null,{"className":"style_strong__ip7oe","children":"RDS"}]," : RDB"]}],"\n",["$","li",null,{"className":"style_li__17u78","children":"DynamoDB: No SQL"}],"\n"]}],"\n"]}],"\n",["$","li",null,{"className":"style_li__17u78","children":["\n",["$","div",null,{"className":"style_p__L5AWZ","children":"네트워킹 및 콘텐츠 전송"}],"\n",["$","ul",null,{"className":"style_ul__SYxQ0","children":["\n",["$","li",null,{"className":"style_li__17u78","children":"VPC"}],"\n",["$","li",null,{"className":"style_li__17u78","children":"CloudFront"}],"\n"]}],"\n"]}],"\n",["$","li",null,{"className":"style_li__17u78","children":["\n",["$","div",null,{"className":"style_p__L5AWZ","children":[["$","strong",null,{"className":"style_strong__ip7oe","children":"RDS"}]," : 관계형 데이터베이스 서비스"]}],"\n"]}],"\n",["$","li",null,{"className":"style_li__17u78","children":["\n",["$","div",null,{"className":"style_p__L5AWZ","children":[["$","strong",null,{"className":"style_strong__ip7oe","children":"S3"}]," : 오브젝트/정적 파일 스토리지 서비스"]}],"\n"]}],"\n"]}],"\n",[["$","h2",null,{"id":"sqlite3--mysql","className":"style_heading__KYLdz style_heading2__HKlKs","children":"SQLite3 → MySQL"}],["$","div",null,{"className":"style_border__h4ej3"}]],"\n",["$","div",null,{"className":"style_p__L5AWZ","children":"SQLite3는 동시성 제한, 파일 기반 데이터베이스의 데이터 손실 위험, 복잡한 쿼리 실행 어려움 등의 단점으로 인해 문제가 많았다."}],"\n",["$","div",null,{"className":"style_p__L5AWZ","children":"따라서 배포환경에서는 위의 단점들이 해결되는 서버 형태의 관계형 데이터베이스 관리 시스템(RDBMS)을 사용하는 것이 좋으므로 MySQL로 DB 시스템을 변경하는 것을 추천한다."}],"\n",[["$","h2",null,{"id":"rds","className":"style_heading__KYLdz style_heading2__HKlKs","children":"RDS"}],["$","div",null,{"className":"style_border__h4ej3"}]],"\n",["$","div",null,{"className":"style_p__L5AWZ","children":["Amazon Relational Database Service(RDS)는 클라우드에서 간편하게 ",["$","strong",null,{"className":"style_strong__ip7oe","children":"데이터베이스"}],"를 ",["$","strong",null,{"className":"style_strong__ip7oe","children":"설치"}],", ",["$","strong",null,{"className":"style_strong__ip7oe","children":"운영"}]," 및 규모 조정할 수 있는 관리형 서비스 모음이다. Relational이라는 말처럼 관계형 데이터베이스를 관리하는 서비스다."]}],"\n",[["$","h2",null,{"id":"s3","className":"style_heading__KYLdz style_heading2__HKlKs","children":"S3"}],["$","div",null,{"className":"style_border__h4ej3"}]],"\n",["$","div",null,{"className":"style_p__L5AWZ","children":"Amazon Simple Storage Service(Amazon S3)는 주로 정적 파일과 미디어 파일들을 저장한다."}],"\n",["$","div",null,{"className":"style_p__L5AWZ","children":"S3를 사용하는 이유는 다음과 같다."}],"\n",["$","ul",null,{"className":"style_ul__SYxQ0","children":["\n",["$","li",null,{"className":"style_li__17u78","children":[["$","strong",null,{"className":"style_strong__ip7oe","children":"확장성"}],": 사용자가 필요한 만큼의 스토리지 용량을 제공. 필요에 따라 용량을 확장 또는 축소."]}],"\n",["$","li",null,{"className":"style_li__17u78","children":[["$","strong",null,{"className":"style_strong__ip7oe","children":"가용성"}],": 여러 복제본을 생성하고 여러 데이터 센터에 분산 저장하여 사용자게에 빠르게 객체를 전달."]}],"\n",["$","li",null,{"className":"style_li__17u78","children":[["$","strong",null,{"className":"style_strong__ip7oe","children":"보안"}],": 데이터를 암호화하여 저장하고 전송."]}],"\n"]}],"\n",["$","div",null,{"className":"style_p__L5AWZ","children":"추가적으로 CDN(Content Delivery Network)와 함께 쓴다면 캐싱효과를 누릴 수 있어 사용자가 더 쉽고 빠르게 서비스를 이용할 수 있게 된다."}],"\n",[["$","h2",null,{"id":"django-세팅","className":"style_heading__KYLdz style_heading2__HKlKs","children":"Django 세팅"}],["$","div",null,{"className":"style_border__h4ej3"}]],"\n",["$","div",null,{"className":"style_p__L5AWZ","children":"이미지 필드를 사용하기 위해 Pillow 패키지를 설치하고, S3를 사용하기 위해 boto3(Python용 AWS SDK), 다양한 저장소를 사용하기 위해 django-storages를 설치한다."}],"\n",["$","div",null,{"data-rehype-pretty-code-fragment":"","children":["$","pre",null,{"className":"dark-plus","style":{"backgroundColor":"#1E1E1E"},"tabIndex":"0","data-language":"json","data-theme":"default","children":["$","code",null,{"data-language":"json","data-theme":"default","style":{"display":"grid"},"children":["$","span",null,{"data-line":"","children":[["$","span",null,{"style":{"color":"#D4D4D4"},"children":"pip install Pillow boto"}],["$","span",null,{"style":{"color":"#B5CEA8"},"children":"3"}],["$","span",null,{"style":{"color":"#D4D4D4"},"children":" django-storages"}]]}]}]}]}],"\n",["$","div",null,{"className":"style_p__L5AWZ","children":"settings.py를 수정한다."}],"\n",["$","div",null,{"data-rehype-pretty-code-fragment":"","children":["$","pre",null,{"className":"dark-plus","style":{"backgroundColor":"#1E1E1E"},"tabIndex":"0","data-language":"python","data-theme":"default","children":["$","code",null,{"data-language":"python","data-theme":"default","style":{"display":"grid"},"children":[["$","span",null,{"data-line":"","children":["$","span",null,{"style":{"color":"#D4D4D4"},"children":"THIRD_PARTY_APPS = ["}]}],"\n",["$","span",null,{"data-line":"","children":[["$","span",null,{"style":{"color":"#D4D4D4"},"children":" "}],["$","span",null,{"style":{"color":"#CE9178"},"children":"'storages'"}],["$","span",null,{"style":{"color":"#D4D4D4"},"children":","}]]}],"\n",["$","span",null,{"data-line":"","children":["$","span",null,{"style":{"color":"#D4D4D4"},"children":"]"}]}],"\n",["$","span",null,{"data-line":"","children":" "}],"\n",["$","span",null,{"data-line":"","children":["$","span",null,{"style":{"color":"#D4D4D4"},"children":"..."}]}],"\n",["$","span",null,{"data-line":"","children":" "}],"\n",["$","span",null,{"data-line":"","children":["$","span",null,{"style":{"color":"#6A9955"},"children":"###AWS###"}]}],"\n",["$","span",null,{"data-line":"","children":[["$","span",null,{"style":{"color":"#D4D4D4"},"children":"AWS_ACCESS_KEY_ID = get_secret("}],["$","span",null,{"style":{"color":"#CE9178"},"children":"\"AWS_ACCESS_KEY_ID\""}],["$","span",null,{"style":{"color":"#D4D4D4"},"children":") "}],["$","span",null,{"style":{"color":"#6A9955"},"children":"# .csv 파일에 있는 내용을 입력 Access key ID"}]]}],"\n",["$","span",null,{"data-line":"","children":[["$","span",null,{"style":{"color":"#D4D4D4"},"children":"AWS_SECRET_ACCESS_KEY = get_secret("}],["$","span",null,{"style":{"color":"#CE9178"},"children":"\"AWS_SECRET_ACCESS_KEY\""}],["$","span",null,{"style":{"color":"#D4D4D4"},"children":") "}],["$","span",null,{"style":{"color":"#6A9955"},"children":"# .csv 파일에 있는 내용을 입력 Secret access key"}]]}],"\n",["$","span",null,{"data-line":"","children":[["$","span",null,{"style":{"color":"#D4D4D4"},"children":"AWS_REGION = "}],["$","span",null,{"style":{"color":"#CE9178"},"children":"'ap-northeast-2'"}]]}],"\n",["$","span",null,{"data-line":"","children":" "}],"\n",["$","span",null,{"data-line":"","children":["$","span",null,{"style":{"color":"#6A9955"},"children":"###S3###"}]}],"\n",["$","span",null,{"data-line":"","children":[["$","span",null,{"style":{"color":"#D4D4D4"},"children":"AWS_STORAGE_BUCKET_NAME = "}],["$","span",null,{"style":{"color":"#CE9178"},"children":"'lionsession'"}]]}],"\n",["$","span",null,{"data-line":"","children":[["$","span",null,{"style":{"color":"#D4D4D4"},"children":"AWS_S3_CUSTOM_DOMAIN = "}],["$","span",null,{"style":{"color":"#CE9178"},"children":"'"}],["$","span",null,{"style":{"color":"#569CD6"},"children":"%s"}],["$","span",null,{"style":{"color":"#CE9178"},"children":".s3."}],["$","span",null,{"style":{"color":"#569CD6"},"children":"%s"}],["$","span",null,{"style":{"color":"#CE9178"},"children":".amazonaws.com'"}],["$","span",null,{"style":{"color":"#D4D4D4"},"children":" % (AWS_STORAGE_BUCKET_NAME,AWS_REGION)"}]]}],"\n",["$","span",null,{"data-line":"","children":["$","span",null,{"style":{"color":"#D4D4D4"},"children":"AWS_S3_OBJECT_PARAMETERS = {"}]}],"\n",["$","span",null,{"data-line":"","children":[["$","span",null,{"style":{"color":"#D4D4D4"},"children":" "}],["$","span",null,{"style":{"color":"#CE9178"},"children":"'CacheControl'"}],["$","span",null,{"style":{"color":"#D4D4D4"},"children":": "}],["$","span",null,{"style":{"color":"#CE9178"},"children":"'max-age=86400'"}],["$","span",null,{"style":{"color":"#D4D4D4"},"children":","}]]}],"\n",["$","span",null,{"data-line":"","children":["$","span",null,{"style":{"color":"#D4D4D4"},"children":"}"}]}],"\n",["$","span",null,{"data-line":"","children":" "}],"\n",["$","span",null,{"data-line":"","children":[["$","span",null,{"style":{"color":"#D4D4D4"},"children":"DEFAULT_FILE_STORAGE = "}],["$","span",null,{"style":{"color":"#CE9178"},"children":"'storages.backends.s3boto3.S3Boto3Storage'"}],["$","span",null,{"style":{"color":"#D4D4D4"},"children":" "}],["$","span",null,{"style":{"color":"#6A9955"},"children":"# 장고의 기본 파일저장소 위치를 S3버킷으로 지정."}]]}]]}]}]}],"\n",["$","div",null,{"className":"style_p__L5AWZ","children":"secrets.json에 AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY를 추가로 작성한다."}],"\n",["$","div",null,{"className":"style_p__L5AWZ","children":"Post에 이미지 필드를 추가하기 위해 다음과 같이 코드를 변경한다."}],"\n",["$","div",null,{"data-rehype-pretty-code-fragment":"","children":["$","pre",null,{"className":"dark-plus","style":{"backgroundColor":"#1E1E1E"},"tabIndex":"0","data-language":"python","data-theme":"default","children":["$","code",null,{"data-language":"python","data-theme":"default","style":{"display":"grid"},"children":[["$","span",null,{"data-line":"","children":[["$","span",null,{"style":{"color":"#569CD6"},"children":"class"}],["$","span",null,{"style":{"color":"#D4D4D4"},"children":" "}],["$","span",null,{"style":{"color":"#4EC9B0"},"children":"Post"}],["$","span",null,{"style":{"color":"#D4D4D4"},"children":"("}],["$","span",null,{"style":{"color":"#4EC9B0"},"children":"BaseModel"}],["$","span",null,{"style":{"color":"#D4D4D4"},"children":") :"}]]}],"\n",["$","span",null,{"data-line":"","children":" "}],"\n",["$","span",null,{"data-line":"","children":["$","span",null,{"style":{"color":"#D4D4D4"},"children":" CHOICES = ("}]}],"\n",["$","span",null,{"data-line":"","children":[["$","span",null,{"style":{"color":"#D4D4D4"},"children":" ("}],["$","span",null,{"style":{"color":"#CE9178"},"children":"'DIARY'"}],["$","span",null,{"style":{"color":"#D4D4D4"},"children":", "}],["$","span",null,{"style":{"color":"#CE9178"},"children":"'일기'"}],["$","span",null,{"style":{"color":"#D4D4D4"},"children":"),"}]]}],"\n",["$","span",null,{"data-line":"","children":[["$","span",null,{"style":{"color":"#D4D4D4"},"children":" ("}],["$","span",null,{"style":{"color":"#CE9178"},"children":"'STUDY'"}],["$","span",null,{"style":{"color":"#D4D4D4"},"children":", "}],["$","span",null,{"style":{"color":"#CE9178"},"children":"'공부'"}],["$","span",null,{"style":{"color":"#D4D4D4"},"children":"),"}]]}],"\n",["$","span",null,{"data-line":"","children":[["$","span",null,{"style":{"color":"#D4D4D4"},"children":" ("}],["$","span",null,{"style":{"color":"#CE9178"},"children":"'ETC'"}],["$","span",null,{"style":{"color":"#D4D4D4"},"children":", "}],["$","span",null,{"style":{"color":"#CE9178"},"children":"'기타'"}],["$","span",null,{"style":{"color":"#D4D4D4"},"children":")"}]]}],"\n",["$","span",null,{"data-line":"","children":["$","span",null,{"style":{"color":"#D4D4D4"},"children":" )"}]}],"\n",["$","span",null,{"data-line":"","children":" "}],"\n",["$","span",null,{"data-line":"","children":[["$","span",null,{"style":{"color":"#D4D4D4"},"children":" "}],["$","span",null,{"style":{"color":"#DCDCAA"},"children":"id"}],["$","span",null,{"style":{"color":"#D4D4D4"},"children":" = models.AutoField("}],["$","span",null,{"style":{"color":"#9CDCFE"},"children":"primary_key"}],["$","span",null,{"style":{"color":"#D4D4D4"},"children":"="}],["$","span",null,{"style":{"color":"#569CD6"},"children":"True"}],["$","span",null,{"style":{"color":"#D4D4D4"},"children":")"}]]}],"\n",["$","span",null,{"data-line":"","children":[["$","span",null,{"style":{"color":"#D4D4D4"},"children":" title = models.CharField("}],["$","span",null,{"style":{"color":"#9CDCFE"},"children":"verbose_name"}],["$","span",null,{"style":{"color":"#D4D4D4"},"children":"="}],["$","span",null,{"style":{"color":"#CE9178"},"children":"\"제목\""}],["$","span",null,{"style":{"color":"#D4D4D4"},"children":", "}],["$","span",null,{"style":{"color":"#9CDCFE"},"children":"max_length"}],["$","span",null,{"style":{"color":"#D4D4D4"},"children":"="}],["$","span",null,{"style":{"color":"#B5CEA8"},"children":"20"}],["$","span",null,{"style":{"color":"#D4D4D4"},"children":")"}]]}],"\n",["$","span",null,{"data-line":"","children":[["$","span",null,{"style":{"color":"#D4D4D4"},"children":" content = models.TextField("}],["$","span",null,{"style":{"color":"#9CDCFE"},"children":"verbose_name"}],["$","span",null,{"style":{"color":"#D4D4D4"},"children":" = "}],["$","span",null,{"style":{"color":"#CE9178"},"children":"\"내용\""}],["$","span",null,{"style":{"color":"#D4D4D4"},"children":")"}]]}],"\n",["$","span",null,{"data-line":"","children":[["$","span",null,{"style":{"color":"#D4D4D4"},"children":" writer = models.CharField("}],["$","span",null,{"style":{"color":"#9CDCFE"},"children":"verbose_name"}],["$","span",null,{"style":{"color":"#D4D4D4"},"children":"="}],["$","span",null,{"style":{"color":"#CE9178"},"children":"\"작성자\""}],["$","span",null,{"style":{"color":"#D4D4D4"},"children":", "}],["$","span",null,{"style":{"color":"#9CDCFE"},"children":"max_length"}],["$","span",null,{"style":{"color":"#D4D4D4"},"children":"="}],["$","span",null,{"style":{"color":"#B5CEA8"},"children":"10"}],["$","span",null,{"style":{"color":"#D4D4D4"},"children":")"}]]}],"\n",["$","span",null,{"data-line":"","children":[["$","span",null,{"style":{"color":"#D4D4D4"},"children":" category = models.CharField("}],["$","span",null,{"style":{"color":"#9CDCFE"},"children":"choices"}],["$","span",null,{"style":{"color":"#D4D4D4"},"children":"=CHOICES, "}],["$","span",null,{"style":{"color":"#9CDCFE"},"children":"max_length"}],["$","span",null,{"style":{"color":"#D4D4D4"},"children":"="}],["$","span",null,{"style":{"color":"#B5CEA8"},"children":"20"}],["$","span",null,{"style":{"color":"#D4D4D4"},"children":")"}]]}],"\n",["$","span",null,{"data-line":"","children":[["$","span",null,{"style":{"color":"#D4D4D4"},"children":" thumbnail = models.ImageField("}],["$","span",null,{"style":{"color":"#9CDCFE"},"children":"null"}],["$","span",null,{"style":{"color":"#D4D4D4"},"children":"="}],["$","span",null,{"style":{"color":"#569CD6"},"children":"True"}],["$","span",null,{"style":{"color":"#D4D4D4"},"children":", "}],["$","span",null,{"style":{"color":"#9CDCFE"},"children":"blank"}],["$","span",null,{"style":{"color":"#D4D4D4"},"children":"="}],["$","span",null,{"style":{"color":"#569CD6"},"children":"True"}],["$","span",null,{"style":{"color":"#D4D4D4"},"children":", "}],["$","span",null,{"style":{"color":"#9CDCFE"},"children":"verbose_name"}],["$","span",null,{"style":{"color":"#D4D4D4"},"children":"="}],["$","span",null,{"style":{"color":"#CE9178"},"children":"\"썸네일\""}],["$","span",null,{"style":{"color":"#D4D4D4"},"children":") "}],["$","span",null,{"style":{"color":"#6A9955"},"children":"# 추가"}]]}]]}]}]}],"\n",[["$","h1",null,{"id":"후기","className":"style_heading__KYLdz style_heading1__0P2Vc","children":"후기"}],["$","div",null,{"className":"style_border__h4ej3"}]],"\n",["$","div",null,{"className":"style_p__L5AWZ","children":"AWS에서 EC2와 함께 가장 많이 이용할 서비스인 RDS, S3에 대해 배워볼 수 있는 시간이었다."}],"\n",["$","div",null,{"className":"style_p__L5AWZ","children":"S3는 이전부터 굉장히 많이 들어보던 서비스였지만 정확히 어떤 상황에 사용되는 서비스인지 몰랐는데, 이미지나 동영상을 저장하는데에 좋은 서비스임을 알 수 있었다."}],"\n",[["$","h2",null,{"id":"결국-피하지-못한-실수","className":"style_heading__KYLdz style_heading2__HKlKs","children":"결국 피하지 못한 실수"}],["$","div",null,{"className":"style_border__h4ej3"}]],"\n",["$","div",null,{"className":"style_imageBox__6sQ34","children":[["$","$L9",null,{"src":"/learning/likelion/week10/aws1.png","alt":"/learning/likelion/week10/aws1.png","width":1000,"height":1000,"loading":"lazy","className":"style_img__fwG4y"}],["$","div",null,{"className":"style_description__GqC1z","children":"처음 본 순간 오소소 돋아오는 소름..."}]]}],"\n",["$","div",null,{"className":"style_imageBox__6sQ34","children":[["$","$L9",null,{"src":"/learning/likelion/week10/aws2.png","alt":"/learning/likelion/week10/aws2.png","width":1000,"height":1000,"loading":"lazy","className":"style_img__fwG4y"}],["$","div",null,{"className":"style_description__GqC1z","children":""}]]}],"\n",["$","div",null,{"className":"style_p__L5AWZ","children":"평소에 AWS 과금에 대해 신중한 입장이라 결제 대시보드도 자주 체크하고 신경을 많이 썼는데, 결국은 사건이 터져버렸다."}],"\n",["$","div",null,{"className":"style_p__L5AWZ","children":"내 계정은 만들어진지 12개월이 훌쩍 지나서 AWS 프리티어의 혜택이 사라진 상태였는데, 나는 EC2만 프리티어의 기한이 있다는 것으로 잘못 해석하고 RDS는 평생 프리티어의 혜택을 가진다고 생각했다."}],"\n",["$","div",null,{"className":"style_p__L5AWZ","children":"그러나 안타깝게도 RDS는 평생 프리티어가 아니었고, 세션에서 RDS를 만든 후 나는 아무런 걱정 없이 신경을 놓았다. 하필 또 시험기간 도중이라 AWS에 신경을 쓸 여유가 없던 것도 이유였다."}],"\n",["$","div",null,{"className":"style_p__L5AWZ","children":["그리고 시간이 좀 지난 뒤 우연히 AWS에 들어갔더니 ",["$","del",null,{"children":"(이때 못 들어갔으면 ㄹㅇ 10만원 넘겼을 듯…)"}]," 위와 같이 돈을 내놓으라는 청구서를 반갑게 맞이할 수 있었다. 😟"]}],"\n",["$","div",null,{"className":"style_p__L5AWZ","children":"다행히 AWS에 싹싹 빌어서 봐달라는 요청을 넣었더니 이번달에 한해서만 환불을 해준다고 해서 그나마 다행이지만, 정말 시험 도중에 소름끼치는 경험을 하게 되었다…"}],"\n",["$","div",null,{"className":"style_p__L5AWZ","children":"AWS는 기회의 장이기도 하지만 곳곳에 엄청난 함정들이 숨어있으므로 정신을 똑바로 차려야겠다는 교훈을 얻었다…!"}]]}]]}]]}] 7:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}],["$","title","2",{"children":"멋사 - 10주차 RDS/S3 세션 | Temple's Hideout"}],["$","meta","3",{"name":"description","content":"AWS의 RDS, S3 파헤치기"}],["$","meta","4",{"property":"og:title","content":"멋사 - 10주차 RDS/S3 세션 | Temple's Hideout"}],["$","meta","5",{"property":"og:description","content":"AWS의 RDS, S3 파헤치기"}],["$","meta","6",{"property":"og:image","content":"https://blog.templ.es/opengraph/learning/likelion/week10"}],["$","meta","7",{"name":"twitter:card","content":"summary_large_image"}],["$","meta","8",{"name":"twitter:title","content":"멋사 - 10주차 RDS/S3 세션 | Temple's Hideout"}],["$","meta","9",{"name":"twitter:description","content":"AWS의 RDS, S3 파헤치기"}],["$","meta","10",{"name":"twitter:image","content":"https://blog.templ.es/opengraph/learning/likelion/week10"}],["$","link","11",{"rel":"icon","href":"/favicon.ico","type":"image/x-icon","sizes":"16x16"}],["$","meta","12",{"name":"next-size-adjust"}]] 1:null