{"id":31677285,"url":"https://github.com/tf-libsonnet/hashicorp-aws","last_synced_at":"2025-10-08T05:07:55.489Z","repository":{"id":64969184,"uuid":"579112463","full_name":"tf-libsonnet/hashicorp-aws","owner":"tf-libsonnet","description":"Jsonnet library for hashicorp/aws Terraform provider.","archived":false,"fork":false,"pushed_at":"2024-01-26T02:14:04.000Z","size":23675,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-01-26T03:26:38.307Z","etag":null,"topics":["jsonnet","terraform"],"latest_commit_sha":null,"homepage":"","language":"Jsonnet","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tf-libsonnet.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2022-12-16T17:34:02.000Z","updated_at":"2024-01-26T03:26:59.705Z","dependencies_parsed_at":"2023-11-10T19:27:10.015Z","dependency_job_id":"4591bf46-58bd-4aee-a911-3ff161df11d2","html_url":"https://github.com/tf-libsonnet/hashicorp-aws","commit_stats":null,"previous_names":[],"tags_count":28,"template":false,"template_full_name":"tf-libsonnet/provider-libsonnet-template","purl":"pkg:github/tf-libsonnet/hashicorp-aws","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tf-libsonnet%2Fhashicorp-aws","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tf-libsonnet%2Fhashicorp-aws/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tf-libsonnet%2Fhashicorp-aws/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tf-libsonnet%2Fhashicorp-aws/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tf-libsonnet","download_url":"https://codeload.github.com/tf-libsonnet/hashicorp-aws/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tf-libsonnet%2Fhashicorp-aws/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278891753,"owners_count":26063858,"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","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"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":["jsonnet","terraform"],"created_at":"2025-10-08T05:02:34.655Z","updated_at":"2025-10-08T05:07:55.484Z","avatar_url":"https://github.com/tf-libsonnet.png","language":"Jsonnet","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003etf-libsonnet/hashicorp-aws\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cem\u003eGenerate Terraform with Jsonnet\u003c/em\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/tf-libsonnet/hashicorp-aws/blob/main/LICENSE\"\u003e\n    \u003cimg alt=\"LICENSE\" src=\"https://img.shields.io/github/license/tf-libsonnet/hashicorp-aws?style=for-the-badge\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/tf-libsonnet/hashicorp-aws/releases/latest\"\u003e\n    \u003cimg alt=\"latest release\" src=\"https://img.shields.io/github/v/release/tf-libsonnet/hashicorp-aws?style=for-the-badge\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\nThis repository contains [Jsonnet](https://jsonnet.org/) functions for generating resources and data sources for the\n[hashicorp/aws](https://registry.terraform.io/providers/hashicorp/aws) Terraform provider.\n\nLearn more about `tf.libsonnet` at [docs.tflibsonnet.com](https://docs.tflibsonnet.com/docs).\n\n\u003e **IMPORTANT**\n\u003e\n\u003e This library is generated using [tf-libsonnet/libgenerator](https://github.com/tf-libsonnet/libgenerator). If you find\n\u003e an issue with the generated code, please file an issue in the `libgenerator` repository.\n\u003e\n\u003e If you would like to contribute a change, you may open a Pull Request with a suggested change, but please note that it\n\u003e will **not be merged in until the necessary updates have been made to the generator**.\n\n## Usage\n\nInstall the package using [jsonnet-bundler](https://github.com/jsonnet-bundler/jsonnet-bundler):\n\n```\njb install github.com/tf-libsonnet/hashicorp-aws@main\n\n# Or if you want to install a specific release\n#   jb install github.com/tf-libsonnet/hashicorp-aws@v0.0.1\n# Or if you want to install bindings for a specific provider major version series\n#   jb install github.com/tf-libsonnet/hashicorp-aws/5.x@main\n```\n\nYou can then import the package in your Jsonnet code:\n\n```jsonnet\n// main.tf.json.jsonnet\nlocal aws = import 'github.com/tf-libsonnet/hashicorp-aws/main.libsonnet';\n\nlocal o =\n  aws.data.ami.new(\n    'ubuntu',\n    most_recent=true,\n    owners=['099720109477'],\n    filter=[\n      aws.data.ami.filter.new(\n        name='name',\n        values=['ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-*'],\n      ),\n      aws.data.ami.filter.new(\n        name='virtualization-type',\n        values=['hvm'],\n      ),\n    ],\n  )\n  + aws.instance.new(\n    'web',\n    ami=o._ref.data.aws_ami.ubuntu.get('id'),\n    instance_type='t3.micro',\n  );\n\naws.provider.new(region='us-east-1', src='hashicorp/aws')\n+ o\n```\n\nThis will generate the following Terraform JSON :\n\n```json\n{\n   \"data\": {\n      \"aws_ami\": {\n         \"ubuntu\": {\n            \"filter\": [\n               {\n                  \"name\": \"name\",\n                  \"values\": [\n                     \"ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-*\"\n                  ]\n               },\n               {\n                  \"name\": \"virtualization-type\",\n                  \"values\": [\n                     \"hvm\"\n                  ]\n               }\n            ],\n            \"most_recent\": true,\n            \"owners\": [\n               \"099720109477\"\n            ]\n         }\n      }\n   },\n   \"provider\": {\n      \"aws\": [\n         {\n            \"region\": \"us-east-1\"\n         }\n      ]\n   },\n   \"resource\": {\n      \"aws_instance\": {\n         \"web\": {\n            \"ami\": \"${data.aws_ami.ubuntu.id}\",\n            \"instance_type\": \"t3.micro\"\n         }\n      }\n   },\n   \"terraform\": {\n      \"required_providers\": {\n         \"aws\": {\n            \"source\": \"hashicorp/aws\"\n         }\n      }\n   }\n}\n```\n\nRefer to the [reference docs](/docs/5.x/README.md) for a list of supported data sources and resources:\n\n- [provider config](/docs/5.x/provider.md)\n- [resources](/docs/5.x/README.md)\n- [data sources](/docs/5.x/data/index.md)\n\n\n## Support\n\nIf you have any questions about how to use the `tf.libsonnet` libraries, ask in the [Organization GitHub\nDiscussion](https://github.com/orgs/tf-libsonnet/discussions).\n\n\n## Contributing\n\nRefer to the [CONTRIBUTING.md](/CONTRIBUTING.md) document for information on how to contribute to `tf.libsonnet`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftf-libsonnet%2Fhashicorp-aws","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftf-libsonnet%2Fhashicorp-aws","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftf-libsonnet%2Fhashicorp-aws/lists"}