Skip to content

Commit

Permalink
Added aws-session-manager-plugin.
Browse files Browse the repository at this point in the history
  • Loading branch information
skyzyx committed Apr 11, 2024
1 parent 4a8aba2 commit 3879c21
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/aws-session-manager-plugin/download.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,14 @@ echo "==========================================================================
git clone "${CLONE_REPO}" --branch "${PKG_VER}.0" --single-branch /tmp/__BUILD__
cd /tmp/__BUILD__

go mod init session-manager-plugin
go mod tidy
go get github.com/twinj/uuid@990eabe

# linux/amd64 (Intel64)
# https://github.com/aws/session-manager-plugin/blob/e12e3d7a44af6321f3c12d156df7f60b596f6628/makefile#L87-L88
GOOS=linux GOARCH=amd64 go build -ldflags "-s -w" -o /usr/local/bin/session-manager-plugin_amd64 -v src/sessionmanagerplugin-main/main.go
GOARCH=amd64 go build -mod=readonly -ldflags "-s -w" -o /usr/local/bin/session-manager-plugin_amd64 -v src/sessionmanagerplugin-main/main.go

# linux/arm64 (ARM64)
# https://github.com/aws/session-manager-plugin/blob/e12e3d7a44af6321f3c12d156df7f60b596f6628/makefile#L109-L110
GOOS=linux GOARCH=arm64 go build -ldflags "-s -w -extldflags=-Wl,-z,now,-z,relro,-z,defs" -o /usr/local/bin/session-manager-plugin_arm64 -v src/sessionmanagerplugin-main/main.go
GOARCH=arm64 go build -mod=readonly -ldflags "-s -w -extldflags=-Wl,-z,now,-z,relro,-z,defs" -o /usr/local/bin/session-manager-plugin_arm64 -v src/sessionmanagerplugin-main/main.go

0 comments on commit 3879c21

Please sign in to comment.