aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
* fix fetch ipv4 addrHEADmasterPinapelz2026-05-10-1/+1
|
* Add 'Preset' parameter for Factorio configurationPinapelz2026-05-10-0/+7
| | | Added a new parameter 'Preset' to specify Factorio preset mode.
* Change ECS AMI ID to Amazon Linux 2023Pinapelz2026-05-10-1/+1
| | | Updated ECS AMI ID to the latest Amazon Linux 2023 version.
* Merge pull request #51 from m-chandler/test-push-on-mergem-chandler2025-02-01-1/+1
|\ | | | | chore: Whitespace change to rest PR / merge / github action.
| * chore: Whitespace change to rest PR / merge / github action.Michael Chandler2025-02-01-1/+1
|/
* Add github workflow to copy latest cf.yml to s3 bucket.m-chandler2025-02-01-0/+22
|
* Merge pull request #50 from standardtoaster/dnsupdatem-chandler2025-02-01-100/+24
|\ | | | | [dnsupdater] Set the record as part of the instance start
| * [dnsupdater] Set the record as part of the instance startstandardtoaster2025-01-30-100/+24
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move the DNS configuration to the instance start config, versus a lambda / cloudbridge. This is a bunch simpler, and seems to work to resolve the issue where DNS updates were initermittenly failing. 🙏 to @ZoesDev for the idea to move this to a LaunchTemplate fixes m-chandler/factorio-spot-pricing#49 Test Plan: * Started up instance w/o DNS enabled, ensured record was not created, checked logs to ensure no updates were attempted ``` [ec2-user@ip-10-100-0-25 log]$ sudo cat cloud-init-output.log Cloud-init v. 19.3-46.amzn2.0.4 running 'init-local' at Fri, 31 Jan 2025 02:18:41 +0000. Up 7.50 seconds. Cloud-init v. 19.3-46.amzn2.0.4 running 'init' at Fri, 31 Jan 2025 02:18:42 +0000. Up 8.69 seconds. ci-info: +++++++++++++++++++++++++++++++++++++++Net device info++++++++++++++++++++++++++++++++++++++++ ci-info: +--------+------+-----------------------------+-----------------+--------+-------------------+ ci-info: | Device | Up | Address | Mask | Scope | Hw-Address | ci-info: +--------+------+-----------------------------+-----------------+--------+-------------------+ ci-info: | eth0 | True | 10.100.0.25 | 255.255.255.240 | global | 06:96:e0:e4:cc:a9 | ci-info: | eth0 | True | fe80::496:e0ff:fee4:cca9/64 | . | link | 06:96:e0:e4:cc:a9 | ci-info: | lo | True | 127.0.0.1 | 255.0.0.0 | host | . | ci-info: | lo | True | ::1/128 | . | host | . | ci-info: +--------+------+-----------------------------+-----------------+--------+-------------------+ ci-info: ++++++++++++++++++++++++++++++++Route IPv4 info++++++++++++++++++++++++++++++++ ci-info: +-------+-----------------+-------------+-----------------+-----------+-------+ ci-info: | Route | Destination | Gateway | Genmask | Interface | Flags | ci-info: +-------+-----------------+-------------+-----------------+-----------+-------+ ci-info: | 0 | 0.0.0.0 | 10.100.0.17 | 0.0.0.0 | eth0 | UG | ci-info: | 1 | 10.100.0.16 | 0.0.0.0 | 255.255.255.240 | eth0 | U | ci-info: | 2 | 169.254.169.254 | 0.0.0.0 | 255.255.255.255 | eth0 | UH | ci-info: +-------+-----------------+-------------+-----------------+-----------+-------+ ci-info: +++++++++++++++++++Route IPv6 info+++++++++++++++++++ ci-info: +-------+-------------+---------+-----------+-------+ ci-info: | Route | Destination | Gateway | Interface | Flags | ci-info: +-------+-------------+---------+-----------+-------+ ci-info: | 9 | fe80::/64 | :: | eth0 | U | ci-info: | 11 | local | :: | eth0 | U | ci-info: | 12 | ff00::/8 | :: | eth0 | U | ci-info: +-------+-------------+---------+-----------+-------+ Cloud-init v. 19.3-46.amzn2.0.4 running 'modules:config' at Fri, 31 Jan 2025 02:18:44 +0000. Up 10.39 seconds. Cloud-init v. 19.3-46.amzn2.0.4 running 'modules:final' at Fri, 31 Jan 2025 02:18:44 +0000. Up 11.11 seconds. + echo ECS_CLUSTER=factorio-server-test-no-dns-cluster + '[' '!=' '' ']' + '[' '' '!=' '' ']' Cloud-init v. 19.3-46.amzn2.0.4 finished at Fri, 31 Jan 2025 02:18:45 +0000. Datasource DataSourceEc2. Up 11.44 seconds ``` * Started up instance w/dns enabled, validated that record was created ``` [ec2-user@ip-10-100-0-20 ~]$ sudo cat /var/log/cloud-init-output.log Cloud-init v. 19.3-46.amzn2.0.4 running 'init-local' at Fri, 31 Jan 2025 02:29:58 +0000. Up 6.86 seconds. Cloud-init v. 19.3-46.amzn2.0.4 running 'init' at Fri, 31 Jan 2025 02:29:59 +0000. Up 8.02 seconds. ci-info: +++++++++++++++++++++++++++++++++++++++Net device info++++++++++++++++++++++++++++++++++++++++ ci-info: +--------+------+-----------------------------+-----------------+--------+-------------------+ ci-info: | Device | Up | Address | Mask | Scope | Hw-Address | ci-info: +--------+------+-----------------------------+-----------------+--------+-------------------+ ci-info: | eth0 | True | 10.100.0.20 | 255.255.255.240 | global | 06:bc:bc:79:75:a3 | ci-info: | eth0 | True | fe80::4bc:bcff:fe79:75a3/64 | . | link | 06:bc:bc:79:75:a3 | ci-info: | lo | True | 127.0.0.1 | 255.0.0.0 | host | . | ci-info: | lo | True | ::1/128 | . | host | . | ci-info: +--------+------+-----------------------------+-----------------+--------+-------------------+ ci-info: ++++++++++++++++++++++++++++++++Route IPv4 info++++++++++++++++++++++++++++++++ ci-info: +-------+-----------------+-------------+-----------------+-----------+-------+ ci-info: | Route | Destination | Gateway | Genmask | Interface | Flags | ci-info: +-------+-----------------+-------------+-----------------+-----------+-------+ ci-info: | 0 | 0.0.0.0 | 10.100.0.17 | 0.0.0.0 | eth0 | UG | ci-info: | 1 | 10.100.0.16 | 0.0.0.0 | 255.255.255.240 | eth0 | U | ci-info: | 2 | 169.254.169.254 | 0.0.0.0 | 255.255.255.255 | eth0 | UH | ci-info: +-------+-----------------+-------------+-----------------+-----------+-------+ ci-info: +++++++++++++++++++Route IPv6 info+++++++++++++++++++ ci-info: +-------+-------------+---------+-----------+-------+ ci-info: | Route | Destination | Gateway | Interface | Flags | ci-info: +-------+-------------+---------+-----------+-------+ ci-info: | 9 | fe80::/64 | :: | eth0 | U | ci-info: | 11 | local | :: | eth0 | U | ci-info: | 12 | ff00::/8 | :: | eth0 | U | ci-info: +-------+-------------+---------+-----------+-------+ Cloud-init v. 19.3-46.amzn2.0.4 running 'modules:config' at Fri, 31 Jan 2025 02:30:01 +0000. Up 9.78 seconds. Cloud-init v. 19.3-46.amzn2.0.4 running 'modules:final' at Fri, 31 Jan 2025 02:30:02 +0000. Up 10.52 seconds. + echo ECS_CLUSTER=factorio-server-test-dns-cluster + '[' *********'!=' '' ']' + '[' *********'!=' '' ']' + yum install -y aws-cli Loaded plugins: priorities, update-motd, upgrade-helper Resolving Dependencies --> Running transaction check ---> Package awscli.noarch 0:1.18.147-1.amzn2.0.2 will be installed --> Processing Dependency: python2-botocore = 1.18.6 for package: awscli-1.18.147-1.amzn2.0.2.noarch --> Processing Dependency: python-colorama for package: awscli-1.18.147-1.amzn2.0.2.noarch --> Processing Dependency: python-docutils for package: awscli-1.18.147-1.amzn2.0.2.noarch --> Processing Dependency: python-rsa for package: awscli-1.18.147-1.amzn2.0.2.noarch --> Processing Dependency: python2-s3transfer for package: awscli-1.18.147-1.amzn2.0.2.noarch --> Running transaction check ---> Package python-docutils.noarch 0:0.12-0.2.20140510svn7747.amzn2 will be installed --> Processing Dependency: python-imaging for package: python-docutils-0.12-0.2.20140510svn7747.amzn2.noarch ---> Package python2-botocore.noarch 0:1.18.6-1.amzn2.0.3 will be installed --> Processing Dependency: python-dateutil >= 1.4 for package: python2-botocore-1.18.6-1.amzn2.0.3.noarch --> Processing Dependency: python-jmespath >= 0.9.3 for package: python2-botocore-1.18.6-1.amzn2.0.3.noarch ---> Package python2-colorama.noarch 0:0.3.9-3.amzn2.0.1 will be installed ---> Package python2-rsa.noarch 0:3.4.1-1.amzn2.0.4 will be installed ---> Package python2-s3transfer.noarch 0:0.3.3-1.amzn2.0.1 will be installed --> Processing Dependency: python-futures for package: python2-s3transfer-0.3.3-1.amzn2.0.1.noarch --> Running transaction check ---> Package python-pillow.x86_64 0:2.0.0-23.gitd1c6db8.amzn2.0.13 will be installed --> Processing Dependency: libjpeg.so.62(LIBJPEG_6.2)(64bit) for package: python-pillow-2.0.0-23.gitd1c6db8.amzn2.0.13.x86_64 --> Processing Dependency: libtiff.so.5(LIBTIFF_4.0)(64bit) for package: python-pillow-2.0.0-23.gitd1c6db8.amzn2.0.13.x86_64 --> Processing Dependency: libjpeg.so.62()(64bit) for package: python-pillow-2.0.0-23.gitd1c6db8.amzn2.0.13.x86_64 --> Processing Dependency: libtiff.so.5()(64bit) for package: python-pillow-2.0.0-23.gitd1c6db8.amzn2.0.13.x86_64 --> Processing Dependency: libwebp.so.4()(64bit) for package: python-pillow-2.0.0-23.gitd1c6db8.amzn2.0.13.x86_64 ---> Package python2-dateutil.noarch 1:2.6.1-3.amzn2 will be installed ---> Package python2-futures.noarch 0:3.0.5-1.amzn2 will be installed ---> Package python2-jmespath.noarch 0:0.9.3-1.amzn2.0.2 will be installed --> Running transaction check ---> Package libjpeg-turbo.x86_64 0:2.0.90-2.amzn2.0.6 will be installed ---> Package libtiff.x86_64 0:4.0.3-35.amzn2.0.22 will be installed --> Processing Dependency: libjbig.so.2.0()(64bit) for package: libtiff-4.0.3-35.amzn2.0.22.x86_64 ---> Package libwebp.x86_64 0:0.3.0-10.amzn2.0.2 will be installed --> Running transaction check ---> Package jbigkit-libs.x86_64 0:2.0-11.amzn2.0.3 will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: awscli noarch 1.18.147-1.amzn2.0.2 amzn2-core 2.1 M Installing for dependencies: jbigkit-libs x86_64 2.0-11.amzn2.0.3 amzn2-core 47 k libjpeg-turbo x86_64 2.0.90-2.amzn2.0.6 amzn2-core 171 k libtiff x86_64 4.0.3-35.amzn2.0.22 amzn2-core 176 k libwebp x86_64 0.3.0-10.amzn2.0.2 amzn2-core 170 k python-docutils noarch 0.12-0.2.20140510svn7747.amzn2 amzn2-core 1.5 M python-pillow x86_64 2.0.0-23.gitd1c6db8.amzn2.0.13 amzn2-core 447 k python2-botocore noarch 1.18.6-1.amzn2.0.3 amzn2-core 4.4 M python2-colorama noarch 0.3.9-3.amzn2.0.1 amzn2-core 30 k python2-dateutil noarch 1:2.6.1-3.amzn2 amzn2-core 251 k python2-futures noarch 3.0.5-1.amzn2 amzn2-core 27 k python2-jmespath noarch 0.9.3-1.amzn2.0.2 amzn2-core 42 k python2-rsa noarch 3.4.1-1.amzn2.0.4 amzn2-core 67 k python2-s3transfer noarch 0.3.3-1.amzn2.0.1 amzn2-core 104 k Transaction Summary ================================================================================ Install 1 Package (+13 Dependent packages) Total download size: 9.5 M Installed size: 65 M Downloading packages: -------------------------------------------------------------------------------- Total 26 MB/s | 9.5 MB 00:00 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : libjpeg-turbo-2.0.90-2.amzn2.0.6.x86_64 1/14 Installing : python2-rsa-3.4.1-1.amzn2.0.4.noarch 2/14 Installing : python2-jmespath-0.9.3-1.amzn2.0.2.noarch 3/14 Installing : libwebp-0.3.0-10.amzn2.0.2.x86_64 4/14 Installing : jbigkit-libs-2.0-11.amzn2.0.3.x86_64 5/14 Installing : libtiff-4.0.3-35.amzn2.0.22.x86_64 6/14 Installing : python-pillow-2.0.0-23.gitd1c6db8.amzn2.0.13.x86_64 7/14 Installing : python-docutils-0.12-0.2.20140510svn7747.amzn2.noarch 8/14 Installing : python2-colorama-0.3.9-3.amzn2.0.1.noarch 9/14 Installing : 1:python2-dateutil-2.6.1-3.amzn2.noarch 10/14 Installing : python2-botocore-1.18.6-1.amzn2.0.3.noarch 11/14 Installing : python2-futures-3.0.5-1.amzn2.noarch 12/14 Installing : python2-s3transfer-0.3.3-1.amzn2.0.1.noarch 13/14 Installing : awscli-1.18.147-1.amzn2.0.2.noarch 14/14 Verifying : libjpeg-turbo-2.0.90-2.amzn2.0.6.x86_64 1/14 Verifying : python2-s3transfer-0.3.3-1.amzn2.0.1.noarch 2/14 Verifying : python2-futures-3.0.5-1.amzn2.noarch 3/14 Verifying : 1:python2-dateutil-2.6.1-3.amzn2.noarch 4/14 Verifying : python2-colorama-0.3.9-3.amzn2.0.1.noarch 5/14 Verifying : jbigkit-libs-2.0-11.amzn2.0.3.x86_64 6/14 Verifying : python2-botocore-1.18.6-1.amzn2.0.3.noarch 7/14 Verifying : awscli-1.18.147-1.amzn2.0.2.noarch 8/14 Verifying : libwebp-0.3.0-10.amzn2.0.2.x86_64 9/14 Verifying : python-pillow-2.0.0-23.gitd1c6db8.amzn2.0.13.x86_64 10/14 Verifying : libtiff-4.0.3-35.amzn2.0.22.x86_64 11/14 Verifying : python2-jmespath-0.9.3-1.amzn2.0.2.noarch 12/14 Verifying : python2-rsa-3.4.1-1.amzn2.0.4.noarch 13/14 Verifying : python-docutils-0.12-0.2.20140510svn7747.amzn2.noarch 14/14 Installed: awscli.noarch 0:1.18.147-1.amzn2.0.2 Dependency Installed: jbigkit-libs.x86_64 0:2.0-11.amzn2.0.3 libjpeg-turbo.x86_64 0:2.0.90-2.amzn2.0.6 libtiff.x86_64 0:4.0.3-35.amzn2.0.22 libwebp.x86_64 0:0.3.0-10.amzn2.0.2 python-docutils.noarch 0:0.12-0.2.20140510svn7747.amzn2 python-pillow.x86_64 0:2.0.0-23.gitd1c6db8.amzn2.0.13 python2-botocore.noarch 0:1.18.6-1.amzn2.0.3 python2-colorama.noarch 0:0.3.9-3.amzn2.0.1 python2-dateutil.noarch 1:2.6.1-3.amzn2 python2-futures.noarch 0:3.0.5-1.amzn2 python2-jmespath.noarch 0:0.9.3-1.amzn2.0.2 python2-rsa.noarch 0:3.4.1-1.amzn2.0.4 python2-s3transfer.noarch 0:0.3.3-1.amzn2.0.1 Complete! ++ curl -s http://169.254.169.254/latest/meta-data/public-ipv4 + PUBLIC_IP=52.3.245.247 + aws route53 change-resource-record-sets --hosted-zone-id ************* --change-batch '{ "Changes": [{ "Action": "UPSERT", "ResourceRecordSet": { "Name": "********", "Type": "A", "TTL": 60, "ResourceRecords": [{"Value":"52.3.245.247"}] } }] }' --region us-east-1 { "ChangeInfo": { "Status": "PENDING", "SubmittedAt": "2025-01-31T02:30:14.384Z", "Id": "/change/C01602392ZGS41I7W320O" } } Cloud-init v. 19.3-46.amzn2.0.4 finished at Fri, 31 Jan 2025 02:30:14 +0000. Datasource DataSourceEc2. Up 22.77 seconds ```
* Merge pull request #44 from RoiKlevansky/executable-shell-scriptsm-chandler2024-11-29-0/+0
|\ | | | | Give shell scripts executable permissions
| * Give shell scripts executable permissionsRoi Klevansky2024-11-10-0/+0
|/
* Merge pull request #43 from Isaac-T-Hill/optional-ssh-keysm-chandler2024-11-09-5/+31
|\ | | | | Add optional argument for ssh key path in utils
| * Use bash variable rather than optional argument for ssh key pathIsaac Hill2024-11-03-10/+22
| |
| * Add optional argument for ssh key path in utilsIsaac Hill2024-10-27-9/+23
|/
* Merge pull request #41 from robertmassaioli/space-age-optionm-chandler2024-10-26-41/+54
|\ | | | | Making space age be an option for the template. (#40)
| * Update cf.ymlRobert Massaioli2024-10-26-1/+1
| | | | | | Oops, slash
| * Making space age be an option for the template.Robert Massaioli2024-10-23-41/+54
| | | | | | | | | | | | I've set it to false by default because everybody that has Factorio can work with the false setting but only Space Age players can use the true setting.
* | Merge pull request #42 from m-chandler/udpate-default-versionm-chandler2024-10-26-1/+1
|\ \ | |/ |/| fix: Change default version to stable (makes more sense than latest).
| * fix: Change default version to stable (makes more sense than latest).Michael Chandler2024-10-26-1/+1
|/
* Revert "Merge pull request #39 from robertmassaioli/use-hosted-zone-id-type"Michael Chandler2024-10-22-42/+42
| | | | | This reverts commit 6655b797b67676d9d561095a462154d3ce5b2016, reversing changes made to c7d5dcb1b3adae14cecf3dbf2bcdd11e1480aecf.
* Merge pull request #39 from robertmassaioli/use-hosted-zone-id-typem-chandler2024-10-21-42/+42
|\ | | | | Change the HostedZoneId type, now it autoselects in the UI.
| * Change the HostedZoneId type, now it autoselects in the UI.Robert Massaioli2024-10-21-42/+42
|/
* Merge pull request #38 from robertmassaioli/instance-type-recommendationm-chandler2024-10-19-0/+18
|\ | | | | Writing up an instance type recommendation section.
| * Writing up an instance type recommendation section.Robert Massaioli2024-10-17-0/+18
| |
* | Merge pull request #37 from robertmassaioli/cross-linkingm-chandler2024-10-19-0/+2
|\ \ | |/ |/| Cross linking the multi-server repository.
| * Cross linking the multi-server repository.Robert Massaioli2024-10-17-0/+2
|/
* Merge pull request #36 from robertmassaioli/bring-in-utility-scriptsm-chandler2024-10-14-1/+163
|\ | | | | Bring in utility scripts
| * Uploaded useful scripts to help manage servers.Robert Massaioli2024-10-14-1/+42
| |
| * Upload and download saves from Factorio servers.Robert Massaioli2024-10-13-0/+121
| |
* | docs: Readme updates.Michael Chandler2024-10-12-4/+19
|/
* feat: #31 allow user to specify vCPU / Memory and let AWS pick the best spot ↵Michael Chandler2024-10-06-12/+46
| | | | instance.
* feat: Migrate from EC2 Launch Configuration to Launch Template.Michael Chandler2024-10-06-17/+31
|
* Merge pull request #29 from robertmassaioli/patch-2m-chandler2024-10-04-0/+39
|\ | | | | Update readme.md to add simple CLI option.
| * Update readme.mdRobert Massaioli2024-10-04-1/+1
| |
| * Update readme.md to add simple CLI option.Robert Massaioli2024-10-04-0/+39
|/
* Update instructions on how to load an existing save.m-chandler2024-06-30-11/+34
|
* Merge pull request #24 from robinld/robinld/python3.12m-chandler2023-11-15-1/+1
|\ | | | | python3.7 -> python3.12
| * python3.7 -> python3.12robinld2023-11-14-1/+1
|/ | | Python 3.7 is EOL: https://devguide.python.org/versions/
* Merge pull request #20 from apeabody/masterm-chandler2022-01-25-14/+16
|\ | | | | ADD: EFS Improvements
| * ADD: EFS ImprovementsAndrew Peabody2022-01-16-14/+16
|/ | | | | | -EFS retained upon stack deletion to preserve saves. -EFS lifecycle management enabled to lower cost when not actively utilized. -Migrate to CloudFormation's native EFS handler for ECS tasks. Removes the ASG dependency on the EFS mount points for increased parallelization during build-out. However, migrating save files is slightly complicated.
* Merge pull request #19 from robertmassaioli/patch-1m-chandler2021-10-04-0/+10
|\ | | | | Save File Setup Documentation
| * Save File SetupRobert Massaioli2021-10-02-0/+10
|/ | | Help people understand how to put their save files on the server.
* Merge pull request #17 from nicolas-lang/masterm-chandler2021-09-11-3/+15
|\ | | | | Added new Parameter UpdateModsOnStart
| * removed unnecessary DoUpdateModsOnStart since the required parameter is also ↵Nicolas Lang2021-09-10-2/+1
| | | | | | | | binary
| * Added UPDATE_MODS_ON_START to docker environment based on new parameter ↵Nicolas Lang2021-09-10-3/+16
|/ | | | UpdateModsOnStart
* Update readme.mdm-chandler2021-06-25-1/+3
| | | Add note about SSH, uploading files, suggested method of doing so.
* Set ECS Service desired count (as well as ASG) when stopping / starting server.Michael Chandler2020-01-07-8/+7
|
* Update readme.mdm-chandler2019-11-15-2/+22
| | | Update readme as per: https://github.com/m-chandler/factorio-spot-pricing/issues/11
* Update readme.mdm-chandler2019-11-09-1/+1
|
* Update readme.mdm-chandler2019-11-09-1/+1
|
* Update readme.mdm-chandler2019-11-09-1/+12
|
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage