{"id":17086931,"url":"https://github.com/jonascarpay/iplz","last_synced_at":"2025-04-12T21:41:43.857Z","repository":{"id":56866875,"uuid":"526642688","full_name":"jonascarpay/iplz","owner":"jonascarpay","description":"Demo project for building, provisioning, and deploying a web service with a single command, using Terraform and Nix.","archived":false,"fork":false,"pushed_at":"2022-11-24T08:54:04.000Z","size":9,"stargazers_count":24,"open_issues_count":0,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-10T00:12:59.050Z","etag":null,"topics":["docker","icanhazip","nix","template","terraform","tutorial"],"latest_commit_sha":null,"homepage":"","language":"HCL","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/jonascarpay.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}},"created_at":"2022-08-19T14:38:43.000Z","updated_at":"2024-11-04T22:12:43.000Z","dependencies_parsed_at":"2022-08-19T23:41:00.356Z","dependency_job_id":null,"html_url":"https://github.com/jonascarpay/iplz","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonascarpay%2Fiplz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonascarpay%2Fiplz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonascarpay%2Fiplz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonascarpay%2Fiplz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonascarpay","download_url":"https://codeload.github.com/jonascarpay/iplz/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248637832,"owners_count":21137538,"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":["docker","icanhazip","nix","template","terraform","tutorial"],"created_at":"2024-10-14T13:29:51.687Z","updated_at":"2025-04-12T21:41:43.816Z","avatar_url":"https://github.com/jonascarpay.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# iplz: End-to-End Declarative Deployment Demo\n\n_End-to-end declarative deployment_ means having a set of files describing the desired end state of the entire production pipeline, in such a way that we can materialize it with _a single command_.\nIn this case, that pipeline consists of building, provisioning, and deploying a simple web service to Amazon EC2.\n\nI describe the ideas and methods in detail in the [accompanying tutorial blog post](https://jonascarpay.com/posts/2022-09-19-declarative-deployment.html).\n\nThe `iplz` application itself is a simple [`icanhazip.com`](http://icanhazip.com/) clone, it echoes the client's IP address back at them.\nIt serves as a stand-in for a larger application, see the [binplz.dev repo](https://github.com/binplz/binplz.dev) for how the ideas presented here work in a more complex situation.\n\n### Usage\n\n#### Setup\n\n1. [Configure Terraform with your AWS credentials](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#authentication-and-configuration)\n\n2. Run `nix run .#terraform -- init` to create Terraform lock files\n\n#### Building and Deploying\n\n1. `nix run .#terraform -- apply`\n\nThere is no step 2.\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://intl.startrek.com/sites/default/files/images/2019-01/d7b431b1a0cc5f032399870ff4710743.jpeg\" width=\"300\" /\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonascarpay%2Fiplz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonascarpay%2Fiplz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonascarpay%2Fiplz/lists"}