{"id":17180771,"url":"https://github.com/jsok/hiera-cfn-metadata","last_synced_at":"2025-03-25T00:41:13.258Z","repository":{"id":34413868,"uuid":"38344930","full_name":"jsok/hiera-cfn-metadata","owner":"jsok","description":"Use CloudFormation resource metadata as a hiera backend","archived":false,"fork":false,"pushed_at":"2015-07-06T06:11:39.000Z","size":130,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-05T02:09:01.943Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/jsok.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}},"created_at":"2015-07-01T02:34:17.000Z","updated_at":"2015-07-01T02:34:33.000Z","dependencies_parsed_at":"2022-09-11T22:40:51.943Z","dependency_job_id":null,"html_url":"https://github.com/jsok/hiera-cfn-metadata","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsok%2Fhiera-cfn-metadata","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsok%2Fhiera-cfn-metadata/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsok%2Fhiera-cfn-metadata/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsok%2Fhiera-cfn-metadata/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jsok","download_url":"https://codeload.github.com/jsok/hiera-cfn-metadata/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245377958,"owners_count":20605374,"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-15T00:31:34.679Z","updated_at":"2025-03-25T00:41:13.234Z","avatar_url":"https://github.com/jsok.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Gem Version Badge](https://img.shields.io/gem/v/hiera-cfn-metadata.svg)](https://rubygems.org/gems/hiera-cfn-metadata)\n\n# hiera-cfn-metadata\n\nA Hiera backend for retrieving CloudFormation resource metadata and parsing it as a JSON data source.\n\n## Configuration\n\nYou should modify `hiera.yaml` as follows:\n\n    :backends:\n        - cfn_metadata\n\n    :hierarchy:\n        - %{::environment}\n        - common\n\n    :cfn_metadata:\n        :region:   # parsed from AWS_REGION if not specified\n        :stack:    # parsed from CFN_STACK if not specified\n        :resource: # parsed from CFN_RESOURCE if not specified\n\n\nThe `:stack` should be either the full stack name or ARN.\nThe `:resource` should be the logical resource ID from the CloudFormation template.\n\n## Metadata\n\nThe specified resource's metadata will be parsed and each key treated\nas a datasource in the hierarchy, e.g.:\n\n    \"MyLaunchConfig\": {\n      \"Type\": \"AWS::AutoScaling::LaunchConfiguration\",\n      \"Properties\": {\n        ...\n      },\n      \"Metadata\": {\n        \"common\": {\n          \"foo\": \"bar\",\n          \"packages\": [\"wget\"]\n        },\n        \"staging\": {\n          \"foo\": \"baz\",\n          \"packages\": [\"nmap\"]\n        },\n        \"production\": {\n          \"foo\": \"quux\"\n        }\n      }\n\nEach datasource is parsed identically to the standard JSON backend. All data types and lookups are supported.\n\n## Credentials\n\nCurrently only instance-identity based authentication is supported, similarly\nto how `cfn-get-metadata` implements it. The advantage is that the user, role\nor instance profile needn't require the `cloudformation:DescribeStackResource`\nIAM action.\n\nThis is undocumented by AWS but has been implemented based on the Python code\nin `cfn-bootstrap`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsok%2Fhiera-cfn-metadata","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjsok%2Fhiera-cfn-metadata","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsok%2Fhiera-cfn-metadata/lists"}