File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- OUTPUT = main # Referenced as Handler in template.yaml
1+ OUTPUT = bootstrap # Referenced as Handler in template.yaml
22RELEASER = goreleaser
33PACKAGED_TEMPLATE = packaged.yaml
44STACK_NAME := ssosyncv2
@@ -16,25 +16,28 @@ test:
1616go-build :
1717 go build -o $(APP_NAME ) main.go
1818
19- build-SSOSyncFunction :
19+ build-SSOSyncV2Function :
2020 GOOS=linux GOARCH=arm64 go build -o bootstrap main.go
2121 cp ./bootstrap $(ARTIFACTS_DIR ) /.
2222
2323.PHONY : clean
2424clean :
2525 rm -f $(OUTPUT ) $(PACKAGED_TEMPLATE )
26+ rm -rf .aws-sam/
2627
2728.PHONY : install
2829install :
2930 go get ./...
3031
31- main : main.go
32- goreleaser build --snapshot --rm-dist
32+ # Build for Lambda (ARM64 Linux)
33+ .PHONY : lambda-build
34+ lambda-build :
35+ GOOS=linux GOARCH=arm64 go build -o bootstrap main.go
3336
3437# compile the code to run in Lambda (local or real)
3538.PHONY : lambda
3639lambda :
37- $(MAKE ) main
40+ $(MAKE ) lambda-build
3841
3942.PHONY : build
4043build : clean lambda
Original file line number Diff line number Diff line change @@ -12,6 +12,4 @@ Fork of https://github.com/awslabs/ssosync.
1212### Steps
1313
14141 . Sign into the zn-master account with your AWS CLI.
15- 2 . Run ` make package ` to build and upload the build artifact.
16- 3 . Update the ` ssosyncv2 ` CloudFormation stack in the zn-master account using
17- the template file ` packaged.yaml ` on your local machine.
15+ 2 . Run ` make deploy ` to build, upload and deploy your latest changes
Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ Resources:
124124 SSOSyncV2Function :
125125 Type : AWS::Serverless::Function
126126 Properties :
127- Runtime : provided.al2
127+ Runtime : provided.al2023
128128 Handler : bootstrap
129129 Architectures :
130130 - arm64
You can’t perform that action at this time.
0 commit comments