Skip to content

Commit

Permalink
Change runtime go1.x to provided.al2
Browse files Browse the repository at this point in the history
  • Loading branch information
nightfury1204 committed Nov 17, 2023
1 parent f6449ec commit e91a7ac
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions provider/aws/formation/rack.json
Original file line number Diff line number Diff line change
Expand Up @@ -2135,7 +2135,7 @@
"Handler": "handler",
"MemorySize": "128",
"Role": { "Fn::GetAtt": [ "ApiRole", "Arn" ] },
"Runtime": "go1.x",
"Runtime": "provided.al2",
"Timeout": "60"
}
},
Expand Down Expand Up @@ -2257,7 +2257,7 @@
"Handler": "handler",
"MemorySize": "128",
"Role": { "Fn::GetAtt": [ "InstancesLifecycleHandlerRole", "Arn" ] },
"Runtime": "go1.x",
"Runtime": "provided.al2",
"Timeout": "300"
}
},
Expand Down
6 changes: 3 additions & 3 deletions provider/aws/lambda/autoscale/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ TEST_FUNCTION:=
all: lambda.zip

lambda.zip: handler
zip -r lambda.zip handler
zip -r lambda.zip bootstrap

handler: *.go
GOOS=linux GOARCH=amd64 go build -o handler
GOOS=linux GOARCH=amd64 go build -o bootstrap

clean:
rm -f lambda.zip handler
rm -f lambda.zip bootstrap

release: lambda.zip
aws s3 cp lambda.zip s3://convox/release/$(VERSION)/lambda/autoscale.zip --acl public-read
Expand Down
6 changes: 3 additions & 3 deletions provider/aws/lambda/lifecycle/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
all: lambda.zip

clean:
rm -f lambda.zip handler
rm -f lambda.zip bootstrap

release: lambda.zip
aws s3 cp lambda.zip s3://convox/release/$(VERSION)/lambda/lifecycle.zip --acl public-read
Expand All @@ -18,7 +18,7 @@ upload: lambda.zip
bin/upload $(RACK)

handler: *.go
GOOS=linux GOARCH=amd64 go build -o handler
GOOS=linux GOARCH=amd64 go build -o bootstrap

lambda.zip: handler
zip -r lambda.zip handler
zip -r lambda.zip bootstrap
6 changes: 3 additions & 3 deletions provider/aws/lambda/syslog/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
all: lambda.zip

lambda.zip: handler
zip -r lambda.zip handler
zip -r lambda.zip bootstrap

handler: *.go
GOOS=linux GOARCH=amd64 go build -o handler
GOOS=linux GOARCH=amd64 go build -o bootstrap

clean:
rm -f lambda.zip handler
rm -f lambda.zip bootstrap

release: lambda.zip
aws s3 cp lambda.zip s3://convox/release/$(VERSION)/lambda/syslog.zip --acl public-read
Expand Down
2 changes: 1 addition & 1 deletion provider/aws/templates/resource/syslog.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
},
"Handler": "handler",
"Role": { "Fn::GetAtt": [ "Role", "Arn" ] },
"Runtime": "go1.x",
"Runtime": "provided.al2",
"Timeout": "25",
"VpcConfig": { "Fn::If": [ "Private",
{ "SecurityGroupIds": [ { "Ref": "SecurityGroup" } ], "SubnetIds": { "Ref": "SubnetsPrivate" } },
Expand Down

0 comments on commit e91a7ac

Please sign in to comment.