본문 바로가기

전체 글96

[Windows] 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는 배치 파일이 아닙니다. 해당 tool이 설치되었음에도, 명령어를 인식하지 못하는 경우 환경 변수 -> 시스템 변수 -> Path에 해당 tool이 등록되어 있지 않아 발생할 수 있음 (Path에 해당 tool의 위치를 등록해줘야 명령어를 칠 경우, Path를 참조해서 명령어를 가져올 수 있음) 출처 https://m.blog.naver.com/zxwnstn/221521038431 2022. 3. 18.
Shell Script 문법 Script - computer에 내리는 명령어들의 모음 - .sh 형식 - program은 hard disk에 저장되어 있다가, RAM 위에 복사되어 process로 실행됨 - file이 실행되지 않는 경우 chmod 755로 권한을 수정해야 하는 경우가 있음 #!/bin/bash - 어떤 shell을 실행할 지 선언 - 최상단에 선언되어야 이 file이 shell script인 것을 알 수 있음 변수 (Variables) - variable=value : variable이라는 변수에 value라는 값을 할당 - variable=$(command) : command 명령어의 결과를 variable 변수에 할당 - $variable : variable 변수를 가져옴 $0 - The name of the .. 2022. 3. 18.
[Terraform] Module 기본 구조 Root Module - only required element - root directory에 위치해야만 함 - nested module과 연계하여 최종 결과를 만들어냄 README (README.md) - 각 module에 대한 설명 LISENCE main.tf, variables.tf, outputs.tf - main.tf: 각 module이 실행되는 entrypoint(main file), 모든 resource가 생성됨. - variables.tf: main에 쓰일 변수에 대한 선언 - outputs.tf: main의 실행 결과, 출력하고 싶은 정보를 선언 Nested modules - 재사용성을 위해 기능별로 module을 나누어 놓음 - root module에서 nested module을 사용.. 2022. 3. 16.