IAM: Migrate instance profiles#13811
Conversation
LocalStack Community integration with Pro 2 files ± 0 2 suites ±0 2m 58s ⏱️ - 2h 7m 1s For more details on these failures, see this check. Results for commit 5e99f87. ± Comparison against base commit 00594bb. ♻️ This comment has been updated with latest results. |
Test Results - Preflight, Unit23 123 tests ±0 21 249 ✅ - 3 5m 45s ⏱️ -32s For more details on these failures, see this check. Results for commit 5e99f87. ± Comparison against base commit 00594bb. ♻️ This comment has been updated with latest results. |
Test Results (amd64) - Integration, Bootstrap 5 files ±0 5 suites ±0 2h 50m 30s ⏱️ + 9m 26s For more details on these failures, see this check. Results for commit 2619b48. ± Comparison against base commit 3e9b86f. ♻️ This comment has been updated with latest results. |
dfangl
left a comment
There was a problem hiding this comment.
LGTM! I added the error if a role is deleted while an instance profile exists for it, the test was still skipped!
Co-authored-by: Daniel Fangl <daniel.fangl@localstack.cloud>
Co-authored-by: Daniel Fangl <daniel.fangl@localstack.cloud>
Co-authored-by: Daniel Fangl <daniel.fangl@localstack.cloud>
Co-authored-by: Daniel Fangl <daniel.fangl@localstack.cloud>
Motivation
As per the internalization project. This PR migrates the operations related to InstanceProfiles.
Changes
@dataclasses.dataclass
class InstanceProfileEntity:
instance_profile: InstanceProfile
role_name: str | None = None # Name of the attached role (max 1 role per profile)
ListInstanceProfilesForRoleResponse, ListInstanceProfilesResponse, InstanceProfileEntity
_build_instance_profile_arn, _build_role_for_instance_profile
list_instance_profiles
list_instance_profiles_for_role
Tests
All related test about IAM InstanceProfiles must pass.
Merge after #13801