Add EC2 Launch Template strain genesis for AWS horizontal scale.
Ship POST /api/v1/forge/launch-template with cloud-init user-data embedding genesis snapshot hash and strain card ID; first template-tagged auth pins SpreadGeneration=0 and ParentAgentID=template.
This commit is contained in:
1
server/web/public/spread/aws/asg-example.json
Normal file
1
server/web/public/spread/aws/asg-example.json
Normal file
@@ -0,0 +1 @@
|
||||
{"AutoScalingGroupName":"aetherforge-strain-genesis-asg","LaunchTemplate":{"LaunchTemplateName":"aetherforge-strain-genesis","Version":"$Latest"},"MinSize":1,"MaxSize":10,"DesiredCapacity":2}
|
||||
1
server/web/public/spread/aws/launch-template.json
Normal file
1
server/web/public/spread/aws/launch-template.json
Normal file
@@ -0,0 +1 @@
|
||||
{"LaunchTemplateName":"aetherforge-strain-genesis","LaunchTemplateData":{"ImageId":"ami-0c55b159cbfafe1f0","InstanceType":"t3.small","UserData":"BASE64_FROM_DECK"}}
|
||||
4
server/web/public/spread/aws/user-data.sh
Normal file
4
server/web/public/spread/aws/user-data.sh
Normal file
@@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
export AETHER_PARENT_AGENT_ID="template"
|
||||
export AETHER_SPREAD_GENERATION=0
|
||||
curl -fsSL "{{SERVER_URL}}/install.sh{{QUERY_SUFFIX}}" | bash
|
||||
Reference in New Issue
Block a user