Commit 2ee4912
authored
fix: grant testing account access to sandbox layers (#1141)
## Summary
- Sandbox layers were published without any resource-based permissions,
blocking the self-monitoring account (`093468662994`) from accessing dev
layer versions during CDK deployments.
- When `ADD_LAYER_VERSION_PERMISSIONS=0` (sandbox), the publish script
now grants `lambda:GetLayerVersion` to the testing account instead of
leaving the layer inaccessible.
## Test plan
- [ ] Trigger a sandbox layer publish and verify the layer version has a
resource-based policy for `093468662994`
- [ ] Deploy `lmi-dev-agent` stack in self-monitoring repo using
`ENVIRONMENT=dev` (pulls from `layers-dev.json` / sandbox account
`425362996713`)1 parent ecec868 commit 2ee4912
1 file changed
+9
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
62 | 70 | | |
63 | 71 | | |
64 | 72 | | |
| |||
0 commit comments