Aws-lambda-dotnet: Publish-AWSPowerShellLambda-Fehler beim Aufrufen von AssumeRole

Erstellt am 13. Aug. 2019  ·  6Kommentare  ·  Quelle: aws/aws-lambda-dotnet

Hallo Team,

Wir verwenden Publish-AWSPowerShellLambda , um die Powershell-Lambda-Funktion mithilfe eines rollenübergreifenden Mechanismus zu verpacken und bereitzustellen.

Eine einfache Bereitstellung mit dem folgenden Befehl:

Publish-AWSPowerShellLambda -ScriptPath ./kube-deploy.ps1 -Name pwsh-kube-deploy -IAMRoleArn arn:aws:iam::123456789012:role/lambda-exe-role -Region ap-southeast-2 -ProfileName profile-one

Aber der Befehl scheitert immer daran, die Rolle zu übernehmen:

Created publish archive (/Users/xyz/projects/pwsh-deploy-lambda/kube-deploy/kube-deploy/bin/Release/netcoreapp2.1/kube-deploy.zip).
Error retrieving configuration for function pwsh-kube-deploy: Error calling AssumeRole for role arn:aws:iam::123456789012:role/Organisation-role
Error publishing PowerShell Lambda Function: 255
CALLSTACK:
Command                     Arguments                                                                                                                                    Location
-------                     ---------                                                                                                                                    --------
_deployProject              {{PowerShellFunctionHandler=$null}, {PowerShellFunctionHandler=$null}, {PowerShellFunctionHandler=$null}, {PowerShellFunctionHandler=$null}} _DeploymentFunctions.ps1: line 192
Publish-AWSPowerShellLambda {{StagingDirectory=./$null}, {StagingDirectory=./$null}, {StagingDirectory=./$null}, {StagingDirectory=./$null}…}                            Publish-AWSPowerShellLambda.ps1: line 326
<ScriptBlock>               {{=$null}, {=$null}, {=$null}, {=$null}}                                                                                                     <No file>
At /Users/xyz/.local/share/powershell/Modules/AWSLambdaPSCore/1.2.0.0/Private/_DeploymentFunctions.ps1:194 char:13
+             throw $msg
+             ~~~~~~~~~~
+ CategoryInfo          : OperationStopped: (Error publishing Po\u2026        <No file>
:String) [], RuntimeException
+ FullyQualifiedErrorId : Error publishing PowerShell Lambda Function: 255
CALLSTACK:
Command                     Arguments                                                                                                                                    Location
-------                     ---------                                                                                                                                    --------
_deployProject              {{PowerShellFunctionHandler=$null}, {PowerShellFunctionHandler=$null}, {PowerShellFunctionHandler=$null}, {PowerShellFunctionHandler=$null}} _DeploymentFunctions.ps1: line 192
Publish-AWSPowerShellLambda {{StagingDirectory=./$null}, {StagingDirectory=./$null}, {StagingDirectory=./$null}, {StagingDirectory=./$null}…}                            Publish-AWSPowerShellLambda.ps1: line 326
<ScriptBlock>               {{=$null}, {=$null}, {=$null}, {=$null}}                                                                                                     <No file>

Ich kann bestätigen, dass das AWS-Profil default und profile-one ist und ich habe -ProfileName kein Problem mit anderen Cmdlets, z. B. Get-EC2Instance

bug closed-for-staleness modullambda-client-lib response-requested

Hilfreichster Kommentar

@Yottster Ich habe schon mfa_serial im Profil. Das Profil funktioniert gut für meinen bash aws-cli-Befehl, nur nicht für die Powershell-Version.

@normj Gut zu hören, dass es eine PR gibt! Im Moment besteht die Problemumgehung darin, das Profil vor der Veröffentlichung auf Set-AWSCredential -ProfileName profile_name

Alle 6 Kommentare

Derselbe Fehler trat auf, als wir anfingen, MFA für eine Rolle zu benötigen.
Wenn das bei Ihnen auch der Fall ist, müssen Sie hinzufügen
mfa_serial = arn:aws:iam::[account]:mfa/[username] zu Ihrem Profil.

https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-role.html#cli -configure-role-mfa

Dies würde bedeuten, dass Get-EC2Instance Moment auch nicht für Sie funktionieren sollte.

@pandaedward Verwenden Sie MFA auch mit Ihrer PR für das zugrunde liegende .NET Core Global Tool, das vom Cmdlet Veröffentlichung verwendet wird. Die PR ist fertig, ich muss nur noch die eigentliche Veröffentlichung machen.

@Yottster Ich habe schon mfa_serial im Profil. Das Profil funktioniert gut für meinen bash aws-cli-Befehl, nur nicht für die Powershell-Version.

@normj Gut zu hören, dass es eine PR gibt! Im Moment besteht die Problemumgehung darin, das Profil vor der Veröffentlichung auf Set-AWSCredential -ProfileName profile_name

@normj gab es Fortschritte beim Hinzufügen der Unterstützung für MFA im .NET Core Global-Tool? Wäre wirklich schön zu haben!

Hallo @pandaedward ,

Guten Tag.

Ich bin den Backlog durchgegangen und bin auf dieses Problem gestoßen. Ich kann das Problem mit den folgenden Schritten nicht reproduzieren:

  1. Profil profile-one in ~/.aws/credentials Datei hinzugefügt:
