본문 바로가기

반응형

전체 글

[ping] Pingcloud-cli 툴 Pingcloud-cli 툴 $ git clone https://github.com/reoim/pingcloud-cli.git $ cd pingcloud-cli $ pingcloud-cli aws $ pingcloud-cli aws us-east-1 https://github.com/reoim/pingcloud-cli.git reoim/pingcloud-cli CLI application to check http request latency of AWS, Google Cloud Platform and Azure - reoim/pingcloud-cli github.com 웹 브라우저에서 통한 latency 체크 https://www.cloudping.co/grid https://github.com/mda5.. 더보기
[batch] windows 10에서 myip를 slack으로 보내기 windows 10에서 myip를 slack으로 보내기 wmyip.bat 파일 생성 @echo off setlocal enabledelayedexpansion chcp 437 FOR /F "usebackq" %%i IN (`hostname`) DO SET COMNAME=%%i @REM virtualbox IP 필터 @REM FOR /F "tokens=4 delims= " %%i in ('route print ^| find " 0.0.0.0"') do set LOCALIP=%%i @REM bridge network 사용 for /f "delims=[] tokens=2" %%i in ('ping -4 -n 1 %ComputerName% ^| findstr [') do set LOCALIP=%%i for /f.. 더보기
[Terraform] 테라폼 모듈화 테스트 테라폼 모듈화 테스트 디렉토리 구조 . ├── main.tf ├── modules │ ├── EC2 │ │ ├── main.tf │ │ └── script │ │ └── install_web1.sh │ ├── RDS │ └── VPC ├── provider.tf └── variables.tf 루트 모듈 provider.tf $ vim provider.tf ### ./provider.tf terraform { required_providers { aws = { source = "hashicorp/aws" version = "3.25.0" } } } provider "aws" { # Configuration options shared_credentials_file = "~/.aws/credentials" r.. 더보기
VMware ESXi 7.x에서 호스트 서버 시간을 설정하는 방법 VMware ESXi 7.x에서 호스트 서버 시간을 설정하는 방법 vSphere 클라이언트 또는 VMware ESXi 웹 인터페이스에 로그인합니다. 호스트 서버를 선택하고 "구성(Configuration)" 탭으로 이동합니다. "시간 구성(Time Configuration)" 섹션으로 이동합니다. "시간 설정(Time Settings)" 옵션을 선택합니다. "시간 서버(Time Server)" 옵션에서 "NTP 서버(NTP Server)"를 선택합니다. 사용할 NTP 서버 주소를 입력합니다. 예를 들어, "pool.ntp.org"와 같은 공개 NTP 서버를 사용할 수 있습니다. "옵션(Options)"에서 "NTP 서버에 연결할 때 시스템 클럭 동기화(Synchronize guest time with h.. 더보기
VMware ESXi 7.x에서 SNMP를 활성화하는 방법 VMware ESXi 7.x에서 SNMP를 활성화하는 방법 SSH가 ESXi 호스트에서 활성화되어 있어야 합니다. ESXi 관리자에서 SSH를 활성화하지 않은 경우, VMware vSphere Client 또는 웹 브라우저를 통해 ESXi 호스트에 직접 로그인하여 SSH를 활성화할 수 있습니다. SNMP 현재 설정 확인 esxcli system snmp get [root@esxi-111:~] esxcli system snmp get Authentication: Communities: Enable: false Engineid: Hwsrc: indications Largestorage: true Loglevel: warning Notraps: Port: 161 Privacy: Remoteusers: Sysc.. 더보기
[Terraform] 테라폼 키 페어 생성 키 페어 생성 key.tf 파일 생성 $ vim key.tf ###keypair 생성 resource "aws_key_pair" "tf_key_4wxyz" { key_name = "4wxyz" public_key = file("~/aws-key-pair/4wxyz.pub") tags = { Name = "4wxyz" Env = "stg" CreateUser = "[email protected]" Owner = "iac" Role = "keypair" Service = "keypair" } } 더보기
[Terraform] 테라폼 보안 그룹에 정책 추가 보안 그룹에 정책 추가 - EC2 보안 그룹에 ALB 정책 추가 ec2-sg.tf $ vim ec2-sg.tf ####################EC2 웹 시큐리티 구룹 생성 resource "aws_security_group" "tf_vpc99_sg-ec2-web1" { name = "ec2-web1" description = "Managed In Terraform" vpc_id = aws_vpc.tf_vpc99.id tags = { Name = "ec2-web1" Env = "stg" CreateUser = "[email protected]" Owner = "iac" Role = "security_group" Service = "security" } ingress { description = ".. 더보기
[Terraform] 테라폼 ALB(로드밸런서) 생성 ALB(로드밸런서) 생성 (선행 작업) - Route 53 생성 - SSL 인증서 생성 - security group 생성 - 인스턴스 생성 - ./script/install_web1.sh 스크립트 생성 alb.tf 파일 생성 $ vim alb.tf ####################ALB 생성 resource "aws_alb" "tf_alb-web1" { name = "web1" internal = false load_balancer_type = "application" idle_timeout = 60 security_groups = [ aws_security_group.tf_vpc99_sg_alb-web1.id ] subnets = [ aws_subnet.tf_vpc99-sb11.id, aws_su.. 더보기

728x90
반응형