From 0a399331c18bea7b56da584194fa77ca30ff4b92 Mon Sep 17 00:00:00 2001 From: Ryan McGinty Date: Fri, 12 Jul 2024 09:37:07 -0700 Subject: [PATCH] expose iam_role_name through compute construct --- src/aibs_informatics_cdk_lib/constructs_/service/compute.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/aibs_informatics_cdk_lib/constructs_/service/compute.py b/src/aibs_informatics_cdk_lib/constructs_/service/compute.py index b0bf225..8ac7759 100644 --- a/src/aibs_informatics_cdk_lib/constructs_/service/compute.py +++ b/src/aibs_informatics_cdk_lib/constructs_/service/compute.py @@ -59,6 +59,7 @@ def __init__( buckets: Optional[Iterable[s3.Bucket]] = None, file_systems: Optional[Iterable[Union[efs.FileSystem, efs.IFileSystem]]] = None, mount_point_configs: Optional[Iterable[MountPointConfiguration]] = None, + instance_role_name: Optional[str] = None, instance_role_policy_statements: Optional[List[iam.PolicyStatement]] = None, **kwargs, ) -> None: @@ -69,6 +70,7 @@ def __init__( batch_name, self.env_base, vpc=vpc, + instance_role_name=instance_role_name, instance_role_policy_statements=instance_role_policy_statements, )