Skip to content

Conversation

@shepazon
Copy link
Contributor

@shepazon shepazon commented Jan 3, 2025

This pull request contains a complete implementation of the "basics" scenario example for the AWS SDK for Swift. To use it:

  1. Pull the package dependencies (swift package update) to be sure the Lambda runtime module is available.
  2. Build the increment lambda function (cd increment && swift build).
  3. Archive the increment lambda function for use as a Lambda function: swift package archive --allow-network-connections docker. Take note of the Zip file's path when it's displayed once archiving is complete.
  4. Build the calculator lambda function (cd ../calculator && swift build).
  5. Archive it for use as a Lambda function: swift package archive --allow-network-connections docker. Take note of the created ZIp file's path.
  6. Build the main program in the lambda-basics directory.
  7. Run the main program with the command swift run lambda-basics --incpath <path-of-increment-archive> --calcpath <path-of-calculator-archive>.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@shepazon shepazon self-assigned this Jan 3, 2025
@shepazon shepazon added Swift This issue relates to the AWS SDK for Swift Task A general update to the code base for language clarification, missing actions, tests, etc. labels Jan 3, 2025
@shepazon shepazon requested a review from DavidSouther January 3, 2025 17:03
Copy link
Contributor

@DavidSouther DavidSouther left a comment

Choose a reason for hiding this comment

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

Looks solid overall, just a couple nits and questions. Great use of custom content in the running the example part of the README.

@shepazon shepazon added the On Call Review needed This work needs an on-call review label Jan 21, 2025
@DavidSouther DavidSouther added On Call Review complete On call review complete and removed On Call Review needed This work needs an on-call review labels Jan 22, 2025
@DavidSouther DavidSouther merged commit 419f054 into awsdocs:main Jan 22, 2025
19 checks passed
DavidSouther pushed a commit to prithugoswami/aws-doc-sdk-examples that referenced this pull request Jan 22, 2025
* Full scenario example for Lambda in Swift
This PR includes a complete implementation of the "basics" scenario example
for the AWS SDK for Swift.
@shepazon shepazon deleted the lambda-basics branch September 9, 2025 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

On Call Review complete On call review complete Swift This issue relates to the AWS SDK for Swift Task A general update to the code base for language clarification, missing actions, tests, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants