Commit 54a755c
committed
byovpc/aws: Fix reference to agent policy name
Depending on what is used for the variable `common_prefix` this
reference to the policy may or may not be accurate. (It works as is
only if the default value for `common_prefix` is used.)
If you use something else, e.g. `byovpc-redpanda-` there will be an
error like:
```
An error occurred while checking IAM Instance Profiles.
operation error IAM: GetPolicy,
https response error StatusCode: 403,
RequestID: xxx,
api error AccessDenied: User: xxx is not authorized to perform: iam:GetPolicy
on resource: policy arn:aws:iam::xxx:policy/byovpc-redpanda-agent-2-xxx
because no identity-based policy allows the iam:GetPolicy action
```1 parent e04d4a8 commit 54a755c
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
337 | 337 | | |
338 | 338 | | |
339 | 339 | | |
340 | | - | |
| 340 | + | |
341 | 341 | | |
342 | 342 | | |
343 | 343 | | |
| |||
0 commit comments