{"id":19006299,"url":"https://github.com/scaleway-terraform-modules/terraform-scaleway-instance","last_synced_at":"2025-04-22T19:11:00.467Z","repository":{"id":65725375,"uuid":"594397316","full_name":"scaleway-terraform-modules/terraform-scaleway-instance","owner":"scaleway-terraform-modules","description":"Manage Scaleway instances with Terraform.","archived":false,"fork":false,"pushed_at":"2025-03-21T06:44:32.000Z","size":99,"stargazers_count":4,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-17T11:58:54.543Z","etag":null,"topics":["instance","scaleway","scaleway-instance","terraform-module"],"latest_commit_sha":null,"homepage":"","language":"HCL","has_issues":true,"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/scaleway-terraform-modules.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":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-28T12:31:43.000Z","updated_at":"2025-03-26T00:24:08.000Z","dependencies_parsed_at":"2023-02-19T11:05:21.905Z","dependency_job_id":"df10720a-b280-4f2a-b2b4-dbb33007e199","html_url":"https://github.com/scaleway-terraform-modules/terraform-scaleway-instance","commit_stats":null,"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scaleway-terraform-modules%2Fterraform-scaleway-instance","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scaleway-terraform-modules%2Fterraform-scaleway-instance/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scaleway-terraform-modules%2Fterraform-scaleway-instance/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scaleway-terraform-modules%2Fterraform-scaleway-instance/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scaleway-terraform-modules","download_url":"https://codeload.github.com/scaleway-terraform-modules/terraform-scaleway-instance/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250306638,"owners_count":21408926,"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":["instance","scaleway","scaleway-instance","terraform-module"],"created_at":"2024-11-08T18:31:42.960Z","updated_at":"2025-04-22T19:11:00.442Z","avatar_url":"https://github.com/scaleway-terraform-modules.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Terraform / Scaleway\n\n## Purpose\n\nThis repository is used to deploy an instance on scaleway using terraform.\n\n## Usage\n\n- Setup the [scaleway provider](https://www.terraform.io/docs/providers/scaleway/index.html) in your tf file.\n- Include this module in your tf file. Refer to [documentation](https://www.terraform.io/docs/modules/sources.html#generic-git-repository).\n\n```hcl\nmodule \"my_instance\" {\n  source  = \"scaleway-terraform-modules/instance/scaleway\"\n  version = \"2.0.0\"\n\n  instance_type = \"PLAY2-PICO\"\n  image         = \"fr-par-2/3f9ace44-c310-4a9e-b28f-960b9c7fc848\"\n\n  hostname   = \"my_instance\"\n  domainname = \"example.com\"\n\n  enable_ipv6        = false\n  enable_public_ipv4 = false\n}\n```\n\n\u003c!-- BEGIN_TF_DOCS --\u003e\n## Requirements\n\n| Name | Version |\n|------|---------|\n| \u003ca name=\"requirement_terraform\"\u003e\u003c/a\u003e [terraform](#requirement_terraform) | \u003e= 1.3 |\n| \u003ca name=\"requirement_scaleway\"\u003e\u003c/a\u003e [scaleway](#requirement_scaleway) | \u003e= 2.28.0 |\n\n## Resources\n\n| Name | Type |\n|------|------|\n| [scaleway_domain_record.ipv4](https://registry.terraform.io/providers/scaleway/scaleway/latest/docs/resources/domain_record) | resource |\n| [scaleway_domain_record.ipv6](https://registry.terraform.io/providers/scaleway/scaleway/latest/docs/resources/domain_record) | resource |\n| [scaleway_instance_ip.ipv6](https://registry.terraform.io/providers/scaleway/scaleway/latest/docs/resources/instance_ip) | resource |\n| [scaleway_instance_ip.public_ipv4](https://registry.terraform.io/providers/scaleway/scaleway/latest/docs/resources/instance_ip) | resource |\n| [scaleway_instance_ip_reverse_dns.ipv6](https://registry.terraform.io/providers/scaleway/scaleway/latest/docs/resources/instance_ip_reverse_dns) | resource |\n| [scaleway_instance_ip_reverse_dns.public_ipv4](https://registry.terraform.io/providers/scaleway/scaleway/latest/docs/resources/instance_ip_reverse_dns) | resource |\n| [scaleway_instance_server.this](https://registry.terraform.io/providers/scaleway/scaleway/latest/docs/resources/instance_server) | resource |\n| [scaleway_instance_private_nic.this](https://registry.terraform.io/providers/scaleway/scaleway/latest/docs/data-sources/instance_private_nic) | data source |\n| [scaleway_ipam_ip.private_ipv4](https://registry.terraform.io/providers/scaleway/scaleway/latest/docs/data-sources/ipam_ip) | data source |\n\n## Inputs\n\n| Name | Description | Type | Default | Required |\n|------|-------------|------|---------|:--------:|\n| \u003ca name=\"input_additional_volume_ids\"\u003e\u003c/a\u003e [additional_volume_ids](#input_additional_volume_ids) | Additional volumes attached to the server. Updates to this field will trigger a stop/start of the server. | `list(string)` | `[]` | no |\n| \u003ca name=\"input_boot_type\"\u003e\u003c/a\u003e [boot_type](#input_boot_type) | The boot Type of the server. Default to 'local'. Possible values are: 'local', 'bootscript' or 'rescue'. | `string` | `\"local\"` | no |\n| \u003ca name=\"input_bootscript_id\"\u003e\u003c/a\u003e [bootscript_id](#input_bootscript_id) | ID of the bootscript to use (set boot_type to bootscript). | `string` | `null` | no |\n| \u003ca name=\"input_domainname\"\u003e\u003c/a\u003e [domainname](#input_domainname) | Domain name of the instance. If set, instance IPs will be registered in the matching DNS zone. | `string` | `null` | no |\n| \u003ca name=\"input_enable_ipv6\"\u003e\u003c/a\u003e [enable_ipv6](#input_enable_ipv6) | Determines if IPv6 is enabled for the server. | `bool` | `false` | no |\n| \u003ca name=\"input_enable_public_ipv4\"\u003e\u003c/a\u003e [enable_public_ipv4](#input_enable_public_ipv4) | Determines if a public IPv4 will be attached to the server. | `bool` | `false` | no |\n| \u003ca name=\"input_hostname\"\u003e\u003c/a\u003e [hostname](#input_hostname) | Name of the instance. If not set, it will be randomly generated by Scaleway. | `string` | `null` | no |\n| \u003ca name=\"input_image\"\u003e\u003c/a\u003e [image](#input_image) | UUID or the label of the base image used by the server. Must be null if `root_volume.volume_id` is used. | `string` | `null` | no |\n| \u003ca name=\"input_instance_type\"\u003e\u003c/a\u003e [instance_type](#input_instance_type) | Commercial type of the server. Default to 'DEV1-S'. Updates to this field will recreate a new resource. | `string` | `\"DEV1-S\"` | no |\n| \u003ca name=\"input_placement_group_id\"\u003e\u003c/a\u003e [placement_group_id](#input_placement_group_id) | ID of the placement group the server is attached to. | `string` | `null` | no |\n| \u003ca name=\"input_private_networks\"\u003e\u003c/a\u003e [private_networks](#input_private_networks) | Private networks associated with the server. | `list(string)` | `[]` | no |\n| \u003ca name=\"input_project_id\"\u003e\u003c/a\u003e [project_id](#input_project_id) | ID of the project the namespace is associated with. Ressource will be created in the project set at the provider level if null. | `string` | `null` | no |\n| \u003ca name=\"input_root_volume\"\u003e\u003c/a\u003e [root_volume](#input_root_volume) | Root volume attached to the server on creation. Updates to `root_volume.size_in_gb` will be ignored after the creation of the server. | ```object({ delete_on_termination = bool size_in_gb = number volume_id = optional(string) volume_type = optional(string) })``` | `null` | no |\n| \u003ca name=\"input_security_group_id\"\u003e\u003c/a\u003e [security_group_id](#input_security_group_id) | ID of the security group the server is attached to. | `string` | `null` | no |\n| \u003ca name=\"input_state\"\u003e\u003c/a\u003e [state](#input_state) | State of the server. Default to 'started'. Possible values are: 'started', 'stopped' or 'standby'. | `string` | `\"started\"` | no |\n| \u003ca name=\"input_tags\"\u003e\u003c/a\u003e [tags](#input_tags) | Tags associated with the server and dedicated ip address. | `list(string)` | `[]` | no |\n| \u003ca name=\"input_user_data\"\u003e\u003c/a\u003e [user_data](#input_user_data) | User data associated with the server. Use the cloud-init key to use cloud-init on your instance. You can define values using: - string - UTF-8 encoded file content using file - Binary files using filebase64. | `any` | `null` | no |\n| \u003ca name=\"input_zone\"\u003e\u003c/a\u003e [zone](#input_zone) | The zone in which the instance should be created. Ressource will be created in the zone set at the provider level if null. | `string` | `null` | no |\n\n## Outputs\n\n| Name | Description |\n|------|-------------|\n| \u003ca name=\"output_ip4\"\u003e\u003c/a\u003e [ip4](#output_ip4) | IPv4 address of the intance. |\n| \u003ca name=\"output_ip6\"\u003e\u003c/a\u003e [ip6](#output_ip6) | IPv6 address of the instance. |\n| \u003ca name=\"output_name\"\u003e\u003c/a\u003e [name](#output_name) | Name of the instance. |\n\u003c!-- END_TF_DOCS --\u003e\n\n## Authors\n\nModule is maintained with help from [the community](https://github.com/scaleway-terraform-modules/terraform-scaleway-instance/graphs/contributors).\n\n## License\n\nMozilla Public License 2.0 Licensed. See [LICENSE](https://github.com/scaleway-terraform-modules/terraform-scaleway-instance/tree/master/LICENSE) for full details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscaleway-terraform-modules%2Fterraform-scaleway-instance","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscaleway-terraform-modules%2Fterraform-scaleway-instance","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscaleway-terraform-modules%2Fterraform-scaleway-instance/lists"}