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

Lambda basics scenario example for Swift #7182

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

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.

This PR includes a complete implementation of the "basics" scenario example
for the AWS SDK for Swift.
@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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

1 participant