[profile-one]
aws_access_key_id = XXXXXX
aws_secret_access_key =XXXXXX
aws_session_token = XXXXXX
region=ap-southeast-2
  1. Erstellt das Skript MyFirstPSScript.ps1 in einem Ordner (verwendet ursprünglich den Befehl New-AWSPowerShellLambda -ScriptName MyFirstPSScript -Template Basic ):
# PowerShell script file to be executed as a AWS Lambda function.
# 
# When executing in Lambda the following variables will be predefined.
#   $LambdaInput - A PSObject that contains the Lambda function input data.
#   $LambdaContext - An Amazon.Lambda.Core.ILambdaContext object that contains information about the currently running Lambda environment.
#
# The last item in the PowerShell pipeline will be returned as the result of the Lambda function.
#
# To include PowerShell modules with your Lambda function, like the AWS.Tools.S3 module, add a "#Requires" statement
# indicating the module and version. If using an AWS.Tools.* module the AWS.Tools.Common module is also required.

#Requires -Modules @{ModuleName='AWS.Tools.Common';ModuleVersion='4.1.2.0'}

# Uncomment to send the input event to CloudWatch Logs
Write-Host (ConvertTo-Json -InputObject $LambdaInput -Compress -Depth 5)
$PSVersionTable
  1. Die Rolle arn:aws:iam::<accountid>:role/test-role-505 mit der Richtlinie AWSLambdaExecute .

  2. Ausführen des Befehls Publish-AWSPowerShellLambda -ScriptPath ./MyFirstPSScript.ps1 -Name LambdaTest505 -IAMRoleArn arn:aws:iam::<accountid>:role/test-role-505 -Region ap-southeast-2 -ProfileName profile-one

ERGEBNIS:
Befehl in Schritt 5 erfolgreich ausgeführt. Hier ist das Protokoll:

Staging deployment at /var/folders/5v/klr4lq9j0rd95h4xtmydvgrwqf_g0k/T/MyFirstPSScript
Configuring PowerShell to version 7.0.0
Generating C# project /var/folders/5v/klr4lq9j0rd95h4xtmydvgrwqf_g0k/T/MyFirstPSScript/LambdaTest505.csproj used to create Lambda function bundle.
Generating /var/folders/5v/klr4lq9j0rd95h4xtmydvgrwqf_g0k/T/MyFirstPSScript/Bootstrap.cs to load PowerShell script and required modules in Lambda environment.
Generating aws-lambda-tools-defaults.json config file with default values used when publishing project.
Copying PowerShell script to staging directory
Copying local module AWS.Tools.Common(4.1.2.0) from /usr/local/share/powershell/Modules/AWS.Tools.Common/4.1.2.0
Deploying to AWS Lambda
Restoring .NET Lambda deployment tool
Initiate deployment
Amazon Lambda Tools for .NET Core applications (4.3.0)
Project Home: https://github.com/aws/aws-extensions-for-dotnet-cli, https://github.com/aws/aws-lambda-dotnet

