INNER CODE UNIT · Go
main
inlets/inlets-operator · main.go:43
func main() {
infra := &InfraConfig{
TunnelConfig: TunnelConfig{},
}
flag.StringVar(&infra.Provider, "provider", "", "Your infrastructure provider - 'equinix-metal', 'digitalocean', 'scaleway', 'gce', 'linode', 'azure', 'ec2' or 'hetzner'")
flag.StringVar(&infra.Region, "region", "", "The region to provision hosts into")
flag.StringVar(&infra.Zone, "zone", "us-central1-a", "The zone where the exit node is to be provisioned")
flag.StringVar(&infra.AccessKey, "access-key", "", "The access key for your infrastructure provider")
flag.StringVar(&infra.AccessKeyFile, "access-key-file", "", "Read the access key for your infrastructure provider from a file (recommended)")
flag.StringVar(&infra.SecretKey, "secret-key", "", "The secret key if using scaleway or ec2 as the provider")
flag.StringVar(&infra.SecretKeyFile, "secret-key-file", "", "Read the access key for your infrastructure provider from a file (recommended)")
flag.StringVar(&infra.SubscriptionID, "subscription-id", "", "The azure Subscription ID")
flag.StringVar(&infra.OrganizationID, "organization-id", "", "The organization id if using scaleway as the provider")
flag.StringVar(&infra.VpcID, "vpc-id", "", "The VPC ID to create the exit-server in (ec2)")
flag.StringVar(&infra.SubnetID, "subnet-id", "", "The Subnet ID where the exit-server should be placed (ec2)")
flag.StringVar(&infra.ProjectID, "project-id", "", "The project ID if using equinix-metal, or gce as the provider")
flag.StringVar(&infra.TunnelConfig.License, "license", "", "Supply a license for use with inlets-pro")