{"id":24764465,"url":"https://github.com/seamapi/pulumi-fly","last_synced_at":"2025-08-11T15:23:58.372Z","repository":{"id":189652423,"uuid":"681026148","full_name":"seamapi/pulumi-fly","owner":"seamapi","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-08T01:09:42.000Z","size":247,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-07-29T10:42:24.574Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/seamapi.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}},"created_at":"2023-08-21T05:30:21.000Z","updated_at":"2023-08-21T05:44:51.000Z","dependencies_parsed_at":"2023-08-21T07:24:26.006Z","dependency_job_id":"9c772a4f-b96d-422e-a78a-c27a69778251","html_url":"https://github.com/seamapi/pulumi-fly","commit_stats":null,"previous_names":["seamapi/pulumi-fly"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/seamapi/pulumi-fly","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seamapi%2Fpulumi-fly","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seamapi%2Fpulumi-fly/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seamapi%2Fpulumi-fly/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seamapi%2Fpulumi-fly/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/seamapi","download_url":"https://codeload.github.com/seamapi/pulumi-fly/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seamapi%2Fpulumi-fly/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268595598,"owners_count":24275761,"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-08-03T02:00:12.545Z","response_time":2577,"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":[],"created_at":"2025-01-28T22:31:25.461Z","updated_at":"2025-08-11T15:23:58.316Z","avatar_url":"https://github.com/seamapi.png","language":"TypeScript","readme":"# pulumi-fly\n\nThis is a dynamic resource that represents fly.io resources.\n\nYou can only use this pulumi resource in Typescript, it should only be used\nuntil there is an official and well-maintained fly.io pulumi provider.\n\n## Usage\n\n`npm add pulumi-fly`\n\n```ts\nimport { Config } from \"@pulumi/pulumi\"\nimport { FlyApp, FlyIp, FlyMachine, getFlyRegistry } from \"pulumi-fly\"\n\nconst config = new Config()\n\nconst fly_app = new FlyApp(\n  \"my-app\",\n  {\n    app_name: \"my_app\",\n    org_slug: \"my_org\",\n  },\n  { config }\n)\n\nconst fly_ip = new FlyIp(\n  \"public-ip-v6\",\n  {\n    app_name: fly_app.app_name,\n    type: \"v6\",\n  },\n  { config }\n)\n\nexport const ip = fly_ip.ip_address\n\nconst image = new docker.Image(\"my_app-image\", {\n  imageName: pulumi.interpolate`registry.fly.io/${fly_app.app_name}:latest`,\n  build: {\n    platform: \"linux/amd64\",\n    context: \"../\",\n  },\n  registry: getFlyRegistry(config),\n})\n\nconst fly_machine = new FlyMachine(\n  \"fly-machine-1\",\n  {\n    app_name: fly_app.app_name,\n    image: image.repoDigest,\n    services: [\n      {\n        internal_port: 3070,\n        protocol: \"tcp\",\n        ports: [\n          {\n            handlers: [\"http\"],\n            port: 80,\n          },\n        ],\n      },\n    ],\n  },\n  { config }\n)\n```\n\nYou are required to provide a secret, pulumi will tell you when you try to\nrun but the secret is `fly_api_key`.\n\n```bash\npulumi config set --secret fly_api_key $(fly auth token)\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseamapi%2Fpulumi-fly","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseamapi%2Fpulumi-fly","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseamapi%2Fpulumi-fly/lists"}