Skip to content

Commit e588d9d

Browse files
committed
chore: wip
1 parent d4e526f commit e588d9d

File tree

3 files changed

+787
-376
lines changed

3 files changed

+787
-376
lines changed

storage/framework/defaults/views/dashboard/cloud/index.vue

Lines changed: 1 addition & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -155,21 +155,11 @@ const serverTypes: ServerType[] = [
155155
]
156156
157157
const bunVersions = [
158+
'v1.2.4',
158159
'v1.2.3',
159160
'v1.2.2',
160161
'v1.2.1',
161162
'v1.2.0',
162-
'v1.1.20',
163-
'v1.1.15',
164-
'v1.1.10',
165-
'v1.1.5',
166-
'v1.1.0',
167-
'v1.0.25',
168-
'v1.0.20',
169-
'v1.0.15',
170-
'v1.0.10',
171-
'v1.0.5',
172-
'v1.0.0',
173163
]
174164
175165
// State
@@ -610,45 +600,6 @@ onMounted(() => {
610600
}
611601
})
612602
613-
// CDK code generation
614-
const cdkCode = computed(() => {
615-
return `import * as cdk from 'aws-cdk-lib'
616-
import * as ec2 from 'aws-cdk-lib/aws-ec2'
617-
import * as elbv2 from 'aws-cdk-lib/aws-elasticloadbalancingv2'
618-
619-
export class StacksInfrastructureStack extends cdk.Stack {
620-
constructor(scope: cdk.App, id: string, props?: cdk.StackProps) {
621-
super(scope, id, props)
622-
623-
// VPC
624-
const vpc = new ec2.Vpc(this, 'StacksVPC', {
625-
maxAzs: 2,
626-
})
627-
628-
${cloudConfig.value.useLoadBalancer ? `
629-
// Load Balancer
630-
const lb = new elbv2.ApplicationLoadBalancer(this, 'StacksLB', {
631-
vpc,
632-
internetFacing: true,
633-
})` : ''}
634-
635-
${Object.entries(cloudConfig.value.servers).map(([key, server]) => `
636-
// ${server.name}
637-
const ${key}Instance = new ec2.Instance(this, '${key}Instance', {
638-
vpc,
639-
instanceType: ec2.InstanceType.of(
640-
ec2.InstanceClass.T3,
641-
ec2.InstanceSize.MICRO
642-
),
643-
machineImage: new ec2.GenericLinuxImage({
644-
'us-east-1': '${server.serverOS}',
645-
}),
646-
userData: ec2.UserData.custom(\`${server.userData}\`),
647-
})`).join('\n')}
648-
}
649-
}`
650-
})
651-
652603
// Methods
653604
const addServer = () => {
654605
const id = Object.keys(cloudConfig.value.servers).length + 1

0 commit comments

Comments
 (0)