- Enter to
cmd/lambda
- Run
sam build
to build container image - Run
sam deploy --guided
to create resources. - Add settings to get heartrate from Fitbit and store
Run cmd/auth/main.go
to authenticate Fitbit API and write tokens to file below:
clientCredentials.json
clientId
clientSecret
accessToken.json
accessToken
refreshToken
Upload these files to root of the S3 bucket created by previous step.