Mohamed Amine ALOUINI
7e539155e1
fix(ec2): report the calling account as resource owner ( #3814 )
...
EC2 froze every resource's owner to the configured default account at
construction time, so OwnerId came back as 000000000000 no matter which
account the request resolved to. Per-account isolation itself worked, but
the reported owner contradicted what STS returns for the same credentials
and what SQS embeds in its ARNs.
The visible consequence was DescribeImages --owners: the filter was honored
but matched against the frozen value, so filtering on the account actually
in use returned nothing, and the common Terraform pattern of pinning an AMI
to a known owner account failed with "Your query returned no results".
Resolve the owner per request through callerAccountId() instead, for the
ownerId fields, the generated ARNs and the self owner alias. Callers outside
a request scope (startup seeding, internal provisioning) still fall back to
the configured default account.
Closes #3775
2026-09-17 13:36:30 -04:00
..
2026-09-06 10:55:17 -04:00
2026-09-06 15:49:12 -05:00
2026-09-09 22:03:21 -04:00
2026-09-09 22:23:07 -04:00
2026-09-17 00:18:49 -04:00
2026-09-16 22:31:48 -04:00
2026-09-11 17:55:48 -04:00
2026-08-30 14:40:40 -05:00
2026-09-16 18:00:01 -04:00
2026-09-17 10:54:20 -04:00
2026-09-12 18:37:36 -05:00
2026-05-10 11:53:31 -05:00
2026-09-14 23:02:04 -04:00
2026-05-15 22:55:11 -05:00
2026-09-12 11:31:20 -04:00
2026-09-15 07:44:22 -04:00
2026-09-05 15:17:39 -04:00
2026-09-11 20:36:45 -04:00
2026-09-06 23:54:37 -04:00
2026-05-14 20:29:37 -05:00
2026-09-06 15:28:43 -05:00
2026-09-15 07:44:45 -04:00
2026-08-29 14:33:00 -04:00
2026-08-17 00:00:49 -05:00
2026-06-07 10:44:37 -05:00
2026-09-08 19:38:13 -05:00
2026-09-09 22:37:45 -05:00
2026-09-16 22:01:34 -04:00
2026-05-10 11:53:31 -05:00
2026-05-10 11:53:31 -05:00
2026-08-30 14:44:08 -05:00
2026-09-14 10:11:15 -04:00
2026-09-17 09:00:11 -04:00
2026-09-04 12:16:18 -04:00
2026-08-30 14:44:12 -05:00
2026-09-15 14:48:11 -04:00
2026-08-30 15:15:49 -04:00
2026-09-07 21:49:39 -05:00
2026-09-05 20:19:56 -04:00
2026-05-15 22:55:11 -05:00
2026-09-11 22:30:02 -04:00
2026-09-07 18:31:48 -04:00
2026-08-28 17:55:30 -04:00
2026-09-07 22:25:24 -05:00
2026-09-17 13:36:30 -04:00
2026-09-14 12:07:40 -04:00
2026-09-15 14:30:49 -04:00
2026-09-01 10:00:34 -04:00
2026-09-17 10:09:21 -04:00
2026-06-25 19:16:51 -05:00
2026-09-04 10:51:05 -04:00
2026-08-31 19:05:07 -04:00
2026-08-31 19:05:07 -04:00
2026-08-20 00:08:21 -04:00
2026-07-06 21:02:04 -05:00
2026-08-18 09:30:25 -04:00
2026-09-13 00:09:47 -04:00
2026-08-21 00:09:04 -04:00
2026-09-11 16:53:22 -04:00
2026-09-17 10:54:20 -04:00
2026-09-05 12:29:30 -04:00
2026-09-15 13:09:26 -04:00
2026-09-10 16:34:41 -04:00
2026-09-16 22:01:34 -04:00
2026-09-07 22:54:52 -05:00
2026-09-09 01:10:29 -05:00
2026-09-11 16:25:49 -04:00
2026-08-29 09:15:52 -05:00
2026-09-14 14:04:58 -04:00
2026-09-04 09:14:52 -04:00
2026-08-10 23:10:48 -05:00
2026-09-17 10:57:42 -04:00
2026-07-10 20:43:42 -05:00
2026-09-15 22:27:31 -05:00
2026-09-09 22:22:26 -05:00
2026-09-13 00:16:50 -04:00
2026-07-06 21:02:04 -05:00
2026-08-26 23:17:03 -04:00
2026-09-12 11:11:23 -05:00
2026-09-04 09:45:29 -04:00
2026-08-27 09:23:52 -04:00
2026-09-12 08:59:21 -04:00
2026-08-15 18:31:50 -04:00
2026-08-28 08:55:50 -04:00
2026-09-07 18:39:32 -04:00
2026-05-13 01:34:19 -05:00
2026-09-08 22:30:08 -05:00
2026-09-13 20:08:25 -04:00
2026-09-17 11:04:53 -04:00
2026-09-13 20:08:25 -04:00
2026-09-16 21:39:50 -04:00
2026-08-30 14:44:12 -05:00
2026-08-25 21:05:52 -05:00
2026-05-21 18:20:50 -05:00
2026-09-06 00:05:31 -04:00
2026-08-27 14:16:38 -04:00
2026-08-01 15:28:54 -05:00
2026-09-15 13:09:26 -04:00
2026-08-15 12:48:27 -04:00
2026-08-19 23:17:36 -05:00
2026-09-15 22:31:05 -05:00
2026-09-16 08:58:51 -04:00
2026-09-16 15:13:57 -04:00
2026-09-08 19:40:01 -05:00
2026-08-26 23:04:29 -04:00
2026-09-05 13:52:22 -04:00
2026-09-12 23:27:38 -05:00
2026-09-07 11:52:20 -05:00
2026-09-14 15:57:18 -04:00
2026-09-09 00:26:30 -05:00
2026-09-10 16:34:41 -04:00
2026-09-10 16:34:41 -04:00
2026-09-10 16:34:41 -04:00
2026-09-17 10:14:45 -04:00
2026-09-07 21:43:46 -05:00
2026-08-14 11:16:21 -04:00
2026-08-30 14:44:12 -05:00
2026-05-21 18:20:09 -05:00
2026-09-07 08:54:03 -04:00
2026-09-01 14:47:33 -04:00
2026-09-17 09:16:20 -04:00
2026-09-13 17:15:55 -04:00