-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCONFIG.rtf
35 lines (30 loc) · 2.44 KB
/
CONFIG.rtf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{\rtf1\ansi\ansicpg1252\deff0\nouicompat\deflang1033{\fonttbl{\f0\fnil\fcharset0 Calibri;}{\f1\fnil\fcharset2 Symbol;}}
{\colortbl ;\red0\green0\blue255;}
{\*\generator Riched20 10.0.19041}\viewkind4\uc1
\pard\sa200\sl276\slmult1\f0\fs22\lang9 NEW EC2 INSTANCE\par
\pard{\pntext\f1\'B7\tab}{\*\pn\pnlvlblt\pnf1\pnindent0{\pntxtb\'B7}}\fi-360\li720\sa200\sl276\slmult1\i ssh-keygen\par
{\pntext\f1\'B7\tab}cat ~/.ssh/id_rsa.pub\par
{\pntext\f1\'B7\tab}\i0 copy public key\par
{\pntext\f1\'B7\tab}github.com -> settings -> ssh & GPG keys -> new SSH key -> paste cat...\par
{\pntext\f1\'B7\tab}\i sudo snap install docker\i0\par
{\pntext\f1\'B7\tab}\i sudo docker login\i0\par
{\pntext\f1\'B7\tab}{{\field{\*\fldinst{HYPERLINK https://linuxhandbook.com/docker-permission-denied/ }}{\fldrslt{https://linuxhandbook.com/docker-permission-denied/\ul0\cf0}}}}\f0\fs22\par
{\pntext\f1\'B7\tab} \b\i sudo chown root:docker /var/run/docker.sock\b0\i0\par
{\pntext\f1\'B7\tab}\i sudo apt install unzip\i0\par
{\pntext\f1\'B7\tab}{{\field{\*\fldinst{HYPERLINK https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html }}{\fldrslt{https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html\ul0\cf0}}}}\f0\fs22 -> curl ...\par
{\pntext\f1\'B7\tab}\i aws configure\i0\par
{\pntext\f1\'B7\tab}IAM -> Users - {{\field{\*\fldinst{HYPERLINK https://us-east-1.console.aws.amazon.com/iam/home?region=us-east-1# }}{\fldrslt{https://us-east-1.console.aws.amazon.com/iam/home?region=us-east-1#\ul0\cf0}}}}\f0\fs22\par
{\pntext\f1\'B7\tab}\par
\pard\sa200\sl276\slmult1\par
NA PASTA COM \b .pem\b0 (C:\\users\\richa\\documents\\aws)\par
\pard{\pntext\f1\'B7\tab}{\*\pn\pnlvlblt\pnf1\pnindent0{\pntxtb\'B7}}\fi-360\li720\sa200\sl276\slmult1\i ssh -i docker-teste.pem ubuntu@<PUBLIC IP>\par
{\pntext\f1\'B7\tab}git clone \b\i0 (SSH)\b0 OR \i cd path/to/folder \i0 -> \i git pull\i0\par
{\pntext\f1\'B7\tab}\i docker build -t \ul\b dre\ulnone\b0 .\par
{\pntext\f1\'B7\tab}docker tag \ul\b dre:latest 645569613704\ulnone\b0 .dkr.ecr.us-east-1.amazonaws.com/\ul\b dre\ulnone\b0 :latest\i0\par
{\pntext\f1\'B7\tab}\i docker push 645569613704.dkr.ecr.us-east-1.amazonaws.com/dre:latest\i0\par
\pard\sa200\sl276\slmult1 LAMBDA:\par
\pard{\pntext\f1\'B7\tab}{\*\pn\pnlvlblt\pnf1\pnindent0{\pntxtb\'B7}}\fi-360\li720\sa200\sl276\slmult1 ENVIRONMENT VARIABLES\par
{\pntext\f1\'B7\tab}FUNCTION URL\par
{\pntext\f1\'B7\tab}CORS & AUTH TYPE\par
}