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

.NET CDK 1.8 Secret usage by ApplicationLoadBalancedFargateService leads to System.Reflection.TargetParameterCountException: Parameter count mismatch #4151

Closed
vgribok opened this issue Sep 18, 2019 · 4 comments
Assignees
Labels
@aws-cdk/aws-ecs-patterns Related to ecs-patterns library bug This issue is a bug. language/dotnet Related to .NET bindings p1

Comments

@vgribok
Copy link

vgribok commented Sep 18, 2019

Using .NET CDK ApplicationLoadBalancedFargateServiceProps.Secrets, running into "Amazon.JSII.Runtime.JsiiException
HResult=0x80131500
Message=Resolution error: Resolution error: Resolution error: System.Reflection.TargetParameterCountException: Parameter count mismatch.".
Used manually-created Secret as well as system-create redDatabase.Secret, the result is the same exception.

Workaround

Passing the Secret through FromSecretArn() followed by FromSecretsManager() makes the problem go away.

private static Secret WrapSecretBug(this Construct parent, Secret secret, string secretName)
{
    var smSecret = SecMan.Secret.FromSecretArn(parent, $"{secretName}BugWorkaround", secret.Arn);
   return Secret.FromSecretsManager(smSecret);
}

https://github.com/vgribok/modernization-unicorn-store/blob/858903c982d166701d52b27678d782892a7f3006/infra-as-code/src/Reusable/SdkExtensions.cs#L38

Reproduction Steps

Use ApplicationLoadBalancedFargateService with secrets.

Error Log

Environment

  • CLI Version :1.8
  • Framework Version:.NET Core 2.1
  • OS :Windows 10
  • Language :.NET C#

Other

