본문 바로가기

전체 글

timedatectl 명령어 timedatectl 명령어 timedatectl 명령어는 시스템의 시간 및 날짜 설정을 관리하는데 사용되는 Linux 시스템 명령어입니다. 이 명령어를 사용하면 시스템 시간, 날짜, 시간대 등을 설정하고 확인할 수 있습니다. 일반적으로 timedatectl 명령어를 사용할 때 아래와 같은 옵션을 사용할 수 있습니다. status: 현재 시간 및 날짜 설정 상태를 보여줍니다. set-time YYYY-MM-DD: 시스템 날짜를 지정한 날짜로 설정합니다. set-time HH:MM:SS: 시스템 시간을 지정한 시간으로 설정합니다. set-timezone TIMEZONE: 시스템 시간대를 설정합니다. 예: Asia/Seoul. list-timezones: 사용 가능한 시간대 목록을 표시합니다. timedat.. 더보기
[mac] macos sed 명령어 에러 macos sed 명령어 에러 sed -i 's/module.vpc/modules.vpc/g' test.tf sed -i 's/module.vpc/modules.vpc/g' test.tf $ sed -i 's/module.vpc/modules.vpc/g' test.tf sed: 1: "test.tf": extra characters at the end of p command 해결 방법 sed -i '' 's/module.vpc/modules.vpc/g' test.tf sed -i '' 's/module.vpc/modules.vpc/g' test.tf 더보기
[VSCode] Visual Studio Code 테마 변경 Visual Studio Code 테마 변경 UI Themes Extension Marketplace 단축키 : cmd + shift + x 더보기
테라폼 vpc peering import(terraform import) 테라폼 vpc peering import(terraform import) vpc peering connection import [버지니아 리전] vpc resources 파일 생성 vim peering.tf #####VPC 페어링 resource "aws_vpc_peering_connection" "vatosg" {} terraform import aws_vpc_peering_connection.vatosg pcx-03c5b $ terraform import aws_vpc_peering_connection.vatosg pcx-03c5b aws_vpc_peering_connection.vatosg: Importing from ID "pcx-03c5b"... aws_vpc_peering_connection... 더보기
[Terraform] 테라폼 output 명령어 테라폼 output 명령어 : terraform 출력 명령은 상태 파일에서 출력 변수의 값을 추출하는데 사용됩니다 VPC 모듈 - output $ vim vpc.tf output "out_prefix" { value = var.prefix } output "out_suffix" { value = var.suffix } output "out_env" { value = var.env } output "out_region" { value = var.aws_region } output "out_aws_vpc_id" { value = aws_vpc.this.id } output "out_aws_vpc_cidr" { value = aws_vpc.this.cidr_block } main 모듈 - output $ vi.. 더보기
일반적으로 권장되는 웹 서버의 SSL 프로토콜과 암호화 알고리즘(Cipher Suite) 설정 일반적으로 권장되는 웹 서버의 SSL 프로토콜과 암호화 알고리즘(Cipher Suite) 설정 웹 서버의 SSL 프로토콜과 암호화 알고리즘(Cipher Suite) 설정은 보안을 강화하고 보안 취약점을 방지하기 위해 중요합니다. 하지만 권장 값은 시간이 지남에 따라 변경될 수 있으며, 보안 관련 업데이트와 취약점을 감지하고 개선하기 위해 지속적인 모니터링이 필요합니다. 일반적으로 권장되는 SSL 프로토콜 및 Cipher Suite 설정입니다. 최신 보안 지침을 따르기 위해 웹 서버를 설정할 때는 최신 정보를 확인하고 적용하는 것이 좋습니다. 참고 - SSL주요 웹 브라우저(Chrome, IE, Edge 등)에서 2020년부터 TLS 1.0, TLS 1.1 암호화 프로토콜 통신 지원이 중단되어 있습니다. .. 더보기
[url] Mozilla SSL Configuration Generator Mozilla SSL Configuration Generator https://ssl-config.mozilla.org 더보기
[Terraform] 테라폼 ALB 대상 그룹 등록 ALB(Application Load Balancer) 대상 그룹 등록 EC2 모듈 ec2.tf 편집 $ vim ec2.tf ... output "server_id" { value = join(", ", aws_instance.instance.*.id) } ALB 모듈 alb.tf 편집 $ vim abl.tf ... resource "aws_alb_target_group_attachment" "attachment" { count = 2 target_group_arn = aws_alb_target_group.targetgroup.arn target_id = element(split(",", var.server_id), count.index) port = 80 } 메인 모듈 main.tf 편집 $ vim m.. 더보기