Skip to content
This repository has been archived by the owner on Oct 18, 2023. It is now read-only.

mocking up how using it in tests might work #2

Merged
merged 11 commits into from
Jul 10, 2019
Merged

Conversation

wheresrhys
Copy link
Contributor

@wheresrhys wheresrhys commented Jul 9, 2019

Why

Our previous copied and pasted, living in the repo version of this library had roles etc hardcoded in it, rather than reading from serverless.yaml. So they woudl work in tests, whereas this library does not

What

Exposes a static method - assumeRole that can be used to do the sts stuff and return a promise

Todo (maybe)

  • Provide a way for this static method to default to reading from serverless.yaml as having to pass in variables every time is tedious and not DRY

@wheresrhys wheresrhys merged commit 815a729 into master Jul 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant