Improvements for infra setup#581
Merged
Merged
Conversation
Rikuoja
approved these changes
Feb 20, 2026
Rikuoja
left a comment
Contributor
There was a problem hiding this comment.
Didn't understand what the coordinate change thing has to do with anything and what it does. Otherwise, looks very good!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This started with the creation of a new test instance. The AMI previously used for the bastion server was no longer available, so it had to be updated. The update causes the bastion to be replaced, which would result in SSH host key verification errors for users.
This PR addresses the issue by using a pre-generated host key.
It also includes some other minor enhancements.
Copilot generated summary:
This pull request introduces improvements to the bastion host provisioning process, enhances Lambda logging, updates documentation for clarity and consistency, and makes a few other infrastructure tweaks. The most significant changes are the switch to using
cloud-initand SSM for bastion host key management, improved security and maintainability for the bastion instance, and standardized handling of variable files across the codebase.Bastion Host Provisioning and Security:
cloud-initvia thecloudinitTerraform provider, replacing the previous user data template. This enables modular, maintainable configuration and secure host key management. (infra/bastion.tf,infra/bastion_config/cloud-config.yaml.tftpl,infra/bastion_config/host_key_setup.sh,infra/.terraform.lock.hcl, [1] [2] [3] [4]infra/bastion_config/host_key_setup.sh, infra/bastion_config/host_key_setup.shR1-R37)infra/iam.tf, infra/iam.tfR195-R243)Lambda Function Improvements:
infra/lambda.tf, [1] [2] [3] [4]Documentation and Variable File Handling:
var-files/directory, and clarified deployment and teardown instructions. (infra/README.md, [1] [2] [3] [4]var-files/directory for encrypted and decrypted tfvars files, ensuring consistency and reducing risk of misconfiguration. (infra/Makefile, infra/MakefileL73-R77)Other Infrastructure Tweaks:
infra/api.tf, infra/api.tfL79-R79)infra/bastion_user_data.tplfile, as its functionality is now covered by cloud-init. (infra/bastion_user_data.tpl, infra/bastion_user_data.tplL1-L32)