본문 바로가기
반응형

DevOps22

[Terraform] aws eip 에러: Can't configure a value for "domain" terraform으로 eip생성하려고 공식문서에서 다음과 같이 입력하고 생성하였습니다. resource "aws_eip" "lb" { instance = aws_instance.web.id domain = "vpc" } 자동으로 이 값이 입력된다는 내용이네요 뭔가 싶어서 찾아보았습니다. (삭제하면 동작합니다.) vpc로 할당한다는 내용 이때까지만 해도 뭔 새로운 기능이 생겼나 싶었네요. https://awscli.amazonaws.com/v2/documentation/api/2.1.29/reference/ec2/allocate-address.html aws cli aws eip에 다음과 같이 할당하는 내용이 있어서 보았는데 EC2-classic 이라는 옵션이 따로 있더군요. 생각해보니 예전에 ec2가 업.. 2024. 1. 30.
Ansible study 2주차 목차 반복문 task 내부에 item이라는 변수를 입력하고 loop라는 키워드 내부에 반복할 구문을 넣는 방식 item과 loop가 반드시 짝지어져야한다. loop 내에 vars라는 변수를 사용해도 된다. --- - hosts: all tasks: - name: Check sshd state and rsylog state ansible.builtin.service: name: "{{ item }}" state: started loop: - sshd - rsyslog 사전 목록에 의한 반복문 여러개의 아이템 사용할때 사용하는 반복문 --- - hosts: all tasks: - name: Create files ansible.builtin.file: path: "{{ item['log-path'] }}" .. 2024. 1. 15.
Ansible study 1주차 목차 앤서블 특징 no 에이전트 멱등성 - 여러번 연산을 해도 같은 결과 쉬운 사용법과 다양한 모듈 제공 Ansible Architecture 제어노드 앤서블이 설치되는 노드 파이썬이 같이 설치되어 있어야한다. 관리노드 앤서블이 제어하는 시스템 또는 호스트 윈도우, 리눅스, 퍼블릭클라우드, 프라이빗 클라우드 앤서블은 별도의 에이전트를 설치하지 않음 ⇒ 관리 노드는 제어 노드와 ssh 통신이 가능해야하며 파이썬이 설치 되어 있어야함 인벤토리 제어노드가 관리하는 관리 노드의 목록을 나열해 놓은 파일 앤서블은 인벤토리에 미리 정의 되어 있는 관리노드에만 접근할 수 있다. 인벤토리 목록을 다음과 같이 성격에 따라 구분할 수 있다. 모듈 앤서블은 관리 노드의 작업을 수행할 때 SSH 를 통해 연결한 후 ‘앤서블 .. 2024. 1. 9.
to use the 'ssh' connection type with passwords or pkcs11_provider, you must install the sshpass program 에러 명령어 ansible testserver -i hosts -m ping하니 우분투의 경우 apt install -y sshpass redhat 계열은 yum, maxos는 안해봤는데 brew로 하면 될듯 2023. 9. 25.
Ansible 설치 목차 ansible의 경우 windows에서는 설치가 안되므로 WSL을 사용하여 설치하면된다. 선행 설치 환경 python pip Python 확인 python이 설치가 되어 있어야합니다. python3 -m pip -v 설치가 안되었다면 curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py python3 get-pip.py --user 설치 pip install ansible 설치하고 나면 아래와 같은 경고 문구가 발생한다. WARNING: The script ansible-community is installed in '/home/[USER]/.local/bin' which is not on PATH. Consider adding this director.. 2023. 9. 20.
[Terraform]테라폼에서 terraformer로 import후 plan 시 에러: The state file could not be read: read terraform.tfstate: The process cannot access the file because another process has locked a portion of the file. terraformer로 import한 폴더에서 terraform plan을 하니 다음과 같은 에러가 발생했다. The state file could not be read: read terraform.tfstate: The process cannot access the file because another process has locked a portion of the file. 그래서 terraform state mv 로 tfstate 정보를 다른곳에 옮겨서 plan을 해보았더니 정상적으로 동작하였다. import한것은 plan을 막아 놓은건지 아니면 terraformer에서 사용하는 상태로 적용되어 프로세스가 남아있다고 그런건지 확실하지는 않다. 2023. 8. 3.
terraform Error refreshing state: AccessDenied: Access Denied terraform init 하는데 에러 발생 AccessDenied 되어 있는데 state refresh가 안된다는것이므로 주소나 권한 문제일것이다. 권한의 문제는 없고 주소를 찾아보니 provider의 s3 주소가 제대로 적혀있지 않았다. 수정하니 정상적으로 init 되었다. 2023. 8. 2.
terraform destroy 없는데 리소스 있다고 계속 삭제 에러 aws_main_route_table_association.tfer--vpc-03f3fefcf250ad43c: Destroying... [id=rtbassoc-09f06760c3581eb6d] ╷ │ Error: deleting Main Route Table Association (rtb-0e8f2f41d4cbe59a0): MissingParameter: The request must contain the parameter routeTableId │ status code: 400, request id: a54be86b-40ad-45dc-85ed-4c7fdfb0ae56 │ │ ╵ main rtb association 을 살리고 죽여도 계속 삭제가 안됨 어차피 삭제 안할거라 파일 및 설정 없애고 tfstat.. 2023. 7. 31.
프로파일링 프로그램 Java의 VisualVM, Eclipse MAT(Memory Analyzer Tool), C/C++의 Valgrind, Python의 cProfile, Node.js의 Node.js Profiler 2023. 7. 6.
[Vagrant] windows에서 설치시 SSH auth method: private key 멈춤 목차 에러 vagrant up 이후 이상하게 여기서 넘어가질 않음 여기서 ctrl + c로 넘어간뒤에 virtual box에서 확인해보면 vm은 제대로 올라와 있는것을 확인 할수 있습니다. 환경 windows 11 home virtualbox 7.0 vagrant 2.3.4 시도한 방법 cmos 에서 가상환경은 enable 윈도우 기능에서 가상 기능 체크해제 dism.exe /online /Enable-Feature /FeatureName:VirtualMachinePlatform /all /NoRestart 실행 virtualbox cable connection vagrantfile에 추가 및 cpu memory 증설 timeout 증가인 config.vm.boot_timeout = 600 입력 해봤는데.. 2023. 3. 12.
[Vagrant 에러]VBOX_E_OBJECT_NOT_FOUND 목차 Environments windows 11(vt 옵션 다 enable) vagrant 2.3.4 virtualbox 7.0 Error Stderr: 0%...VBOX_E_OBJECT_NOT_FOUND VBoxManage.exe: error: Appliance read failed VBoxManage.exe: error: Failed to open OVF file '\\?\C:\Users\...\.vagrant.d\boxes\rockylinux-VAGRANTSLASH-8\7.0.0\virtualbox\box.ovf' (VERR_FILE_NOT_FOUND) VBoxManage.exe: error: Details: code VBOX_E_OBJECT_NOT_FOUND (0x80bb0001), compone.. 2023. 3. 9.
newrelic nodjs 활성화 https://docs.newrelic.com/docs/apm/agents/nodejs-agent/installation-configuration/install-nodejs-agent/ Install the Node.js agent | New Relic Documentation To complete a basic Node.js agent installation, you can use our guided installation for an automated install, (choose EU if you're in the EU) or follow the instructions in this document. Either way, you need a New Relic account if you don't a.. 2023. 1. 18.
반응형