Skip to content

Commit 6864b2c

Browse files
committed
Fix terraform script
- Fixed an issue where terraform was not able to run docker
1 parent 1ab2aba commit 6864b2c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

terraform.tf

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,9 @@ resource "null_resource" "setup" {
108108
inline = [
109109
"sudo chmod +x /home/ubuntu/setup_server.sh",
110110
"/home/ubuntu/setup_server.sh",
111-
"git clone https://oauth2:[email protected]/PSNAppz/Fold-ELK.git && cd Fold-ELK",
112-
"docker compose up -d --build"
111+
"git clone https://oauth2:${var.git_access_token}@github.com/PSNAppz/Fold-ELK.git && cd Fold-ELK",
112+
"mv /home/ubuntu/.env .env",
113+
"sudo /home/ubuntu/.docker/cli-plugins/docker-compose up -d --build"
113114
]
114115
}
115116

0 commit comments

Comments
 (0)