Skip to content

Commit 95b9520

Browse files
author
Andreas Wachs
authored
Merge pull request #9 from 0north/feature/ple-3602-go-1x-runtime-deprecated-ssosyncv2-2
Feature/ple 3602 go 1x runtime deprecated ssosyncv2 2
2 parents e781e43 + 4b709f1 commit 95b9520

3 files changed

Lines changed: 10 additions & 9 deletions

File tree

Makefile

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
OUTPUT = main # Referenced as Handler in template.yaml
1+
OUTPUT = bootstrap # Referenced as Handler in template.yaml
22
RELEASER = goreleaser
33
PACKAGED_TEMPLATE = packaged.yaml
44
STACK_NAME := ssosyncv2
@@ -16,25 +16,28 @@ test:
1616
go-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
2424
clean:
2525
rm -f $(OUTPUT) $(PACKAGED_TEMPLATE)
26+
rm -rf .aws-sam/
2627

2728
.PHONY: install
2829
install:
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
3639
lambda:
37-
$(MAKE) main
40+
$(MAKE) lambda-build
3841

3942
.PHONY: build
4043
build: clean lambda

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,4 @@ Fork of https://github.com/awslabs/ssosync.
1212
### Steps
1313

1414
1. 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

template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)