.NET CDK 1.8 Secret usage by ApplicationLoadBalancedFargateService leads to System.Reflection.TargetParameterCountException: Parameter count mismatch #4151
Labels
@aws-cdk/aws-ecs-patterns
Related to ecs-patterns library
bug
This issue is a bug.
language/dotnet
Related to .NET bindings
p1
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-createredDatabase.Secret
, the result is the same exception.Workaround
Passing the
Secret
throughFromSecretArn()
followed byFromSecretsManager()
makes the problem go away.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
Other
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: