전체 글
[OS] Basics of OS : Computer System Operation
Some basic knowledge of the structure of Computer System is required to understand how Operating Systems work. → A modern general-purpose computer system consists of one or more CPUs and a number of device controllers connected through a common bus that provides access to shared memory. Each device controller is in charge of a specific type of device The CPU and the device controllers can execut..
[OS] Introduction to Operating System
An Operating System (OS) is a program that manages the computer hardware. It also provides a basis for Application Programs and acts as an intermediary between computer User and computer Hardware Types of OS Batch OS Time sharing OS Distributed OS Network OS Real Time OS Multi Programming/ Processing/ Tasking OS Functions of OS It is an interface between User & Hardware Allocation of Resources M..
[Terraform] AWS Provider credential Authentication
background Terraform을 사용하면서 AWS Provider에서 제공하는 resource, data, modules를 사용하는 중이다. 매번 provider.tf 를 만들어서 다음코드를 통해 provider를 정의한다. provider "aws" { region = "ap-northeast-2" } 초기에는 access_key 와 secret_key 를 직접할당(Static Credential)한 방법으로 선언해 주었지만, Hard-coded credential은 risk leakage도 있고해서 다른 방법으로 구성했어야 했다. Authentication Methods Authentication 방법은 다양하게 있다. static credentials Environment variables ..
[Automation] AWS CLI 이용하여 "EC2 instance 자동으로 켜고 Public IP 받기 자동화"
Background Shell Script 공부 중 Ubuntu instance를 매일 껏다 켰다가 사용중이다. EIP? terraform을 통해 구축 실습도 하기때문에 Elastic IP의 사용은 최대한 피할 수 있으면 피한다는 생각이다 EC2 instance는 매번 Stopped -> Running으로 올려줄때 Public IP가 변경된다. 이것 때문에 console에 로그인해서 IP를 복사해오는 과정이 귀찮아졌다. Environment AWS CLI 2.1.4 ZSH (OH-MY-ZSH) : ZSH에서는 Bash가 호환된다. Step 1. 초기에는 Instance Id를 직접 AWS CLI command에 넣어서 결과값을 받는 형식으로 구현 2. Instance Id를 tag를 이용해서 가져오는 형..
[Terraform] Terraform resource Graph
Terraform을 사용하다보면 내가 호출했던 resource들간의 의존성에 대한 문제가 발생하거나, 각 의존성이 어떻게 얽혀있는지 시각적으로 보고 싶을 때가 있다. Terraform graph를 실행하면 다음과 같은 Graphviz format의 text를 얻을 수 있는데, 이를 Graphviz Online을 이용하면 다음과 같이 시각적으로 확인할 수 있다.