Skip to content
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

Additional improvements over #49 #51

Merged
merged 14 commits into from
Jan 27, 2025
Merged

Additional improvements over #49 #51

merged 14 commits into from
Jan 27, 2025

Conversation

cjcolvar
Copy link
Member

@cjcolvar cjcolvar commented Jan 7, 2025

Based upon the great work in #49, I made a few more changes:

  • Make avalon-docker branch/commit configurable (and updatable via terraform)
  • Bump image used by CodeBuild to standard:7.0
  • Small fixes/improvements

With the changes in #49 and this PR, one should be able to edit the avalon version (branch or commit) or avalon-docker version (branch or commit) via config and terraform apply to upgrade! This is a huge step forward from before where the terraform was essentially a bootstrapping process and upgrades had to be done manually in the EC2 instance or CodeBuild.

nepella and others added 14 commits November 12, 2024 11:36
I don't think the application is using this for anything yet, but this
is supposed to be secret.
This already runs as root. See <https://docs.aws.amazon.com/AWSEC2/\
latest/UserGuide/user-data.html#user-data-shell-scripts>.
This was using a nonexistent device for the Solr data. An alias to the
correct device is declared as the 'device_name' attribute on
'aws_ebs_volume.solr_data', so this uses that instead. This also makes
the mountpoint unwriteable if it can't be mounted, so Solr will fail
rather than writing its data to the EC2 instance's root filesystem.
The VM should be rebuilt when its configuration changes or when there's
a newer VM image. Also, since the "user data" script isn't idempotent,
the VM should be rebuilt rather than restarted when the script changes.
Lowering the TTL on the VM's A record, which is only used for
administrative access, will make it available faster without imposing a
burden on DNS.
@cjcolvar cjcolvar merged commit ec5976f into main Jan 27, 2025
@cjcolvar cjcolvar deleted the msu_improvements_plus branch January 27, 2025 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants