-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#3487] Add permission to lambda:GetFunction to ApiRole
Issue https://github.com/convox/issues-private/issues/185. AWS recommends to configure the services roles to allow access to get current state of a lambda function. As part of the new lambda-states to all functions. CustomTopic: ![image](https://user-images.githubusercontent.com/8239709/148234496-3cfb62fb-83c6-49ed-bfa9-35c45ca3c8e4.png) InstancesLifecycleHandler: ![image](https://user-images.githubusercontent.com/8239709/148234629-7343b5ad-024c-408b-a549-392c625789ff.png) ApiRole: ![image](https://user-images.githubusercontent.com/8239709/148234891-4762a62f-9716-4896-97bd-4a2dca891986.png)
- Loading branch information
Showing
100 changed files
with
37,862 additions
and
1,865 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,28 @@ | ||
.PHONY: all build clean package package-deps package-export package-gopath release | ||
.PHONY: all build package release | ||
|
||
pkg_darwin = pkg/convox-darwin-10.12-amd64 | ||
pkg_darwin_arm64 = pkg/convox-darwin-10.12-arm64 | ||
pkg_darwin = pkg/convox-darwin-amd64 | ||
pkg_darwin_arm64 = pkg/convox-darwin-arm64 | ||
pkg_linux = pkg/convox-linux-amd64 | ||
pkg_linux_arm64 = pkg/convox-linux-amd64 | ||
pkg_windows = pkg/convox-windows-4.0-amd64.exe | ||
|
||
sources = $(shell find . -name '*.go') | ||
pkg_linux_arm64 = pkg/convox-linux-arm64 | ||
pkg_windows = pkg/convox-windows-amd64.exe | ||
|
||
all: build | ||
|
||
build: | ||
go install ./... | ||
|
||
clean: | ||
rm -f pkg/convox-* | ||
|
||
package: package-deps package-gopath $(pkg_darwin) $(pkg_linux) $(pkg_windows) package-export | ||
|
||
package-deps: | ||
go install github.com/crazy-max/[email protected] | ||
mkdir -p pkg | ||
|
||
# copy finished packages out if running inside a container | ||
package-export: | ||
if [ -f /.dockerenv ]; then mkdir -p pkg && docker run -v $(GOPATH):/gopath -i ubuntu tar czv /gopath/src/github.com/convox/rack/cmd/convox/pkg | tar xzv -C pkg --strip-components 8; fi | ||
|
||
# copy gopath in if running inside a container | ||
package-gopath: | ||
if [ -f /.dockerenv ]; then tar cz $(GOPATH) | docker run -v $(GOPATH):/gopath -i ubuntu tar xz -C /gopath --strip-components 2; fi | ||
package: | ||
mkdir -p pkg/ | ||
export CGO_ENABLED=0 | ||
env GOOS=linux GOARCH=amd64 go build -ldflags "-X main.version=$(VERSION)" -o $(pkg_linux) | ||
env GOOS=linux GOARCH=arm64 go build -ldflags "-X main.version=$(VERSION)" -o $(pkg_linux_arm64) | ||
env GOOS=darwin GOARCH=amd64 go build -ldflags "-X main.version=$(VERSION)" -o $(pkg_darwin) | ||
env GOOS=darwin GOARCH=arm64 go build -ldflags "-X main.version=$(VERSION)" -o $(pkg_darwin_arm64) | ||
env GOOS=windows GOARCH=amd64 go build -ldflags "-X main.version=$(VERSION)" -o $(pkg_windows) | ||
|
||
release: package | ||
aws s3 cp $(pkg_darwin) s3://convox/release/$(VERSION)/cli/darwin/convox --acl public-read | ||
aws s3 cp $(pkg_darwin_arm64) s3://convox/release/$(VERSION)/cli/darwin/convox-arm64 --acl public-read | ||
aws s3 cp $(pkg_linux) s3://convox/release/$(VERSION)/cli/linux/convox --acl public-read | ||
aws s3 cp $(pkg_linux_arm64) s3://convox/release/$(VERSION)/cli/linux/convox-arm64 --acl public-read | ||
aws s3 cp $(pkg_windows) s3://convox/release/$(VERSION)/cli/windows/convox.exe --acl public-read | ||
|
||
|
||
$(pkg_darwin): $(sources) | ||
# cd to root folder because we need go.mod | ||
cd ../.. && $(GOPATH)/bin/xgo -branch $(shell git rev-parse HEAD) -pkg cmd/convox -out cmd/convox/pkg/convox -go 1.16.x -targets 'darwin/amd64,darwin/arm64' -ldflags "-X main.version=$(VERSION)" . | ||
|
||
$(pkg_linux): $(sources) | ||
# cd to root folder because we need go.mod | ||
cd ../.. && $(GOPATH)/bin/xgo -branch $(shell git rev-parse HEAD) -pkg cmd/convox -out cmd/convox/pkg/convox -go 1.16.x -targets 'linux/amd64,linux/arm64' -ldflags "-X main.version=$(VERSION)" . | ||
|
||
$(pkg_windows): $(sources) | ||
# cd to root folder because we need go.mod | ||
cd ../../ && $(GOPATH)/bin/xgo -branch $(shell git rev-parse HEAD) -pkg cmd/convox -out cmd/convox/pkg/convox -go 1.16.x -targets 'windows/amd64' -ldflags "-X main.version=$(VERSION)" . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.