diff --git a/terraform/README.md b/terraform/README.md index 869eeaa..64b9c09 100644 --- a/terraform/README.md +++ b/terraform/README.md @@ -7,4 +7,16 @@ terraform init terraform apply -var="do_token=YOUR_DIGITALOCEAN_TOKEN" ssh root@ -``` \ No newline at end of file +``` + +* Create the instance with Terraform +* Collect the droplet IP address +* Check for access `ssh root@` + +## GitHub Secrets + +Ensure you have the following secrets set in your GitHub repository: + +* `DROPLET_IP`: The IP address of your DigitalOcean Droplet. +* `DROPLET_SSH_PRIVATE_KEY`: The private SSH key to access your DigitalOcean Droplet. +* `GH_PAT`: Your GitHub Personal Access Token. diff --git a/terraform/main.tf b/terraform/main.tf index 7c61363..b853b1c 100644 --- a/terraform/main.tf +++ b/terraform/main.tf @@ -6,7 +6,8 @@ resource "digitalocean_droplet" "web" { ssh_keys = [var.ssh_key_id] user_data = <<-EOF #!/bin/bash + # Install Docker curl -fsSL https://get.docker.com -o get-docker.sh sh get-docker.sh EOF -} +} \ No newline at end of file