I'm writing AWS Fargate task definition in python as in https://docs.aws.amazon.com/cdk/api/latest/python/aws_cdk.aws_ecs/FargateTaskDefinition.html?highlight=fargatetaskdefinition
I'd like to add database secrets to Fargate, but I got confused on the secrets (Optional[Mapping[str, Secret]])
as it's not clear how the secrets should be passed to this parameter. I tried using dictionary but got jsii.errors.JSIIError: Expected object reference
.
Has anyone used this, and could tell me how the 'Mapping' works?
Thanks!