aws-greengrass-provisioner icon indicating copy to clipboard operation
aws-greengrass-provisioner copied to clipboard

Duplicate localSecret error when adding existing lambda functions with same secret

Open ruggero-balteri opened this issue 4 years ago • 1 comments

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.

ruggero-balteri avatar May 18 '20 15:05 ruggero-balteri

Oops, missed this one. Let's review offline and then I can update the ticket.

timmattison avatar Jun 10 '20 22:06 timmattison