Skip to content

Commit

Permalink
forgot to page the results
Browse files Browse the repository at this point in the history
  • Loading branch information
cwdcwd committed Dec 21, 2021
1 parent aea2874 commit 25dd571
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 6 deletions.
Binary file added .DS_Store
Binary file not shown.
21 changes: 21 additions & 0 deletions frontend.dev
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
AMPLIFY_DIFF_BACKEND=true
AMPLIFY_GOOGLE_CLIENT_ID=141056236022-f640rlkf9cr2r3a9o8ba58dtteq3cs9s.apps.googleusercontent.com
AMPLIFY_GOOGLE_CLIENT_SECRET=Mx477vqrCkzXq6B8ccWUZWbd
AMPLIFY_NATIVECLIENT_ID=7cp07ec16vfmqg5ac630s7qi0i
AMPLIFY_WEBCLIENT_ID=ihfvv9e562fgcbl1tuea216qc
AWS_APP_ID=d1vkfq768q89l8
BADGR_API_URL=https://api.badgr.io
BADGR_PASSWORD=^4dcnjGkEr@H7v
BADGR_USERNAME=cwd@opentorc.com
USER_BRANCH=develop
AMPLIFY_BACKEND_PULL_ONLY=true
AMPLIFY_IDENTITYPOOL_ID=us-east-1:a07db0fb-2a62-4c81-a46d-4b7126aba2ec
AMPLIFY_USERPOOL_ID=us-east-1_FCiHbcBEu
BADGR_ISSUER_ID=AcaNX4OCQXO603pfaCg0dw
REACT_APP_CLOUDINARY_CLOUDNAME=torc
REACT_APP_GITHUB_PROVIDER_NAME=Github
USERTABLE=User-dns4s6up3nedtbiyf2zninqmm4-dev
USER_POOL_ID=us-east-1_cww7yGrWB
VIRAL_LOOPS_API_KEY=qwT8fHeH9tZg4tnCtTmaEH8WH0A
VIRAL_LOOPS_API_URL=https://app.viral-loops.com/api/v2
REACT_APP_CLOUDINARY_UPLOAD_PRESET=torc-dev
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@opentorc/config-wrapper",
"version": "1.1.2",
"version": "1.1.3",
"description": "config management wrapper",
"main": "./src/index.js",
"bin": {
Expand Down
19 changes: 14 additions & 5 deletions src/lib/awsManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,23 @@ async function getParametersByService(env, service, isEncrypted) {
WithDecryption: isEncrypted
};

const params = await ssm.getParametersByPath(config).promise()


const convertedParams = {}
let nextToken = null

for (let i = 0; i < params.Parameters.length; i++) {
const param = restructureParam(params.Parameters[i])
convertedParams[param.name] = param
}
do {
let params = await ssm.getParametersByPath(config).promise()

for (let i = 0; i < params.Parameters.length; i++) {
const param = restructureParam(params.Parameters[i])
convertedParams[param.name] = param
}

params = await ssm.getParametersByPath(config).promise()
nextToken = params.NextToken
config.NextToken = nextToken
} while (nextToken)

return convertedParams
}
Expand Down

0 comments on commit 25dd571

Please sign in to comment.