Skip to content

Commit

Permalink
merge main
Browse files Browse the repository at this point in the history
  • Loading branch information
Oscar Lopez committed Mar 8, 2024
2 parents f9ff464 + 7f085c8 commit 869cb1a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions config.tf
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
terraform {
required_version = "1.7.4"
backend "remote" {
/* backend "remote" {
# The name of your Terraform Cloud organization.
organization = "Kroz"
# The name of the Terraform Cloud workspace to store Terraform state files in.
workspaces {
name = "minecraft-server-terraform"
}
}
} */
}

provider "aws" {
Expand Down
2 changes: 1 addition & 1 deletion monitoring/logging.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash

ssh -i '/Users/Oscar_Lopez/Downloads/test.pem' ubuntu@44.212.43.186 tail -f /minecraft_server/logs/latest.log
ssh -i '/Users/Oscar_Lopez/Downloads/test.pem' ubuntu@3.87.206.83 tail -f /minecraft_server/logs/latest.log
4 changes: 2 additions & 2 deletions monitoring/top.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash

pid=$(ssh -i '/Users/Oscar_Lopez/Downloads/test.pem' ubuntu@44.212.43.186 pidof java)
ssh -i '/Users/Oscar_Lopez/Downloads/test.pem' ubuntu@44.212.43.186 ps -p ${pid} -o %cpu,%mem,cmd
pid=$(ssh -i '/Users/Oscar_Lopez/Downloads/test.pem' ubuntu@3.87.206.83 pidof java)
ssh -i '/Users/Oscar_Lopez/Downloads/test.pem' ubuntu@3.87.206.83 ps -p ${pid} -o %cpu,%mem,cmd

0 comments on commit 869cb1a

Please sign in to comment.