diff --git a/CHANGELOG.md b/CHANGELOG.md index 6ba95b4..f1df67c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ This project adheres to [Semantic Versioning](http://semver.org/) and [Keep a Ch ### Fixes - correct archive extraction when there is only one nested path (issue 749) +- force proper resolution of boundary permissions ## v5.0.0 (2024-08-16) diff --git a/seedfarmer/models/manifests/_deployment_manifest.py b/seedfarmer/models/manifests/_deployment_manifest.py index bf6e2ce..c70af62 100644 --- a/seedfarmer/models/manifests/_deployment_manifest.py +++ b/seedfarmer/models/manifests/_deployment_manifest.py @@ -448,7 +448,7 @@ def get_region_seedfarmer_bucket( def get_permission_boundary_arn(self, target_account: str, target_region: str) -> Optional[str]: permissions_boundary_name = self.get_parameter_value( "permissionsBoundaryName", - account_alias=target_account, + account_id=target_account, region=target_region, ) return ( diff --git a/seedfarmer/models/transfer/_module_deploy_object.py b/seedfarmer/models/transfer/_module_deploy_object.py index c030c95..a77d0f5 100644 --- a/seedfarmer/models/transfer/_module_deploy_object.py +++ b/seedfarmer/models/transfer/_module_deploy_object.py @@ -26,7 +26,7 @@ def __init__(self, **kwargs: Any) -> None: _module = cast(ModuleManifest, self.deployment_manifest.get_module(self.group_name, self.module_name)) pba = self.deployment_manifest.get_permission_boundary_arn( - target_account=cast(str, _module.target_account), + target_account=cast(str, _module.get_target_account_id()), target_region=cast(str, _module.target_region), ) codebuild_image = self.deployment_manifest.get_region_codebuild_image(