Commit 09c8c82
committed
Fix bug (and tests) in
Per AWS documentation:
https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-overview-of-managing-access.html#sqs-resource-and-operations
The ARN format for SQS resources is:
`arn:aws:sqs:region:account_id:queue_name`
The existing `sqs_policy_statement` function (and tests) *wrongly*
assumed that a `resource_type` needed to be provided to create the
following format:
`arn:partition:service:region:account-id:resource-type:resource-id`
This commit fixes the function (and tests) to remove the unnecessary
`resource_type` that was being added to the ARN.sqs_policy_statement function1 parent ebb40ed commit 09c8c82
File tree
2 files changed
+9
-8
lines changed- src/aibs_informatics_cdk_lib/common/aws
- test/aibs_informatics_cdk_lib/common/aws
2 files changed
+9
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
482 | 482 | | |
483 | 483 | | |
484 | 484 | | |
485 | | - | |
486 | 485 | | |
487 | 486 | | |
488 | 487 | | |
Lines changed: 9 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
| 60 | + | |
59 | 61 | | |
60 | 62 | | |
61 | 63 | | |
| |||
66 | 68 | | |
67 | 69 | | |
68 | 70 | | |
69 | | - | |
| 71 | + | |
70 | 72 | | |
71 | | - | |
| 73 | + | |
72 | 74 | | |
73 | 75 | | |
74 | 76 | | |
| |||
77 | 79 | | |
78 | 80 | | |
79 | 81 | | |
80 | | - | |
| 82 | + | |
81 | 83 | | |
82 | | - | |
| 84 | + | |
83 | 85 | | |
84 | 86 | | |
85 | 87 | | |
| |||
88 | 90 | | |
89 | 91 | | |
90 | 92 | | |
91 | | - | |
| 93 | + | |
92 | 94 | | |
93 | | - | |
| 95 | + | |
94 | 96 | | |
95 | 97 | | |
96 | 98 | | |
| |||
104 | 106 | | |
105 | 107 | | |
106 | 108 | | |
107 | | - | |
| 109 | + | |
0 commit comments