Executing publish command
... invoking 'dotnet publish', working folder '/private/var/folders/5v/klr4lq9j0rd95h4xtmydvgrwqf_g0k/T/MyFirstPSScript/bin/Release/netcoreapp3.1/publish'
... dotnet publish --output "/private/var/folders/5v/klr4lq9j0rd95h4xtmydvgrwqf_g0k/T/MyFirstPSScript/bin/Release/netcoreapp3.1/publish" --configuration "Release" --framework "netcoreapp3.1" /p:GenerateRuntimeConfigurationFiles=true --runtime linux-x64 --self-contained false 
... publish: Microsoft (R) Build Engine version 16.7.0+7fb82e5b2 for .NET
... publish: Copyright (C) Microsoft Corporation. All rights reserved.
... publish:   Determining projects to restore...
... publish:   Restored /private/var/folders/5v/klr4lq9j0rd95h4xtmydvgrwqf_g0k/T/MyFirstPSScript/LambdaTest505.csproj (in 1.4 sec).
... publish:   LambdaTest505 -> /private/var/folders/5v/klr4lq9j0rd95h4xtmydvgrwqf_g0k/T/MyFirstPSScript/bin/Release/netcoreapp3.1/linux-x64/LambdaTest505.dll
... publish:   LambdaTest505 -> /private/var/folders/5v/klr4lq9j0rd95h4xtmydvgrwqf_g0k/T/MyFirstPSScript/bin/Release/netcoreapp3.1/publish/
Changed permissions on published file (chmod +rx Microsoft.PowerShell.Commands.Management.dll).
Changed permissions on published file (chmod +rx Microsoft.Win32.SystemEvents.dll).
Changed permissions on published file (chmod +rx LambdaTest505.pdb).
Changed permissions on published file (chmod +rx System.Management.dll).
Changed permissions on published file (chmod +rx libmi.so).
Changed permissions on published file (chmod +rx System.Security.Permissions.dll).
Changed permissions on published file (chmod +rx System.ServiceModel.Http.dll).
Changed permissions on published file (chmod +rx System.Diagnostics.PerformanceCounter.dll).
Changed permissions on published file (chmod +rx System.Data.OleDb.dll).
Changed permissions on published file (chmod +rx System.ServiceModel.dll).
Changed permissions on published file (chmod +rx System.Security.Cryptography.Xml.dll).
Changed permissions on published file (chmod +rx System.ServiceModel.Primitives.dll).
Changed permissions on published file (chmod +rx Microsoft.CodeAnalysis.CSharp.dll).
Changed permissions on published file (chmod +rx System.Data.Odbc.dll).
Changed permissions on published file (chmod +rx libpsl-native.so).
Changed permissions on published file (chmod +rx LambdaTest505.runtimeconfig.json).
Changed permissions on published file (chmod +rx System.Security.Cryptography.Pkcs.dll).
Changed permissions on published file (chmod +rx System.Data.SqlClient.dll).
Changed permissions on published file (chmod +rx Microsoft.PowerShell.SDK.dll).
Changed permissions on published file (chmod +rx System.Windows.Extensions.dll).
Changed permissions on published file (chmod +rx LambdaTest505.dll).
Changed permissions on published file (chmod +rx Microsoft.Win32.Registry.AccessControl.dll).
Changed permissions on published file (chmod +rx Microsoft.PowerShell.Security.dll).
Changed permissions on published file (chmod +rx System.DirectoryServices.dll).
Changed permissions on published file (chmod +rx NJsonSchema.dll).
Changed permissions on published file (chmod +rx System.DirectoryServices.Protocols.dll).
Changed permissions on published file (chmod +rx System.ServiceProcess.ServiceController.dll).
Changed permissions on published file (chmod +rx MyFirstPSScript.ps1).
Changed permissions on published file (chmod +rx System.ServiceModel.Security.dll).
Changed permissions on published file (chmod +rx Microsoft.PowerShell.ConsoleHost.dll).
Changed permissions on published file (chmod +rx Markdig.Signed.dll).
Changed permissions on published file (chmod +rx System.IO.Ports.dll).
Changed permissions on published file (chmod +rx System.IO.Packaging.dll).
Changed permissions on published file (chmod +rx Microsoft.CodeAnalysis.dll).
Changed permissions on published file (chmod +rx Newtonsoft.Json.dll).
Changed permissions on published file (chmod +rx System.Private.ServiceModel.dll).
Changed permissions on published file (chmod +rx Amazon.Lambda.Core.dll).
Changed permissions on published file (chmod +rx System.Security.Cryptography.ProtectedData.dll).
Changed permissions on published file (chmod +rx System.Runtime.Caching.dll).
Changed permissions on published file (chmod +rx System.Threading.AccessControl.dll).
Changed permissions on published file (chmod +rx System.ServiceModel.NetTcp.dll).
Changed permissions on published file (chmod +rx LambdaTest505.deps.json).
Changed permissions on published file (chmod +rx Microsoft.Management.Infrastructure.dll).
Changed permissions on published file (chmod +rx System.ServiceModel.Syndication.dll).
Changed permissions on published file (chmod +rx Amazon.Lambda.PowerShellHost.dll).
Changed permissions on published file (chmod +rx System.Management.Automation.dll).
Changed permissions on published file (chmod +rx System.Configuration.ConfigurationManager.dll).
Changed permissions on published file (chmod +rx System.Diagnostics.EventLog.dll).
Changed permissions on published file (chmod +rx System.ComponentModel.Composition.dll).
Changed permissions on published file (chmod +rx System.IO.Ports.Native.so).
Changed permissions on published file (chmod +rx System.DirectoryServices.AccountManagement.dll).
Changed permissions on published file (chmod +rx System.CodeDom.dll).
Changed permissions on published file (chmod +rx Microsoft.PowerShell.Commands.Utility.dll).
Changed permissions on published file (chmod +rx Microsoft.PowerShell.MarkdownRender.dll).
Changed permissions on published file (chmod +rx libpsrpclient.so).
Changed permissions on published file (chmod +rx System.ComponentModel.Composition.Registration.dll).
Changed permissions on published file (chmod +rx System.Reflection.Context.dll).
Changed permissions on published file (chmod +rx System.ServiceModel.Duplex.dll).
Changed permissions on published file (chmod +rx Microsoft.ApplicationInsights.dll).
Changed permissions on published file (chmod +rx Namotion.Reflection.dll).
Changed permissions on published file (chmod +rx System.Drawing.Common.dll).
Changed permissions on published file (chmod +rx System.Net.Http.WinHttpHandler.dll).
Zipping publish folder /private/var/folders/5v/klr4lq9j0rd95h4xtmydvgrwqf_g0k/T/MyFirstPSScript/bin/Release/netcoreapp3.1/publish to /private/var/folders/5v/klr4lq9j0rd95h4xtmydvgrwqf_g0k/T/MyFirstPSScript/bin/Release/netcoreapp3.1/MyFirstPSScript.zip
... zipping:   adding: Microsoft.PowerShell.Commands.Management.dll (deflated 66%)
... zipping:   adding: Microsoft.Win32.SystemEvents.dll (deflated 49%)
... zipping:   adding: LambdaTest505.pdb (deflated 42%)
... zipping:   adding: System.Management.dll (deflated 62%)
... zipping:   adding: libmi.so (deflated 61%)
... zipping:   adding: System.Security.Permissions.dll (deflated 58%)
... zipping:   adding: System.ServiceModel.Http.dll (deflated 46%)
... zipping:   adding: System.Diagnostics.PerformanceCounter.dll (deflated 60%)
... zipping:   adding: System.Data.OleDb.dll (deflated 72%)
... zipping:   adding: System.ServiceModel.dll (deflated 56%)
... zipping:   adding: System.Security.Cryptography.Xml.dll (deflated 61%)
... zipping:   adding: System.ServiceModel.Primitives.dll (deflated 54%)
... zipping:   adding: Microsoft.CodeAnalysis.CSharp.dll (deflated 63%)
... zipping:   adding: System.Data.Odbc.dll (deflated 60%)
... zipping:   adding: libpsl-native.so (deflated 69%)
... zipping:   adding: LambdaTest505.runtimeconfig.json (deflated 23%)
... zipping:   adding: System.Security.Cryptography.Pkcs.dll (deflated 59%)
... zipping:   adding: System.Data.SqlClient.dll (deflated 64%)
... zipping:   adding: Microsoft.PowerShell.SDK.dll (deflated 75%)
... zipping:   adding: System.Windows.Extensions.dll (deflated 52%)
... zipping:   adding: LambdaTest505.dll (deflated 60%)
... zipping:   adding: Microsoft.Win32.Registry.AccessControl.dll (deflated 45%)
... zipping:   adding: Microsoft.PowerShell.Security.dll (deflated 72%)
... zipping:   adding: System.DirectoryServices.dll (deflated 65%)
... zipping:   adding: NJsonSchema.dll (deflated 62%)
... zipping:   adding: System.DirectoryServices.Protocols.dll (deflated 61%)
... zipping:   adding: System.ServiceProcess.ServiceController.dll (deflated 53%)
... zipping:   adding: MyFirstPSScript.ps1 (deflated 47%)
... zipping:   adding: System.ServiceModel.Security.dll (deflated 48%)
... zipping:   adding: Microsoft.PowerShell.ConsoleHost.dll (deflated 67%)
... zipping:   adding: Markdig.Signed.dll (deflated 62%)
... zipping:   adding: System.IO.Ports.dll (deflated 55%)
... zipping:   adding: System.IO.Packaging.dll (deflated 59%)
... zipping:   adding: Microsoft.CodeAnalysis.dll (deflated 60%)
... zipping:   adding: Newtonsoft.Json.dll (deflated 62%)
... zipping:   adding: System.Private.ServiceModel.dll (deflated 66%)
... zipping:   adding: Amazon.Lambda.Core.dll (deflated 46%)
... zipping:   adding: System.Security.Cryptography.ProtectedData.dll (deflated 46%)
... zipping:   adding: System.Runtime.Caching.dll (deflated 53%)
... zipping:   adding: System.Threading.AccessControl.dll (deflated 51%)
... zipping:   adding: System.ServiceModel.NetTcp.dll (deflated 46%)
... zipping:   adding: LambdaTest505.deps.json (deflated 82%)
... zipping:   adding: Microsoft.Management.Infrastructure.dll (deflated 64%)
... zipping:   adding: System.ServiceModel.Syndication.dll (deflated 58%)
... zipping:   adding: Amazon.Lambda.PowerShellHost.dll (deflated 46%)
... zipping:   adding: System.Management.Automation.dll (deflated 69%)
... zipping:   adding: System.Configuration.ConfigurationManager.dll (deflated 60%)
... zipping:   adding: System.Diagnostics.EventLog.dll (deflated 57%)
... zipping:   adding: System.ComponentModel.Composition.dll (deflated 59%)
... zipping:   adding: System.IO.Ports.Native.so (deflated 68%)
... zipping:   adding: System.DirectoryServices.AccountManagement.dll (deflated 66%)
... zipping:   adding: System.CodeDom.dll (deflated 62%)
... zipping:   adding: Microsoft.PowerShell.Commands.Utility.dll (deflated 67%)
... zipping:   adding: Microsoft.PowerShell.MarkdownRender.dll (deflated 73%)
... zipping:   adding: libpsrpclient.so (deflated 64%)
... zipping:   adding: System.ComponentModel.Composition.Registration.dll (deflated 55%)
... zipping:   adding: System.Reflection.Context.dll (deflated 57%)
... zipping:   adding: System.ServiceModel.Duplex.dll (deflated 44%)
... zipping:   adding: Microsoft.ApplicationInsights.dll (deflated 60%)
... zipping:   adding: Namotion.Reflection.dll (deflated 58%)
... zipping:   adding: System.Drawing.Common.dll (deflated 59%)
... zipping:   adding: System.Net.Http.WinHttpHandler.dll (deflated 52%)
... zipping:   adding: zh-Hans/Microsoft.CodeAnalysis.resources.dll (deflated 54%)
... zipping:   adding: zh-Hans/Microsoft.CodeAnalysis.CSharp.resources.dll (deflated 69%)
... zipping:   adding: zh-Hant/Microsoft.CodeAnalysis.resources.dll (deflated 54%)
... zipping:   adding: zh-Hant/Microsoft.CodeAnalysis.CSharp.resources.dll (deflated 69%)
... zipping:   adding: pl/Microsoft.CodeAnalysis.resources.dll (deflated 56%)
... zipping:   adding: pl/Microsoft.CodeAnalysis.CSharp.resources.dll (deflated 72%)
... zipping:   adding: ref/Microsoft.CSharp.dll (deflated 45%)
... zipping:   adding: ref/System.Web.dll (deflated 43%)
... zipping:   adding: ref/System.Diagnostics.Contracts.dll (deflated 48%)
... zipping:   adding: ref/System.ServiceModel.Web.dll (deflated 46%)
... zipping:   adding: ref/System.Diagnostics.FileVersionInfo.dll (deflated 46%)
... zipping:   adding: ref/System.Runtime.Intrinsics.dll (deflated 67%)
... zipping:   adding: ref/System.Net.Security.dll (deflated 60%)
... zipping:   adding: ref/System.Xml.XPath.XDocument.dll (deflated 45%)
... zipping:   adding: ref/System.Xml.Linq.dll (deflated 46%)
... zipping:   adding: ref/System.Net.WebSockets.Client.dll (deflated 45%)
... zipping:   adding: ref/System.IO.dll (deflated 45%)
... zipping:   adding: ref/System.Dynamic.Runtime.dll (deflated 46%)
... zipping:   adding: ref/System.Runtime.Serialization.Xml.dll (deflated 56%)
... zipping:   adding: ref/System.Security.Principal.dll (deflated 43%)
... zipping:   adding: ref/System.Reflection.dll (deflated 46%)
... zipping:   adding: ref/System.Threading.ThreadPool.dll (deflated 46%)
... zipping:   adding: ref/System.Net.dll (deflated 46%)
... zipping:   adding: ref/System.IO.Compression.FileSystem.dll (deflated 44%)
... zipping:   adding: ref/System.Reflection.Metadata.dll (deflated 58%)
... zipping:   adding: ref/System.ComponentModel.EventBasedAsync.dll (deflated 46%)
... zipping:   adding: ref/System.Diagnostics.DiagnosticSource.dll (deflated 47%)
... zipping:   adding: ref/System.Runtime.CompilerServices.VisualC.dll (deflated 45%)
... zipping:   adding: ref/System.Threading.dll (deflated 51%)
... zipping:   adding: ref/netstandard.dll (deflated 68%)
... zipping:   adding: ref/Microsoft.VisualBasic.dll (deflated 47%)
... zipping:   adding: ref/System.IO.UnmanagedMemoryStream.dll (deflated 43%)
... zipping:   adding: ref/System.Xml.XPath.dll (deflated 44%)
... zipping:   adding: ref/System.Xml.XmlDocument.dll (deflated 44%)
... zipping:   adding: ref/System.Configuration.dll (deflated 50%)
... zipping:   adding: ref/System.Resources.Writer.dll (deflated 44%)
... zipping:   adding: ref/System.Console.dll (deflated 47%)
... zipping:   adding: ref/System.Net.Sockets.dll (deflated 53%)
... zipping:   adding: ref/System.Net.Http.dll (deflated 54%)
... zipping:   adding: ref/System.Web.HttpUtility.dll (deflated 45%)
... zipping:   adding: ref/System.Text.Encoding.Extensions.dll (deflated 50%)
... zipping:   adding: ref/System.Net.NetworkInformation.dll (deflated 53%)
... zipping:   adding: ref/Microsoft.VisualBasic.Core.dll (deflated 54%)
... zipping:   adding: ref/System.Security.Claims.dll (deflated 60%)
... zipping:   adding: ref/System.ComponentModel.Primitives.dll (deflated 48%)
... zipping:   adding: ref/System.IO.FileSystem.DriveInfo.dll (deflated 43%)
... zipping:   adding: ref/System.IO.Compression.Brotli.dll (deflated 45%)
... zipping:   adding: ref/System.Security.Cryptography.X509Certificates.dll (deflated 53%)
... zipping:   adding: ref/System.Reflection.Primitives.dll (deflated 47%)
... zipping:   adding: ref/System.Runtime.Numerics.dll (deflated 50%)
... zipping:   adding: ref/System.IO.FileSystem.Watcher.dll (deflated 46%)
... zipping:   adding: ref/System.Diagnostics.TraceSource.dll (deflated 50%)
... zipping:   adding: ref/System.Reflection.Emit.Lightweight.dll (deflated 46%)
... zipping:   adding: ref/System.Text.Encoding.CodePages.dll (deflated 43%)
... zipping:   adding: ref/System.Linq.Expressions.dll (deflated 58%)
... zipping:   adding: ref/System.Threading.Timer.dll (deflated 44%)
... zipping:   adding: ref/System.Runtime.InteropServices.dll (deflated 55%)
... zipping:   adding: ref/System.IO.Pipes.dll (deflated 48%)
... zipping:   adding: ref/System.Net.HttpListener.dll (deflated 48%)
... zipping:   adding: ref/System.Text.RegularExpressions.dll (deflated 53%)
... zipping:   adding: ref/System.Runtime.Serialization.dll (deflated 48%)
... zipping:   adding: ref/System.IO.Compression.dll (deflated 48%)
... zipping:   adding: ref/System.Threading.Tasks.Parallel.dll (deflated 48%)
... zipping:   adding: ref/WindowsBase.dll (deflated 46%)
... zipping:   adding: ref/System.Data.DataSetExtensions.dll (deflated 44%)
... zipping:   adding: ref/System.Collections.NonGeneric.dll (deflated 50%)
... zipping:   adding: ref/System.Collections.Concurrent.dll (deflated 52%)
... zipping:   adding: ref/System.Threading.Overlapped.dll (deflated 46%)
... zipping:   adding: ref/System.Text.Encodings.Web.dll (deflated 50%)
... zipping:   adding: ref/System.Xml.Serialization.dll (deflated 46%)
... zipping:   adding: ref/System.Runtime.Handles.dll (deflated 44%)
... zipping:   adding: ref/System.Net.WebProxy.dll (deflated 45%)
... zipping:   adding: ref/System.Text.Json.dll (deflated 53%)
... zipping:   adding: ref/System.ObjectModel.dll (deflated 54%)
... zipping:   adding: ref/System.Net.WebHeaderCollection.dll (deflated 45%)
... zipping:   adding: ref/System.Runtime.InteropServices.RuntimeInformation.dll (deflated 44%)
... zipping:   adding: ref/System.ComponentModel.TypeConverter.dll (deflated 59%)
... zipping:   adding: ref/System.Net.Mail.dll (deflated 50%)
... zipping:   adding: ref/System.Threading.Tasks.Extensions.dll (deflated 45%)
... zipping:   adding: ref/System.Linq.Parallel.dll (deflated 56%)
... zipping:   adding: ref/System.Xml.XDocument.dll (deflated 53%)
... zipping:   adding: ref/System.Security.SecureString.dll (deflated 44%)
... zipping:   adding: ref/System.ComponentModel.Annotations.dll (deflated 51%)
... zipping:   adding: ref/System.IO.FileSystem.Primitives.dll (deflated 44%)
... zipping:   adding: ref/mscorlib.dll (deflated 65%)
... zipping:   adding: ref/System.Security.Cryptography.Primitives.dll (deflated 47%)
... zipping:   adding: ref/System.IO.Compression.ZipFile.dll (deflated 45%)
... zipping:   adding: ref/System.Windows.dll (deflated 44%)
... zipping:   adding: ref/System.Runtime.InteropServices.WindowsRuntime.dll (deflated 46%)
... zipping:   adding: ref/System.Linq.Queryable.dll (deflated 54%)
... zipping:   adding: ref/System.Resources.ResourceManager.dll (deflated 47%)
... zipping:   adding: ref/System.Resources.Reader.dll (deflated 44%)
... zipping:   adding: ref/System.Collections.dll (deflated 56%)
... zipping:   adding: ref/System.Reflection.Emit.ILGeneration.dll (deflated 48%)
... zipping:   adding: ref/System.Data.Common.dll (deflated 60%)
... zipping:   adding: ref/System.Net.NameResolution.dll (deflated 46%)
... zipping:   adding: ref/System.ComponentModel.dll (deflated 44%)
... zipping:   adding: ref/System.Runtime.Loader.dll (deflated 46%)
... zipping:   adding: ref/System.Xml.ReaderWriter.dll (deflated 59%)
... zipping:   adding: ref/System.Threading.Tasks.dll (deflated 48%)
... zipping:   adding: ref/System.Diagnostics.Tracing.dll (deflated 48%)
... zipping:   adding: ref/System.AppContext.dll (deflated 44%)
... zipping:   adding: ref/System.Buffers.dll (deflated 44%)
... zipping:   adding: ref/System.Security.Cryptography.Csp.dll (deflated 50%)
... zipping:   adding: ref/System.Diagnostics.TextWriterTraceListener.dll (deflated 46%)
... zipping:   adding: ref/System.Text.Encoding.dll (deflated 45%)
... zipping:   adding: ref/System.Transactions.dll (deflated 47%)
... zipping:   adding: ref/System.Threading.Tasks.Dataflow.dll (deflated 55%)
... zipping:   adding: ref/System.IO.MemoryMappedFiles.dll (deflated 46%)
... zipping:   adding: ref/System.Runtime.CompilerServices.Unsafe.dll (deflated 45%)
... zipping:   adding: ref/System.Globalization.dll (deflated 43%)
... zipping:   adding: ref/System.Collections.Specialized.dll (deflated 50%)
... zipping:   adding: ref/System.ValueTuple.dll (deflated 44%)
... zipping:   adding: ref/System.Runtime.dll (deflated 64%)
... zipping:   adding: ref/System.Net.ServicePoint.dll (deflated 47%)
... zipping:   adding: ref/System.Xml.XmlSerializer.dll (deflated 55%)
... zipping:   adding: ref/System.Reflection.Extensions.dll (deflated 44%)
... zipping:   adding: ref/System.Globalization.Extensions.dll (deflated 44%)
... zipping:   adding: ref/System.Runtime.Extensions.dll (deflated 58%)
... zipping:   adding: ref/System.Data.dll (deflated 55%)
... zipping:   adding: ref/System.dll (deflated 64%)
... zipping:   adding: ref/System.Security.Cryptography.Encoding.dll (deflated 46%)
... zipping:   adding: ref/System.IO.IsolatedStorage.dll (deflated 49%)
... zipping:   adding: ref/System.Reflection.TypeExtensions.dll (deflated 47%)
... zipping:   adding: ref/System.Globalization.Calendars.dll (deflated 45%)
... zipping:   adding: ref/System.Net.Requests.dll (deflated 52%)
... zipping:   adding: ref/System.Net.WebSockets.dll (deflated 45%)
... zipping:   adding: ref/System.Reflection.Emit.dll (deflated 55%)
... zipping:   adding: ref/System.IO.FileSystem.dll (deflated 52%)
... zipping:   adding: ref/System.Runtime.Serialization.Json.dll (deflated 48%)
... zipping:   adding: ref/System.Security.Cryptography.Algorithms.dll (deflated 55%)
... zipping:   adding: ref/System.Threading.Thread.dll (deflated 47%)
... zipping:   adding: ref/System.Numerics.Vectors.dll (deflated 56%)
... zipping:   adding: ref/System.ServiceProcess.dll (deflated 46%)
... zipping:   adding: ref/System.Linq.dll (deflated 55%)
... zipping:   adding: ref/System.Diagnostics.Process.dll (deflated 50%)
... zipping:   adding: ref/System.Numerics.dll (deflated 46%)
... zipping:   adding: ref/System.Xml.dll (deflated 55%)
... zipping:   adding: ref/System.Diagnostics.Tools.dll (deflated 44%)
... zipping:   adding: ref/System.Collections.Immutable.dll (deflated 60%)
... zipping:   adding: ref/System.Diagnostics.Debug.dll (deflated 48%)
... zipping:   adding: ref/Microsoft.Win32.Primitives.dll (deflated 44%)
... zipping:   adding: ref/System.Runtime.Serialization.Primitives.dll (deflated 48%)
... zipping:   adding: ref/System.Transactions.Local.dll (deflated 49%)
... zipping:   adding: ref/System.Drawing.Primitives.dll (deflated 51%)
... zipping:   adding: ref/System.Drawing.dll (deflated 50%)
... zipping:   adding: ref/System.Runtime.Serialization.Formatters.dll (deflated 49%)
... zipping:   adding: ref/System.Net.Ping.dll (deflated 45%)
... zipping:   adding: ref/System.Diagnostics.StackTrace.dll (deflated 47%)
... zipping:   adding: ref/System.Security.dll (deflated 48%)
... zipping:   adding: ref/System.Reflection.DispatchProxy.dll (deflated 43%)
... zipping:   adding: ref/System.Core.dll (deflated 53%)
... zipping:   adding: ref/System.Net.WebClient.dll (deflated 54%)
... zipping:   adding: ref/System.ComponentModel.DataAnnotations.dll (deflated 46%)
... zipping:   adding: ref/System.Memory.dll (deflated 56%)
... zipping:   adding: ref/System.Net.Primitives.dll (deflated 48%)
... zipping:   adding: ref/System.Threading.Channels.dll (deflated 45%)
... zipping:   adding: ja/Microsoft.CodeAnalysis.resources.dll (deflated 59%)
... zipping:   adding: ja/Microsoft.CodeAnalysis.CSharp.resources.dll (deflated 75%)
... zipping:   adding: it/Microsoft.CodeAnalysis.resources.dll (deflated 57%)
... zipping:   adding: it/Microsoft.CodeAnalysis.CSharp.resources.dll (deflated 73%)
... zipping:   adding: cs/Microsoft.CodeAnalysis.resources.dll (deflated 55%)
... zipping:   adding: cs/Microsoft.CodeAnalysis.CSharp.resources.dll (deflated 71%)
... zipping:   adding: ru/Microsoft.CodeAnalysis.resources.dll (deflated 61%)
... zipping:   adding: ru/Microsoft.CodeAnalysis.CSharp.resources.dll (deflated 76%)
... zipping:   adding: pt-BR/Microsoft.CodeAnalysis.resources.dll (deflated 56%)
... zipping:   adding: pt-BR/Microsoft.CodeAnalysis.CSharp.resources.dll (deflated 72%)
... zipping:   adding: de/Microsoft.CodeAnalysis.resources.dll (deflated 56%)
... zipping:   adding: de/Microsoft.CodeAnalysis.CSharp.resources.dll (deflated 72%)
... zipping:   adding: ko/Microsoft.CodeAnalysis.resources.dll (deflated 58%)
... zipping:   adding: ko/Microsoft.CodeAnalysis.CSharp.resources.dll (deflated 74%)
... zipping:   adding: fr/Microsoft.CodeAnalysis.resources.dll (deflated 57%)
... zipping:   adding: fr/Microsoft.CodeAnalysis.CSharp.resources.dll (deflated 73%)
... zipping:   adding: es/Microsoft.CodeAnalysis.resources.dll (deflated 56%)
... zipping:   adding: es/Microsoft.CodeAnalysis.CSharp.resources.dll (deflated 72%)
... zipping:   adding: tr/Microsoft.CodeAnalysis.resources.dll (deflated 56%)
... zipping:   adding: tr/Microsoft.CodeAnalysis.CSharp.resources.dll (deflated 72%)
... zipping:   adding: Modules/Microsoft.PowerShell.Utility/Microsoft.PowerShell.Utility.psd1 (deflated 45%)
... zipping:   adding: Modules/Microsoft.PowerShell.Management/Microsoft.PowerShell.Management.psd1 (deflated 45%)
... zipping:   adding: Modules/Microsoft.PowerShell.Host/Microsoft.PowerShell.Host.psd1 (deflated 42%)
... zipping:   adding: Modules/Microsoft.WSMan.Management/WSMan.format.ps1xml (deflated 62%)
... zipping:   adding: Modules/Microsoft.WSMan.Management/Microsoft.WSMan.Management.psd1 (deflated 42%)
... zipping:   adding: Modules/CimCmdlets/CimCmdlets.psd1 (deflated 44%)
... zipping:   adding: Modules/Microsoft.PowerShell.Diagnostics/Microsoft.PowerShell.Diagnostics.psd1 (deflated 42%)
... zipping:   adding: Modules/Microsoft.PowerShell.Diagnostics/Event.format.ps1xml (deflated 58%)
... zipping:   adding: Modules/Microsoft.PowerShell.Diagnostics/Diagnostics.format.ps1xml (deflated 54%)
... zipping:   adding: Modules/Microsoft.PowerShell.Diagnostics/GetEvent.types.ps1xml (deflated 55%)
... zipping:   adding: Modules/Microsoft.PowerShell.Security/Microsoft.PowerShell.Security.psd1 (deflated 42%)
... zipping:   adding: Modules/PSDiagnostics/PSDiagnostics.psm1 (deflated 59%)
... zipping:   adding: Modules/PSDiagnostics/PSDiagnostics.psd1 (deflated 42%)
... zipping:   adding: Modules/AWS.Tools.Common/4.1.2.0/AWS.Tools.Common.psd1 (deflated 52%)
... zipping:   adding: Modules/AWS.Tools.Common/4.1.2.0/AWS.Tools.Common.Completers.psm1 (deflated 49%)
... zipping:   adding: Modules/AWS.Tools.Common/4.1.2.0/AWSSDK.Core.dll (deflated 72%)
... zipping:   adding: Modules/AWS.Tools.Common/4.1.2.0/AWS.Tools.Common.dll (deflated 34%)
... zipping:   adding: Modules/AWS.Tools.Common/4.1.2.0/AWS.Tools.Common.Aliases.psm1 (deflated 46%)
... zipping:   adding: Modules/AWS.Tools.Common/4.1.2.0/AWS.Tools.Common.Format.ps1xml (deflated 93%)
... zipping:   adding: Modules/AWS.Tools.Common/4.1.2.0/AWS.Tools.Common.dll-Help.xml (deflated 91%)
... zipping:   adding: Modules/AWS.Tools.Common/4.1.2.0/AWSSDK.SecurityToken.dll (deflated 61%)
... zipping:   adding: Modules/AWS.Tools.Common/4.1.2.0/AWS.Tools.Common.XML (deflated 84%)
... zipping:   adding: Modules/AWS.Tools.Common/4.1.2.0/ImportGuard.ps1 (deflated 52%)
... zipping:   adding: runtimes/win/lib/netcoreapp3.1/Modules/Microsoft.PowerShell.Utility/Microsoft.PowerShell.Utility.psd1 (deflated 45%)
... zipping:   adding: runtimes/win/lib/netcoreapp3.1/Modules/Microsoft.PowerShell.Management/Microsoft.PowerShell.Management.psd1 (deflated 45%)
... zipping:   adding: runtimes/win/lib/netcoreapp3.1/Modules/Microsoft.PowerShell.Host/Microsoft.PowerShell.Host.psd1 (deflated 42%)
... zipping:   adding: runtimes/win/lib/netcoreapp3.1/Modules/Microsoft.WSMan.Management/WSMan.format.ps1xml (deflated 62%)
... zipping:   adding: runtimes/win/lib/netcoreapp3.1/Modules/Microsoft.WSMan.Management/Microsoft.WSMan.Management.psd1 (deflated 42%)
... zipping:   adding: runtimes/win/lib/netcoreapp3.1/Modules/CimCmdlets/CimCmdlets.psd1 (deflated 44%)
... zipping:   adding: runtimes/win/lib/netcoreapp3.1/Modules/Microsoft.PowerShell.Diagnostics/Microsoft.PowerShell.Diagnostics.psd1 (deflated 42%)
... zipping:   adding: runtimes/win/lib/netcoreapp3.1/Modules/Microsoft.PowerShell.Diagnostics/Event.format.ps1xml (deflated 58%)
... zipping:   adding: runtimes/win/lib/netcoreapp3.1/Modules/Microsoft.PowerShell.Diagnostics/Diagnostics.format.ps1xml (deflated 54%)
... zipping:   adding: runtimes/win/lib/netcoreapp3.1/Modules/Microsoft.PowerShell.Diagnostics/GetEvent.types.ps1xml (deflated 55%)
... zipping:   adding: runtimes/win/lib/netcoreapp3.1/Modules/Microsoft.PowerShell.Security/Microsoft.PowerShell.Security.psd1 (deflated 42%)
... zipping:   adding: runtimes/win/lib/netcoreapp3.1/Modules/PSDiagnostics/PSDiagnostics.psm1 (deflated 59%)
... zipping:   adding: runtimes/win/lib/netcoreapp3.1/Modules/PSDiagnostics/PSDiagnostics.psd1 (deflated 42%)
... zipping:   adding: runtimes/unix/lib/netcoreapp3.1/Modules/Microsoft.PowerShell.Utility/Microsoft.PowerShell.Utility.psd1 (deflated 59%)
... zipping:   adding: runtimes/unix/lib/netcoreapp3.1/Modules/Microsoft.PowerShell.Management/Microsoft.PowerShell.Management.psd1 (deflated 60%)
... zipping:   adding: runtimes/unix/lib/netcoreapp3.1/Modules/Microsoft.PowerShell.Host/Microsoft.PowerShell.Host.psd1 (deflated 35%)
... zipping:   adding: runtimes/unix/lib/netcoreapp3.1/Modules/Microsoft.PowerShell.Security/Microsoft.PowerShell.Security.psd1 (deflated 39%)
Created publish archive (/private/var/folders/5v/klr4lq9j0rd95h4xtmydvgrwqf_g0k/T/MyFirstPSScript/bin/Release/netcoreapp3.1/MyFirstPSScript.zip).
Creating new Lambda function LambdaTest505
New Lambda function created

Screen Shot 2020-10-19 at 2 18 38 PM

Bitte bestätigen Sie, ob dies in der neuesten Version von AWS Powershell Tools/Module für Sie funktioniert und bestätigen Sie, ob dieses Problem geschlossen werden konnte.

Vielen Dank,
Ashish

Dieses Problem hat seit 2 Wochen keine Antwort erhalten. Wenn Sie dieses Problem offen halten möchten, hinterlassen Sie einfach unten einen Kommentar und das automatische Schließen wird abgebrochen.

War diese Seite hilfreich?
0 / 5 - 0 Bewertungen