{"id":16684543,"url":"https://github.com/saoudrizwan/ec2-get-tag","last_synced_at":"2026-04-22T12:34:50.604Z","repository":{"id":82148762,"uuid":"211171218","full_name":"saoudrizwan/ec2-get-tag","owner":"saoudrizwan","description":null,"archived":false,"fork":false,"pushed_at":"2019-09-26T20:44:47.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-20T09:26:23.826Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/saoudrizwan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2019-09-26T19:58:14.000Z","updated_at":"2019-09-26T20:44:48.000Z","dependencies_parsed_at":"2023-03-01T02:30:43.852Z","dependency_job_id":null,"html_url":"https://github.com/saoudrizwan/ec2-get-tag","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saoudrizwan%2Fec2-get-tag","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saoudrizwan%2Fec2-get-tag/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saoudrizwan%2Fec2-get-tag/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saoudrizwan%2Fec2-get-tag/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/saoudrizwan","download_url":"https://codeload.github.com/saoudrizwan/ec2-get-tag/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243412977,"owners_count":20286857,"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":[],"created_at":"2024-10-12T14:44:13.640Z","updated_at":"2025-12-27T16:06:00.520Z","avatar_url":"https://github.com/saoudrizwan.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ec2-get-tag\n\n`ec2-get-tag` is a one-liner that retrieves the value of a tag you set on your EC2 instance.\n\n### 1. First add the following IAM policy to your EC2 instance:\n\n```json\n{\n\t\"Version\": \"2012-10-17\",\n\t\"Statement\": [\n\t\t{\n\t\t\t\"Effect\": \"Allow\",\n\t\t\t\"Action\": \"ec2:DescribeTags\",\n\t\t\t\"Resource\": \"*\"\n\t\t}\n\t]\n}\n```\n\n### 2. Now you can execute the following\n\n```bash\ncurl -s https://raw.githubusercontent.com/saoudrizwan/ec2-get-tag/1.0/ec2-get-tag.sh | bash -s TAGNAME\n```\n\n## Sources\n\n-   https://priocept.com/2017/02/14/aws-tag-retrieval-from-within-an-ec2-instance/\n-   https://marcelog.github.io/articles/aws_get_tags_from_inside_instance_ec2.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaoudrizwan%2Fec2-get-tag","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaoudrizwan%2Fec2-get-tag","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaoudrizwan%2Fec2-get-tag/lists"}