rstudio_fargate/rstudio/fargate/rstudio_ec2_stack.py [279:323]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        )

        rstudio_load_balancer_arn_list = []
        secretpass_arn_list = []

        for i in range(1, number_of_rstudio_containers + 1):

            # RStudio Instance Home File System
            file_system_rstudio_home = efs.FileSystem(
                self,
                id=f"Rstudio{i}-cont-user-home-{instance}",
                file_system_name=f"Rstudio{i}-cont-fs-home-{instance}",
                vpc=vpc,
                encrypted=True,
                kms_key=rstudio_efs_kms_key_alias,
                performance_mode=efs.PerformanceMode.GENERAL_PURPOSE,
                throughput_mode=efs.ThroughputMode.BURSTING,
                enable_automatic_backups=True,
                removal_policy=RemovalPolicy.DESTROY,
            )

            access_point_rstudio_home = efs.AccessPoint(
                self,
                id=f"Rstudio{i}-access-point-home-{instance}",
                file_system=file_system_rstudio_home,
                path=f"/rstudio{i}-path-home",
                create_acl=efs.Acl(
                    owner_uid="1000", owner_gid="1000", permissions="755"
                ),
            )

            volume_config_rstudio_home = ecs.Volume(
                name=f"efs-volume-rstudio{i}-home-{instance}",
                efs_volume_configuration=ecs.EfsVolumeConfiguration(
                    file_system_id=file_system_rstudio_home.file_system_id,
                    transit_encryption="ENABLED",
                    authorization_config=ecs.AuthorizationConfig(
                        access_point_id=access_point_rstudio_home.access_point_id,
                    ),
                ),
            )

            rstudio_logs_container = logs.LogGroup(
                self,
                id=f"rstudio{i}-cw-logs-container-{instance}",
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



rstudio_fargate/rstudio/fargate/rstudio_fargate_stack.py [286:330]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        )

        rstudio_load_balancer_arn_list = []
        secretpass_arn_list = []

        for i in range(1, number_of_rstudio_containers + 1):

            # RStudio Instance Home File System
            file_system_rstudio_home = efs.FileSystem(
                self,
                id=f"Rstudio{i}-cont-user-home-{instance}",
                file_system_name=f"Rstudio{i}-cont-fs-home-{instance}",
                vpc=vpc,
                encrypted=True,
                kms_key=rstudio_efs_kms_key_alias,
                performance_mode=efs.PerformanceMode.GENERAL_PURPOSE,
                throughput_mode=efs.ThroughputMode.BURSTING,
                enable_automatic_backups=True,
                removal_policy=RemovalPolicy.DESTROY,
            )

            access_point_rstudio_home = efs.AccessPoint(
                self,
                id=f"Rstudio{i}-access-point-home-{instance}",
                file_system=file_system_rstudio_home,
                path=f"/rstudio{i}-path-home",
                create_acl=efs.Acl(
                    owner_uid="1000", owner_gid="1000", permissions="755"
                ),
            )

            volume_config_rstudio_home = ecs.Volume(
                name=f"efs-volume-rstudio{i}-home-{instance}",
                efs_volume_configuration=ecs.EfsVolumeConfiguration(
                    file_system_id=file_system_rstudio_home.file_system_id,
                    transit_encryption="ENABLED",
                    authorization_config=ecs.AuthorizationConfig(
                        access_point_id=access_point_rstudio_home.access_point_id,
                    ),
                ),
            )

            rstudio_logs_container = logs.LogGroup(
                self,
                id=f"rstudio{i}-cw-logs-container-{instance}",
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



