{{- if or .Launched .Terminated}} {{- end}} Instance Factory {{template "nav"}}

Instance Factory

This tool launches EC2 instances that administrators can use to work in the cloud. Alternatively, the Credential Factory mints short-lived credentials with the same privileges as these EC2 instances that administrators can use (more) safely on their laptops.

{{- if .Error}}

{{.Error}}

{{- end}}

Launch a new EC2 instance in: {{- range $i, $region := .Regions}} {{- end}}

{{- $csrf := .CSRF}} {{- $launched := .Launched}} {{- $terminate := .Terminate}} {{- $terminated := .Terminated}} {{- range .Instances}} {{- end}}
SSH command Availability Zone Instance Type Launch Time State  
{{if (ToString .PublicDnsName)}}ssh -A {{.PublicDnsName}}{{else}} {{end}} {{.Placement.AvailabilityZone}} {{.InstanceType}} {{.LaunchTime}} {{.State.Name}} {{if eq .State.Name "running"}}{{if eq (ToString .InstanceId) $terminate}}
{{else}}Terminate{{end}}{{else}} {{end}}

By default, Instance Factory uses the Amazon Linux 2 AMI and so the SSH user is ec2-user. Configure ssh(1) to use it by pasting the following into ~/.ssh/config:

Host ec2-*.amazonaws.com
    User ec2-user

If your organization has customized the Instance Factory using a launch template, you may need to adjust this SSH configuration to your organization’s standards by e.g. changing the username.