Skip to content

Commit

Permalink
Document updated AWS permissions requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
AustinSiu committed Dec 7, 2021
1 parent a1faedd commit 73459ec
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build ignore
// +build ignore

/*
Expand All @@ -21,10 +22,11 @@ package main
import (
"flag"
"html/template"
"k8s.io/autoscaler/cluster-autoscaler/cloudprovider/aws"
klog "k8s.io/klog/v2"
"os"
"time"

"k8s.io/autoscaler/cluster-autoscaler/cloudprovider/aws"
klog "k8s.io/klog/v2"
)

var packageTemplate = template.Must(template.New("").Parse(`/*
Expand Down Expand Up @@ -73,6 +75,8 @@ var InstanceTypes = map[string]*InstanceType{
}
`))

// Please note that the IAM user running the static instance types generator must be
// a non-anonymous user with privileges to call the DescribeInstanceTypes EC2 API.
func main() {
var region = flag.String("region", "", "aws region you'd like to generate instances from."+
"It will populate list from all regions if region is not specified.")
Expand Down

0 comments on commit 73459ec

Please sign in to comment.