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

Added support for arm64, shared runtimes. #6

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

andyhopp
Copy link

Issue #, if available:

Description of changes:
Added support for arm64, shared runtimes.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Copy link
Contributor

@austoonz austoonz left a comment

Choose a reason for hiding this comment

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

Thanks for submitting Andy. Just a few small adjustments if you don't mind.

@@ -0,0 +1,137 @@
<Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04">
Copy link
Contributor

Choose a reason for hiding this comment

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

Instead of embedding this module, can the readme be adjusted to note how to download it into the correct folder as part of the build process?

Eg, to run Save-Module -Name WriteAscii -Path ./modules/ in the relevant location?

I primarily ask this because 1.2.2 is already out of date, and I don't want our team to monitor this module for bugs or potential security implications in the future.

Find-Module -Name WriteAscii | Select-Object Name,Version

Name       Version
----       -------
WriteAscii 1.2.2.1

From a command prompt, invoke the function. Amend the `--function-name` and `--region` values for your function. This should return `"StatusCode": 200` for a successful invoke.

````
aws lambda invoke --function-name "DemoAsciiArtFunction-6W3bn1znmW8G" --region us-east-1 invoke-result
Copy link
Contributor

Choose a reason for hiding this comment

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

Might need to note how to find the function name, as I'd imagine the generated part of of this name will not be the same for each customer or region where this is deployed.

PWSH_ARCHITECTURE ?= x64
#x64 or #arm64
PWSH_VERSION ?= 7.2.7

Copy link
Contributor

Choose a reason for hiding this comment

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

I think we need either one of two changes here, as building the runtime from the powershell-runtime folder fails with this change as PWSH_ARCHITECTURE is no longer defined.

  1. Keep PWSH_ARCHITECTURE = x64 here as a default for building PwshRuntimeLayer (the current layer name in the powershell-runtime/template.yml file), or
  2. Modify powershell-runtime/template.yml to include two layers, one for x64 and one for arm64.

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.

2 participants