aws-greengrass-provisioner
aws-greengrass-provisioner copied to clipboard
Duplicate localSecret error when adding existing lambda functions with same secret
When 2 existing lambda functions want to affiliate the same secret the following error message is displayed:
[ERROR] BasicGreengrassHelper: Duplicate local secrets manager secrets defined ["arn:aws:secretsmanager:us-east-1:271117399250:secret:odin-greengrass-eink_functionality-kindle-account-1EL1TW", "arn:aws:secretsmanager:us-east-1:271117399250:secret:odin-greengrass-eink_functionality-kindle-device-8Xb727", "arn:aws:secretsmanager:us-east-1:271117399250:secret:odin-greengrass-eink_functionality-kindle-twitter-account-U84KR9", "arn:aws:secretsmanager:us-east-1:271117399250:secret:odin-greengrass-eink_functionality-kindle-twitter-consumer-Lpt04O", "arn:aws:secretsmanager:us-east-1:271117399250:secret:odin-greengrass-eink_functionality-kindle-twitter-id-3wBOjP", "arn:aws:secretsmanager:us-east-1:271117399250:secret:odin-greengrass-eink_functionality-kindle-wifi-an4MbQ"]. Greengrass will not accept this configuration.
[ERROR] AwsGreengrassProvisioner: Invalid resource configuration
Expected result: GGP should identify that a localSecretResource has already been added and affiliated to Lambda A. Then, it should not try to add it again, but only affiliate it to Lambda B as well.
Oops, missed this one. Let's review offline and then I can update the ticket.