Skip to content

[Feature]: Allow Customizing dstack Gateway AWS EC2 Instance Type #3382

@nikita-toffee-ai

Description

@nikita-toffee-ai

Problem

At the moment, t3.micro instance is hard-coded:

        response = ec2_resource.create_instances(
            **aws_resources.create_instances_struct(
                disk_size=10,
                image_id=aws_resources.get_gateway_image_id(ec2_client),
                instance_type="t3.micro",
                iam_instance_profile=None,
                user_data=get_gateway_user_data(
                    configuration.ssh_key_pub, router=configuration.router
                ),
                tags=tags,
                security_group_id=security_group_id,
                spot=False,
                subnet_id=subnet_id,
                allocate_public_ip=configuration.public_ip,
            )
        )

Solution

Could we make that field customizable via a DSTACK_SERVER_* environment variables, defaulting to t3.micro?

Workaround

No response

Would you like to help us implement this feature by sending a PR?

Yes

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions