Skip to content

Commit

Permalink
Restart sshd in cloud-init
Browse files Browse the repository at this point in the history
  • Loading branch information
hellais committed Sep 24, 2024
1 parent c219068 commit 5ab06e4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tf/environments/prod/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,8 @@ resource "aws_s3_bucket" "oonith_codepipeline_bucket" {
}

data "aws_secretsmanager_secret_version" "deploy_key" {
secret_id = module.adm_iam_roles.oonidevops_deploy_key_arn
secret_id = module.adm_iam_roles.oonidevops_deploy_key_arn
depends_on = [module.adm_iam_roles]
}

# The aws_codestarconnections_connection resource is created in the state
Expand Down
2 changes: 2 additions & 0 deletions tf/modules/ooni_th_droplet/templates/cloud-init-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@ write_files:
}
runcmd:
- sshd -t
- systemctl restart sshd
- ufw default deny incoming
- ufw default allow outgoing
- ufw allow 2222/tcp
Expand Down

0 comments on commit 5ab06e4

Please sign in to comment.