Skip to content

Instantly share code, notes, and snippets.

View drsasimi's full-sized avatar

Lee Sang Hyeon drsasimi

View GitHub Profile

How to setup AWS lambda function to talk to the internet and VPC

I'm going to walk you through the steps for setting up a AWS Lambda to talk to the internet and a VPC. Let's dive in.

So it might be really unintuitive at first but lambda functions have three states.

  1. No VPC, where it can talk openly to the web, but can't talk to any of your AWS services.
  2. VPC, the default setting where the lambda function can talk to your AWS services but can't talk to the web.
  3. VPC with NAT, The best of both worlds, AWS services and web.
@drsasimi
drsasimi / 1-invoke-certificate.sh
Last active March 18, 2020 01:39
Let's Encrypt 인증서 발급 및 Tomcat 인증서 변환
# 일반 인증서 발급 시 (.ache-challenge 검증)
$ ./certbot-auto certonly --manual
# 와일드카드 인증서 발급 시 (DNS TXT 검증)
$ ./certbot-auto certonly --manual --preferred-challenges dns --server https://acme-v02.api.letsencrypt.org/directory
@drsasimi
drsasimi / 01-grub.cfg
Last active July 27, 2020 12:19
Xpnology Jun's loader 1.03b + N54L settings
if serial --port=0x3F8 --speed=115200;then
set has_serial=true
terminal_input --append serial
terminal_output --append serial
else
clear
fi
terminal_input --append console
terminal_output --append console
@drsasimi
drsasimi / local.conf
Last active December 21, 2021 16:47
Arch Linux에서 한글 출력을 SpoqaHanSans로 변경한 파일. `/etc/fonts/local.conf`로 저장한 뒤 `sudo fc-cache -f`를 돌려주면 적용
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
<fontconfig>
<!-- Default sans-serif font -->
<match target="pattern">
<test qual="any" name="family">
<string>sans-serif</string>
</test>
<edit name="family" mode="prepend" binding="same">
http://gitignore.io/api/java,maven,gradle,eclipse,java-web,intellij+all
git rm -r --cached .
git add .
git commit -m "Apply .gitignore"
@drsasimi
drsasimi / 전자정부 프레임워크 개발환경 HiDPI 및 JAVA 1.8 옵션
Created January 28, 2020 00:19
JDK 1.8 패스 수동 지정 (-vm), HiDPI 대응 옵션 (-Dswt.autoScale=Percent)
-startup
plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.551.v20171108-1834
-product
org.eclipse.epp.package.jee.product
-showsplash
org.eclipse.epp.package.common
--launcher.defaultAction
openFile
@drsasimi
drsasimi / svn2git HOWTO
Created January 14, 2020 08:18
회사에서 svn 저장소를 git로 이관하는 과정을 간단하게 메모
# Windows WSL 환경에서 SVN > GIT 이관
# 1. 명령어 준비
$ sudo apt-get install subversion git ruby git-svn
# 2. authors 파일 준비
$ nano authors
svn_id = git_name <git@email.com>
# 3. 명령 실행