Amazon.JSII.Runtime.JsiiException
  HResult=0x80131500
  Message=Resolution error: Resolution error: Resolution error: System.Reflection.TargetParameterCountException: Parameter count mismatch.
   at System.Reflection.RuntimeMethodInfo.InvokeArgumentsCheck(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at Amazon.JSII.Runtime.CallbackExtensions.InvokeMethod(InvokeRequest request, IReferenceMap referenceMap)
   at Amazon.JSII.Runtime.CallbackExtensions.InvokeCallback(Callback callback, IReferenceMap referenceMap, IFrameworkToJsiiConverter converter, String& error).
Object creation stack:
  at new LazyBase (C:\Users\joe-user\AppData\Local\Temp\jsii-kernel-XP8akN\node_modules\@aws-cdk\core\lib\lazy.js:30:44)
  at new LazyAny (C:\Users\joe-user\AppData\Local\Temp\jsii-kernel-XP8akN\node_modules\@aws-cdk\core\lib\lazy.js:78:9)
  at Function.anyValue (C:\Users\joe-user\AppData\Local\Temp\jsii-kernel-XP8akN\node_modules\@aws-cdk\core\lib\lazy.js:22:16)
  at new TaskDefinition (C:\Users\joe-user\AppData\Local\Temp\jsii-kernel-XP8akN\node_modules\@aws-cdk\aws-ecs\lib\base\task-definition.js:63:47)
  at new FargateTaskDefinition (C:\Users\joe-user\AppData\Local\Temp\jsii-kernel-XP8akN\node_modules\@aws-cdk\aws-ecs\lib\fargate\fargate-task-definition.js:18:9)
  at new ApplicationLoadBalancedFargateService (C:\Users\joe-user\AppData\Local\Temp\jsii-kernel-XP8akN\node_modules\@aws-cdk\aws-ecs-patterns\lib\fargate\application-load-balanced-fargate-service.js:15:31)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6666:49
  at Kernel._wrapSandboxCode (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.jss:7131:20)
  at Kernel._create (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6666:26)
  at Kernel.create (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6419:21)
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6191:28)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6233:16)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6233:16)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6233:16)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6233:16)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6233:16)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6233:16)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6233:16)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6233:16)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6233:16)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6233:16)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6233:16)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6233:16)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6233:16)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6233:16)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6233:16)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6233:16)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6233:16)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6233:16)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6233:16)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6233:16)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6233:16)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6233:16)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6233:16)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6218:21.
Object creation stack:
  at new Intrinsic (C:\Users\joe-user\AppData\Local\Temp\jsii-kernel-XP8akN\node_modules\@aws-cdk\core\lib\private\intrinsic.js:20:44)
  at new PostResolveToken (C:\Users\joe-user\AppData\Local\Temp\jsii-kernel-XP8akN\node_modules\@aws-cdk\core\lib\util.js:72:9)
  at Object.ignoreEmpty (C:\Users\joe-user\AppData\Local\Temp\jsii-kernel-XP8akN\node_modules\@aws-cdk\core\lib\util.js:32:12)
  at CfnTaskDefinition._toCloudFormation (C:\Users\joe-user\AppData\Local\Temp\jsii-kernel-XP8akN\node_modules\@aws-cdk\core\lib\cfn-resource.js:169:44)
  at C:\Users\joe-user\AppData\Local\Temp\jsii-kernel-XP8akN\node_modules\@aws-cdk\core\lib\cfn-element.js:84:77
  at Object.findTokens (C:\Users\joe-user\AppData\Local\Temp\jsii-kernel-XP8akN\node_modules\@aws-cdk\core\lib\private\resolve.js:126:13)
  at CfnTaskDefinition.prepare (C:\Users\joe-user\AppData\Local\Temp\jsii-kernel-XP8akN\node_modules\@aws-cdk\core\lib\cfn-element.js:84:49)
  at Function.prepare (C:\Users\joe-user\AppData\Local\Temp\jsii-kernel-XP8akN\node_modules\@aws-cdk\core\lib\construct.js:89:27)
  at Function.synth (C:\Users\joe-user\AppData\Local\Temp\jsii-kernel-XP8akN\node_modules\@aws-cdk\core\lib\construct.js:52:14)
  at App.synth (C:\Users\joe-user\AppData\Local\Temp\jsii-kernel-XP8akN\node_modules\@aws-cdk\core\lib\app.js:67:52)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6498:51
  at Kernel._wrapSandboxCode (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:7131:20)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6498:25
  at Kernel._ensureSync (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:7102:20)
  at Kernel.invoke (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6497:26)
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6191:28)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6233:16)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6233:16)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6233:16)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6233:16)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6233:16)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6233:16)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6233:16)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6233:16)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6233:16)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6233:16)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6233:16)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6233:16)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6233:16)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6233:16)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6233:16)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6233:16)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6233:16)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6233:16)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6233:16)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6233:16)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6233:16)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6233:16)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6233:16)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6233:16)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6233:16)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6233:16)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6233:16)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6233:16)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6233:16)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6218:21.
Object creation stack:
  at new Intrinsic (C:\Users\joe-user\AppData\Local\Temp\jsii-kernel-XP8akN\node_modules\@aws-cdk\core\lib\private\intrinsic.js:20:44)
  at new PostResolveToken (C:\Users\joe-user\AppData\Local\Temp\jsii-kernel-XP8akN\node_modules\@aws-cdk\core\lib\util.js:72:9)
  at CfnTaskDefinition._toCloudFormation (C:\Users\joe-user\AppData\Local\Temp\jsii-kernel-XP8akN\node_modules\@aws-cdk\core\lib\cfn-resource.js:167:39)
  at C:\Users\joe-user\AppData\Local\Temp\jsii-kernel-XP8akN\node_modules\@aws-cdk\core\lib\cfn-element.js:84:77
  at Object.findTokens (C:\Users\joe-user\AppData\Local\Temp\jsii-kernel-XP8akN\node_modules\@aws-cdk\core\lib\private\resolve.js:126:13)
  at CfnTaskDefinition.prepare (C:\Users\joe-user\AppData\Local\Temp\jsii-kernel-XP8akN\node_modules\@aws-cdk\core\lib\cfn-element.js:84:49)
  at Function.prepare (C:\Users\joe-user\AppData\Local\Temp\jsii-kernel-XP8akN\node_modules\@aws-cdk\core\lib\construct.js:89:27)
  at Function.synth (C:\Users\joe-user\AppData\Local\Temp\jsii-kernel-XP8akN\node_modules\@aws-cdk\core\lib\construct.js:52:14)
  at App.synth (C:\Users\joe-user\AppData\Local\Temp\jsii-kernel-XP8akN\node_modules\@aws-cdk\core\lib\app.js:67:52)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6498:51
  at Kernel._wrapSandboxCode (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:7131:20)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6498:25
  at Kernel._ensureSync (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:7102:20)
  at Kernel.invoke (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6497:26)
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6191:28)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6233:16)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6233:16)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6233:16)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6233:16)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6233:16)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6233:16)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6233:16)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6233:16)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6233:16)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6233:16)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6233:16)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6233:16)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6233:16)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6233:16)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6233:16)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6233:16)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6233:16)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6233:16)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6233:16)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6233:16)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6233:16)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6233:16)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6233:16)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6233:16)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6233:16)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6233:16)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6233:16)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6233:16)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at KernelHost.processRequest (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6233:16)
  at KernelHost.run (C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:14)
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6137:45
  at C:\Users\joe-user\AppData\Local\Temp\c0zbu0sn.cgk\jsii-runtime.js:6218:21
  Source=Amazon.JSII.Runtime
  StackTrace:
   at Amazon.JSII.Runtime.Services.Client.TryDeserialize[TResponse](String responseJson)
   at Amazon.JSII.Runtime.Services.Client.ReceiveResponse[TResponse]()
   at Amazon.JSII.Runtime.Services.Client.TryDeserialize[TResponse](String responseJson)
   at Amazon.JSII.Runtime.Services.Client.ReceiveResponse[TResponse]()
   at Amazon.JSII.Runtime.Deputy.DeputyBase.<InvokeMethodCore>g__GetResult|18_0[T](<>c__DisplayClass18_0`1& )
   at Amazon.JSII.Runtime.Deputy.DeputyBase.InvokeMethodCore[T](JsiiMethodAttribute methodAttribute, Object[] arguments, Func`3 beginFunc, Func`3 invokeFunc)
   at Amazon.JSII.Runtime.Deputy.DeputyBase.InvokeInstanceMethod[T](Object[] arguments, String methodName)
   at InfraAsCode.Program.Main(String[] args) in C:\!Projects\AWS\Samples\Unicorn-Store\infra-as-code\src\Program.cs:line 16

This is 🐛 Bug Report

@vgribok vgribok added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Sep 18, 2019
@SomayaB SomayaB added language/dotnet Related to .NET bindings @aws-cdk/aws-ecs-patterns Related to ecs-patterns library labels Sep 19, 2019
@rix0rrr rix0rrr removed the needs-triage This issue or PR still needs to be triaged. label Sep 19, 2019
@RomainMuller
Copy link
Contributor

This might be solved by the next release of AWS CDK, as the root cause (lying in jsii) has (hopefully) been addressed.

@piradeepk
Copy link
Contributor

@vgribok are you still experiencing this issue?

@vgribok
Copy link
Author

vgribok commented Oct 23, 2019

Will retest in the beginning of November and let you know.

@rix0rrr rix0rrr added the p1 label Oct 24, 2019
@piradeepk piradeepk added @aws-cdk/aws-ecs-patterns Related to ecs-patterns library and removed @aws-cdk/aws-ecs-patterns Related to ecs-patterns library labels Nov 12, 2019
@vgribok
Copy link
Author

vgribok commented Nov 12, 2019

Re-tested with CDK 1.16.2. No issue, the problem is gone. Closing.
The issue exists up to and including CDK 1.15.

@vgribok vgribok closed this as completed Nov 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-ecs-patterns Related to ecs-patterns library bug This issue is a bug. language/dotnet Related to .NET bindings p1
Projects
None yet
Development

No branches or pull requests

5 participants