{"id":28455719,"url":"https://github.com/questdb/questdb-packer-ami","last_synced_at":"2025-06-27T02:32:18.717Z","repository":{"id":42387718,"uuid":"308705326","full_name":"questdb/questdb-packer-ami","owner":"questdb","description":"Scripts and resources that can be used to build your own AMI with QuestDB.","archived":true,"fork":false,"pushed_at":"2022-04-07T15:54:02.000Z","size":18,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-06T22:11:17.652Z","etag":null,"topics":["aws","cloud","database","packer","questdb","time-series"],"latest_commit_sha":null,"homepage":"https://questdb.io","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/questdb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null}},"created_at":"2020-10-30T17:53:53.000Z","updated_at":"2024-06-17T14:49:49.000Z","dependencies_parsed_at":"2022-09-09T20:11:59.407Z","dependency_job_id":null,"html_url":"https://github.com/questdb/questdb-packer-ami","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/questdb/questdb-packer-ami","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/questdb%2Fquestdb-packer-ami","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/questdb%2Fquestdb-packer-ami/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/questdb%2Fquestdb-packer-ami/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/questdb%2Fquestdb-packer-ami/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/questdb","download_url":"https://codeload.github.com/questdb/questdb-packer-ami/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/questdb%2Fquestdb-packer-ami/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262177810,"owners_count":23270939,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","cloud","database","packer","questdb","time-series"],"created_at":"2025-06-06T22:10:28.083Z","updated_at":"2025-06-27T02:32:18.697Z","avatar_url":"https://github.com/questdb.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# QuestDB AMI Build Specification\n\nThis repository contains scripts and resources that can be used to build your\nown AMI with QuestDB. The AMI is based on\n[Amazon Linux 2](https://aws.amazon.com/amazon-linux-2/) and generated using\n[Packer](https://packer.io) from [HashiCorp](https://hashicorp.com).\n\n## Prerequisites\n\nIn order to use this template, you will need:\n\n- [Packer](https://www.packer.io/docs/install/index.html)\n- AWS credentials\n\n## Repository structure\n\n```bash\n└── src\n    ├── assets\n    │   ├── bashrc          # Used to set 'JAVA_HOME'\n    │   ├── cloudwatch.json # Configuration which enables logs forwarding to AWS CloudWatch\n    │   ├── logrotate.conf  # Configuration file for logrotate\n    │   ├── rsyslog.conf    # Configuration file for rsyslog\n    │   └── systemd.service # Service file to run QuestDB via systemd\n    ├── config\n    │   └── server.conf     # Configuration file for QuestDB\n    ├── scripts\n    │   └── per-boot.sh     # Script that runs every time the instance is started (CloudWatch)\n    ├── build.bash          # Script that automates the installation of all the components on the AMI\n    └── template.json       # Template file for Packer\n```\n\n## Build the AMI\n\n1. Clone this repository:\n\n```bash\ngit clone https://github.com/questdb/questdb-packer-ami.git\n```\n\n2. Navigate to `src` and run `packer`:\n\n```bash\ncd questdb-packer-ami/src\npacker build template.json\n```\n\nThat's it, you can now create a new EC2 instance using the AMI you just built.\n\n## Usage\n\n### Configuration\n\nThe AMI built using this template is very generic. You might want to change the\ndatabase configuration file:\n\n```\nsrc/config/server.conf\n```\n\nFor all the properties and values that you can set, please check our\n[documentation](https://questdb.io/docs/reference/configuration).\n\n### Logs and AWS CloudWatch\n\nThis AMI uses [logrotate](https://linux.die.net/man/8/logrotate) to\nautomatically trim and archive logs generated by QuestDB. The AWS CloudWatch\n[agent](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Install-CloudWatch-Agent.html)\nis also preinstalled and already configured. If you want the logs to be\navailable on your CloudWatch dashboard, you need to:\n\n1. Make sure you run your EC2 with an instance profile that has the\n   `CloudWatchAgentServerPolicy`\n   [IAM policy](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/create-iam-roles-for-cloudwatch-agent.html)\n2. Create the necessary CloudWatch resources: `/questdb-\u003cinstance-id\u003e` (with\n   leading slash) log group and `questdb-systemd-service.log` log stream\n   (example of instance id: `i-0c1386329d00506a2`)\n\n## Resources\n\nComplete references are available in the\n[Documentation](https://questdb.io/docs/introduction/).\n\nGet started:\n\n- [Docker](https://questdb.io/docs/get-started/docker/)\n- [Binaries](https://questdb.io/docs/get-started/binaries/)\n- [Homebrew](https://questdb.io/docs/get-started/homebrew/)\n\nDevelop:\n\n- [Connect](https://questdb.io/docs/develop/connect/)\n- [Insert data](https://questdb.io/docs/develop/insert-data/)\n- [Query data](https://questdb.io/docs/develop/query-data/)\n- [Authenticate](https://questdb.io/docs/develop/authenticate/)\n\nConcepts:\n\n- [SQL extensions](https://questdb.io/docs/concept/sql-extensions/)\n- [Storage model](https://questdb.io/docs/concept/storage-model/)\n- [Partitions](https://questdb.io/docs/concept/partitions/)\n- [Designated timestamp](https://questdb.io/docs/concept/designated-timestamp/)\n\n## Support / Contact\n\n[Slack channel](https://slack.questdb.io)\n\n## Roadmap\n\n[Our roadmap is here](https://github.com/questdb/questdb/projects/3)\n\n## Contribution\n\nFeel free to contribute to the project by forking the repository and submitting\npull requests. Please make sure you have read our\n[contributing guide](https://github.com/questdb/questdb-packer-ami/blob/master/CONTRIBUTING.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquestdb%2Fquestdb-packer-ami","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fquestdb%2Fquestdb-packer-ami","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquestdb%2Fquestdb-packer-ami/lists"}