pluto-lang / pluto

Pluto provides a unified programming interface that allows you to seamlessly tap into cloud capabilities and develop your cloud and AI applications.
https://pluto-lang.vercel.app
Apache License 2.0
87 stars 8 forks source link

feat(sdk): remove runtime dependency for AWS account ID retrieval #319

Closed jianzs closed 3 months ago

jianzs commented 3 months ago

The previous AWS queue resource type implementation required the AWS_ACCOUNT_ID environment variable to be set by the runtime handler. The setting only occurred upon receiving a request, causing a panic if the queue resource type was used globally without the AWS_ACCOUNT_ID being set.

This commit eliminates the need for runtime setting of AWS_ACCOUNT_ID by utilizing the sts.GetCallerIdentity API to retrieve the account ID.

1. Does this PR affect any open issues?(Y/N) and add issue references (e.g. "fix #123", "re #123".):

2. What is the scope of this PR (e.g. component or file name):

4. Are there any breaking changes?(Y/N) and describe the breaking changes(e.g. more details, motivations or doc link):

5. Are there test cases for these changes?(Y/N) select and add more details, references or doc links:

changeset-bot[bot] commented 3 months ago

🦋 Changeset detected

Latest commit: d32f9f04e93bf84a871901df2f8e655fb1bdd8c8

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 4 packages | Name | Type | | ---------------------------- | ----- | | @plutolang/pluto | Patch | | @plutolang/cli | Patch | | @plutolang/simulator-adapter | Patch | | @plutolang/pluto-infra | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR