-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
infra(chore): update bastion host vm setup [MRXNM-52] #1688
infra(chore): update bastion host vm setup [MRXNM-52] #1688
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
58d1d06
to
02775f8
Compare
resource "tls_private_key" "ssh_private_key" { | ||
algorithm = "RSA" | ||
rsa_bits = 4096 | ||
} | ||
|
||
locals { | ||
admin_user = "ubuntu" | ||
|
||
cloud_init_custom_data = <<-EOF |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isn't just easier/simpler to provision a suitably beefed up vm?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep, that's an option - I proposed this because we can keep the lowest ongoing cost for this, since all it actually needs to do is to tunnel connections through, and the setup for the swapfile - just in case, as maybe it "just" makes sense to reapply the config and get the VM recreated with the latest 24.04 image that includes any security fixes added by Canonical, instead of tediously doing an apt upgrade
on what is essentially a disposable VM instance - was easy enough.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, besides some doubts.
I am missing the first point:
link bastion network security group (allows public ssh access on ipv4) to bastion host NIC
How was the ssh connection set up previously? I was expecting to see my public key added somewhere and thats it, is this happening in a separate PR, or is it happening outside the repo manually?
the relevant change is in this commit: 02775f8
yep, the two things are separate - I just happened to notice that "something" broke after applying the same config as before, and it turned out to be this missing NSG link.
as in, except the 24.04 image and the swapfile hack changes included in this PR, and applied adding your public ssh key in the relevant array in the tfvars we use (this is managed in lastpass - I have just given you access, I had missed this before 🤦🏼 |
Testing instructions
Re-creating the bastion host VM via Terraform should do all the above.
Feature relevant tickets
https://vizzuality.atlassian.net/browse/MRXNM-52
Checklist before submitting
develop
.deploying to staging/production, please add brief testing instructions
to the deploy checklist (
docs/deployment-checklist.md
)