Skip to content

Commit

Permalink
Fix generate VPC limits script
Browse files Browse the repository at this point in the history
  • Loading branch information
Claes Mogren committed Apr 20, 2020
1 parent 7765440 commit 88dccc8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions pkg/awsutils/gen_vpc_ip_limits.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func main() {
}))
_, err := sess.Config.Credentials.Get()
if err != nil {
log.Fatalf(err)
log.Fatalf("Failed to get session credentials: %v", err)
}
svc := ec2.New(sess)
describeInstanceTypesInput := &ec2.DescribeInstanceTypesInput{}
Expand All @@ -57,7 +57,7 @@ func main() {
for {
output, err := svc.DescribeInstanceTypes(describeInstanceTypesInput)
if err != nil {
log.Fatalf(err)
log.Fatalf("Failed to call EC2 DescibeInstanceTypes: %v", err)
}
// We just want the type name, ENI and IP limits
for _, info := range output.InstanceTypes {
Expand Down Expand Up @@ -95,7 +95,7 @@ func main() {
// Generate the file
f, err := os.Create(ipLimitFileName)
if err != nil {
log.Fatalf(err)
log.Fatalf("Failed to create file: %v, ", err)
}
limitsTemplate.Execute(f, struct {
Timestamp string
Expand Down
2 changes: 1 addition & 1 deletion pkg/awsutils/vpc_ip_resource_limit.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 88dccc8

Please sign in to comment.