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

Various updates and improvements #49

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

nepella
Copy link
Contributor

@nepella nepella commented Nov 22, 2024

No description provided.

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.
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.

1 participant