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:
15
server/web/src/help/launchTemplateExport.test.ts
Normal file
15
server/web/src/help/launchTemplateExport.test.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { describe, it, expect } from 'vitest';
|
||||
import { LAUNCH_TEMPLATE_FILES, launchTemplateZipName } from './launchTemplateExport';
|
||||
|
||||
describe('launchTemplateExport', () => {
|
||||
it('lists standalone AWS artifact files', () => {
|
||||
expect(LAUNCH_TEMPLATE_FILES.map((f) => f.label)).toEqual([
|
||||
'launch-template.json', 'user-data.sh', 'asg-example.json',
|
||||
]);
|
||||
});
|
||||
|
||||
it('maps campaign slug to zip filename', () => {
|
||||
expect(launchTemplateZipName('AWS Wave 1')).toBe('aetherforge-launch-template-aws-wave-1.zip');
|
||||
expect(launchTemplateZipName()).toBe('aetherforge-launch-template-genesis.zip');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user