- EC2 Python 설치wngnl05sudo yum install python3-pip -y pip3 install --ignore-installed -r install.txt python3 main.py
- 2024-12-24 13:30:26
- Jenkins 설치하기wngnl05인스턴스를 최신버전으로 업데이트sudo yum update –y Jenkins 설치 & 설정sudo wget -O /etc/yum.repos.d/jenkins.repo \ https://pkg.jenkins.io/redhat-stable/jenkins.reposudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.keysudo yum upgrade -ysudo amazon-linux-extras install java-openjdk11 -ysudo yum install jenkins -ysudo systemctl start jenkins Jenkins 암호 확인sudo cat /var/lib/jenkins/secrets/initialAd..
- 2024-12-24 13:29:55
- Lambda 특정 태그를 가진 Instance 종료하기wngnl05import boto3region = "" # 리전 이름key = "" # 태그 KEYvalue = "" # 태그 VALUEinstances = []ec2_r = boto3.resource('ec2', region_name=region)ec2 = boto3.client('ec2', region_name=region)for instance in ec2_r.instances.all(): # 특정 태그가 있는 인스턴스 id 가져오기 for tag in instance.tags: if tag['Key'] == f'{key}': # Key if tag['Value'] == f'{value}': # Value instances.append(instan..
- 2024-12-24 13:28:34
- AWS Nuke를 사용해서 AWS 리소스 모두 삭제하기wngnl05Aws Nuke는 코드를 이용해서 Aws리소스를 삭제하도록 도와주는 프로그램입니다. Github 링크우선 Aws Nuke를 사용하기 위해 위의 링크로 접속하여최신버전의 Nuke.exe를 다운로드 해줍니다. aws configure다운로드 완료 후 AWS 자격증명을 해줍니다. aws iam list-account-aliases사용자 별칭의 유뮤를 확인해줍니다.사용자 별칭은 IAM 상단 오른쪽 "AWS 계정"에서도 확인할 수 있습니다. { "AccountAliases": [ ]} aws iam create-account-alias --account-alias 만약 별칭이 없다면위의 명령어를 이용하여 별칭을 생성할 수 있습니다. config.ymlregions: - ap-northeast-2 # 삭제..
- 2024-12-24 13:28:15
- EC2 Docker 설치하기wngnl05: ec2-user, ubuntusudo yum install docker -ysudo usermod -aG docker sudo systemctl enable --now dockersudo chmod 666 /var/run/docker.sock기본 문법더보기FROM :// FROM ubuntu:latest RUN // RUN apt install curl -y COPY .// COPY app.py . EXPOSE // EXPOSE 8080 WORKDIR // 폴더를 도커파일 내에서 생성하고 작업을 폴더안에서 하도록 설정해줍니다. CMD ["실행할 명령어"]// CMD ["python", "./app.py"]// CMD ["./app"]추가 문법더보기# 파일 권한 부여RUN chmod 777 ./ ..
- 2024-12-24 13:27:01
- EC2 사용자 데이터wngnl05Port번호 & PassWord#!/bin/bashecho 'Port (포트 번호)' >> /etc/ssh/sshd_configsystemctl restart sshdsed -i "s/PasswordAuthentication no/PasswordAuthentication yes/g" /etc/ssh/sshd_configecho ":" | chpasswdsystemctl restart sshdAWS 자격증명mkdir /home/ec2-user/.awstouch /home/ec2-user/.aws/credentialstouch /home/ec2-user/.aws/configchmod 777 /home/ec2-user/.aws/chmod 777 /home/ec2-user/.aws/credentialschmod..
- 2024-12-24 13:26:31
스킨 업데이트 안내
현재 이용하고 계신 스킨의 버전보다 더 높은 최신 버전이 감지 되었습니다. 최신버전 스킨 파일을 다운로드 받을 수 있는 페이지로 이동하시겠습니까?
("아니오" 를 선택할 시 30일 동안 최신 버전이 감지되어도 모달 창이 표시되지 않습니다.)