Skip to content

Commit 5ac2eb9

Browse files
committed
fix: 인스턴스 스왑 메모리 삭제
1 parent e8cc74d commit 5ac2eb9

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

terraform/dev/scripts/user-data.sh

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
#!/bin/bash
22
echo ECS_CLUSTER=${ecs_cluster_name} >> /etc/ecs/ecs.config
33

4-
fallocate -l 2G /swapfile
5-
chmod 600 /swapfile
6-
mkswap /swapfile
7-
swapon /swapfile
8-
echo '/swapfile none swap sw 0 0' >> /etc/fstab
9-
104
mkdir -p /home/ec2-user/logs/backup
115
mkdir -p /home/ec2-user/mysql
126
mkdir -p /home/ec2-user/scripts

terraform/prod/scripts/user-data.sh

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
#!/bin/bash
22
echo ECS_CLUSTER=${ecs_cluster_name} >> /etc/ecs/ecs.config
33

4-
fallocate -l 2G /swapfile
5-
chmod 600 /swapfile
6-
mkswap /swapfile
7-
swapon /swapfile
8-
echo '/swapfile none swap sw 0 0' >> /etc/fstab
9-
104
mkdir -p /home/ec2-user/logs/backup
115
mkdir -p /home/ec2-user/scripts
126

0 commit comments

Comments
 (0)