Skip to content

Latest commit

 

History

History

hello-world

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Hello World Example

Quick start

1. Provider

The provider is automatically downloaded from the Terraform registry. If you wish to use a locally built version see the provider readme for building from source and installing the provider.

2. Factorio Client + Server Setup

Run ./scripts/run.ps1. It installs the mod to the current machine's Factorio client mods and sets up a headless factorio server, also running the mod.

To connect your client to the server choose "Multiplayer" > "Connect to address" > Use 127.0.0.1:34197 as the "IP address and port"

3. Terraform Run

Get Terraform

terraform init
terraform plan
terraform apply -auto-approve

Cleanup

To wipe files created by the above operations you can use:

  • scripts/clean-tf.ps1: Deletes just the terraform state.
  • scripts/clean-all.ps1: Deletes the server state, and also removes the mod from your own Factorio client install.