Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#15: Update to use aws sdk v3 #16

Merged
merged 2 commits into from
Apr 12, 2024
Merged

#15: Update to use aws sdk v3 #16

merged 2 commits into from
Apr 12, 2024

Conversation

callmekatootie
Copy link
Contributor

#15

Also contains

  • eslint fixes
  • github action version updates

@callmekatootie callmekatootie changed the base branch from master to develop April 11, 2024 16:59
}

params = await ssm.getParametersByPath(config).promise()
nextToken = params.NextToken
config.NextToken = nextToken
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure why here we invoked getParametersByPath() once again - we could have simply used the token from the previous call. Pointing it out just in case it gets missed in the review and if you think there's a valid reason for it.

I have removed the duplicate call for now. Tests seem to pass

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch.

const name = param.Name.split('/')
const svc = name[3]
svcs[svc] = svcs[svc] ? svcs[svc] + 1 : 1
}

params = await ssm.getParametersByPath(config).promise()
nextToken = params.NextToken
config.NextToken = nextToken
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same issue as the previous comment here as well

@callmekatootie callmekatootie mentioned this pull request Apr 11, 2024
@lbelling lbelling changed the title Issue 15 - Update to use aws sdk v3 #15: Update to use aws sdk v3 Apr 11, 2024
@lbelling lbelling requested a review from danieljse April 11, 2024 17:20
}

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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch.

@lbelling lbelling merged commit 5a16fd4 into develop Apr 12, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants