{"id":18603624,"url":"https://github.com/cogini/hello_nerves_ec2","last_synced_at":"2025-05-16T18:32:38.434Z","repository":{"id":147373589,"uuid":"141794781","full_name":"cogini/hello_nerves_ec2","owner":"cogini","description":"Example Elixir Nerves app running on Amazon EC2","archived":false,"fork":false,"pushed_at":"2018-08-11T23:47:41.000Z","size":38,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-12-26T23:26:24.264Z","etag":null,"topics":["aws-ec2","elixir","nerves"],"latest_commit_sha":null,"homepage":"","language":"Elixir","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/cogini.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"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}},"created_at":"2018-07-21T08:27:56.000Z","updated_at":"2023-10-25T16:24:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"c09d0764-8a91-4b30-9991-55ab115c0555","html_url":"https://github.com/cogini/hello_nerves_ec2","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cogini%2Fhello_nerves_ec2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cogini%2Fhello_nerves_ec2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cogini%2Fhello_nerves_ec2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cogini%2Fhello_nerves_ec2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cogini","download_url":"https://codeload.github.com/cogini/hello_nerves_ec2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239394671,"owners_count":19631117,"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-ec2","elixir","nerves"],"created_at":"2024-11-07T02:14:55.467Z","updated_at":"2025-02-18T01:45:23.759Z","avatar_url":"https://github.com/cogini.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hello_nerves_ec2\n\nThis is a minimal [Nerves](https://nerves-project.org/) app which runs\non Amazon EC2. It boots up and runs an IEx shell accessible via SSH.\n\nIt uses [nerves_system_ec2](https://github.com/cogini/nerves_system_ec2)\nfor the base system and [nerves_init_ec2](https://github.com/cogini/nerves_init_ec2)\nto to configure the system.\n\nSee the blog post [Running Nerves on Amazon EC2](https://www.cogini.com/blog/running-nerves-on-amazon-ec2/)\nfor more details.\n\n# Work in Progress\n\n## Run with an IAM instance profile\n\nWorking but not well documented...\n\nhttps://console.aws.amazon.com/iam/home\n\nIn order to access AWS resources, the program needs to have the necessary\npermissions. Rather than hard-coding credentials, EC2 lets us associate an IAM\nrole with an instance at startup. It then makes the IAM keys available to\nthe instance via an HTTP API.\n\nAn instance profile is a \"wrapper\" for an IAM role. Roles can contain multiple\npolicies which give access to resources.\n\nCreate a policy which allows the instance to write logs to CloudWatch Logs.\n\nIn the AWS console, under AWS Service | EC2\n\"Create Policy\", \"JSON\" tab.\n\n```json\n{\n  \"Version\": \"2012-10-17\",\n  \"Statement\": [\n    {\n      \"Effect\": \"Allow\",\n      \"Action\": [\n        \"logs:CreateLogGroup\",\n        \"logs:CreateLogStream\",\n        \"logs:PutLogEvents\",\n        \"logs:DescribeLogStreams\"\n      ],\n      \"Resource\": [\n        \"*\"\n      ]\n    }\n  ]\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcogini%2Fhello_nerves_ec2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcogini%2Fhello_nerves_ec2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcogini%2Fhello_nerves_ec2/lists"}