{"id":31696574,"url":"https://github.com/kanutocd/gjallarhorn","last_synced_at":"2026-03-01T02:02:26.294Z","repository":{"id":307071399,"uuid":"1027825584","full_name":"kanutocd/gjallarhorn","owner":"kanutocd","description":"Multi-cloud deployment guardian as legendary as Heimdall's horn","archived":false,"fork":false,"pushed_at":"2025-07-30T03:29:20.000Z","size":189,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-03T11:35:40.165Z","etag":null,"topics":["aws","azure","devops","docker","gcp","kamal","kubernetes","rails","rubygem"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kanutocd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-28T15:34:35.000Z","updated_at":"2025-08-11T04:43:26.000Z","dependencies_parsed_at":"2025-07-29T10:03:05.487Z","dependency_job_id":"250d093b-1b88-4bde-b841-b66e258cb26c","html_url":"https://github.com/kanutocd/gjallarhorn","commit_stats":null,"previous_names":["kanutocd/gjallarhorn"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kanutocd/gjallarhorn","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kanutocd%2Fgjallarhorn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kanutocd%2Fgjallarhorn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kanutocd%2Fgjallarhorn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kanutocd%2Fgjallarhorn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kanutocd","download_url":"https://codeload.github.com/kanutocd/gjallarhorn/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kanutocd%2Fgjallarhorn/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29958395,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T01:47:18.291Z","status":"online","status_checked_at":"2026-03-01T02:00:07.437Z","response_time":124,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","azure","devops","docker","gcp","kamal","kubernetes","rails","rubygem"],"created_at":"2025-10-08T17:08:57.003Z","updated_at":"2026-03-01T02:02:26.258Z","avatar_url":"https://github.com/kanutocd.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gjallarhorn\n\nMulti-cloud deployment guardian as legendary as Heimdall's horn.\n\nA Ruby gem that sounds across all cloud realms with secure, API-first deployments beyond SSH. Currently supporting AWS with additional providers planned for future releases.\n\n## Features\n\n**Phase 1 (0.1.0) - AWS Foundation:**\n- ✅ AWS SSM-based deployments (no SSH required)\n- ✅ Thor-based CLI with comprehensive commands\n- ✅ YAML configuration system\n- ✅ Comprehensive test coverage\n- ✅ Complete YARD documentation\n\n**Future Phases:**\n- Google Cloud Platform (Compute Engine API)\n- Microsoft Azure (Run Command API)\n- Self-hosted Docker (Docker API)\n- Kubernetes (API)\n- Hybrid/Multi-cloud deployments\n\n## Installation\n\nInstall the gem and add to the application's Gemfile by executing:\n\n```bash\nbundle add gjallarhorn\n```\n\nIf bundler is not being used to manage dependencies, install the gem by executing:\n\n```bash\ngem install gjallarhorn\n```\n\n## Usage\n\n### Configuration\n\nCreate a `deploy.yml` file in your project root:\n\n```yaml\nproduction:\n  provider: aws\n  region: us-west-2\n  services:\n    - name: web\n      ports: [\"80:8080\"]\n      env:\n        RAILS_ENV: production\n        DATABASE_URL: postgresql://user:pass@host/db\n\nstaging:\n  provider: aws\n  region: us-west-2\n  services:\n    - name: web\n      ports: [\"80:8080\"]\n      env:\n        RAILS_ENV: staging\n```\n\n### CLI Commands\n\nDeploy to an environment:\n```bash\ngjallarhorn deploy production myapp:v1.2.3\n```\n\nCheck deployment status:\n```bash\ngjallarhorn status production\n```\n\nRollback to previous version:\n```bash\ngjallarhorn rollback production v1.2.2\n```\n\nView configuration:\n```bash\ngjallarhorn config\n```\n\nShow version:\n```bash\ngjallarhorn version\n```\n\n### AWS Prerequisites\n\nEnsure your EC2 instances have:\n- SSM Agent installed and running\n- Appropriate IAM roles for SSM access\n- Tags: `Environment` (e.g., \"production\") and `Role` (e.g., \"web\", \"app\")\n- Docker installed and running\n\n#### Required IAM Permissions\n\nYour EC2 instances need an IAM role with the following permissions:\n\n**For SSM access:**\n```json\n{\n    \"Version\": \"2012-10-17\",\n    \"Statement\": [\n        {\n            \"Effect\": \"Allow\",\n            \"Action\": [\n                \"ssm:UpdateInstanceInformation\",\n                \"ssmmessages:CreateControlChannel\",\n                \"ssmmessages:CreateDataChannel\",\n                \"ssmmessages:OpenControlChannel\",\n                \"ssmmessages:OpenDataChannel\"\n            ],\n            \"Resource\": \"*\"\n        }\n    ]\n}\n```\n\n**For ECR access (when deploying from ECR):**\n```json\n{\n    \"Version\": \"2012-10-17\",\n    \"Statement\": [\n        {\n            \"Effect\": \"Allow\",\n            \"Action\": [\n                \"ecr:GetAuthorizationToken\",\n                \"ecr:BatchCheckLayerAvailability\",\n                \"ecr:GetDownloadUrlForLayer\",\n                \"ecr:BatchGetImage\"\n            ],\n            \"Resource\": \"*\"\n        }\n    ]\n}\n```\n\nYou can use the AWS managed policy `AmazonSSMManagedInstanceCore` for SSM access, and create a custom policy for ECR access.\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/kanutocd/gjallarhorn. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/kanutocd/gjallarhorn/blob/main/CODE_OF_CONDUCT.md).\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n## Code of Conduct\n\nEveryone interacting in the Gjallarhorn project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/kanutocd/gjallarhorn/blob/main/CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkanutocd%2Fgjallarhorn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkanutocd%2Fgjallarhorn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkanutocd%2Fgjallarhorn/lists"}