ecs_composex.efs package ¶
Submodules ¶
ecs_composex.efs.efs_ecs module ¶
- ecs_composex.efs.efs_ecs. add_task_iam_access_to_access_point ( family , access_points , efs ) [source] ¶
-
Function to add IAM Permissions to mount to EFS via AccessPoint for ECS Task
- Parameters :
-
-
family ( ecs_composex.ecs.ecs_family.ComposeFamily ) –
-
access_points ( list<troposphere.efs.AccessPoint> ) –
-
efs ( ecs_composex.efs.efs_stack.Efs ) –
-
- ecs_composex.efs.efs_ecs. efs_to_ecs ( resources , services_stack , res_root_stack , settings ) [source] ¶
-
Function to associate back the EFS FS to services.
- ecs_composex.efs.efs_ecs. expand_family_with_efs_volumes ( efs_root_stack_title , efs , settings ) [source] ¶
-
Function to add the EFS Volume definition to the task definition for the service to use.
- ecs_composex.efs.efs_ecs. get_service_mount_points ( service ) [source] ¶
-
Function to get the MountPoints from the container definition of a service
- Parameters :
-
service ( ecs_composex.common.compose_services.ComposeService ) –
- Returns :
-
list of mount points or new list
- Return type :
-
list
- ecs_composex.efs.efs_ecs. get_volumes ( task_definition ) [source] ¶
-
Function to fetch the volumes from the task definition
- Parameters :
-
task_definition ( troposphere.ecs.TaskDefinition ) –
- Returns :
-
the volumes list of the task definition or new ones
- Return type :
-
list
- ecs_composex.efs.efs_ecs. looked_up_efs_family_hook ( efs , family , settings ) [source] ¶
-
- Return type :
-
None
- ecs_composex.efs.efs_ecs. override_efs_settings ( new_efs , target , fs_id_parameter , access_points , volumes ) [source] ¶
-
Function to determine if access points should be set on a per service of the task definition and update the volumes and mount points accordingly
- Parameters :
-
-
new_efs ( ecs_composex.efs.efs_stack.Efs ) –
-
target ( tuple ) –
-
fs_id_parameter ( ecs_composex.common.cfn_params.Parameter ) –
-
access_points ( list ) –
-
volumes ( list ) –
-
- Returns :
-
ecs_composex.efs.efs_module module ¶
ecs_composex.efs.efs_params module ¶
ecs_composex.efs.efs_stack module ¶
Module to handle the creation of the root EFS stack
- class ecs_composex.efs.efs_stack. Efs ( name , definition , module , settings ) [source] ¶
-
Bases:
NetworkXResource
Class to represent a Filesystem
- subnets_param = <ecs_composex.common.cfn_params.Parameter object> ¶
- update_from_vpc ( vpc_stack , settings = None ) [source] ¶
-
Override for EFS to update settings from VPC Stack
- Parameters :
-
-
vpc_stack ( ecs_composex.vpc.vpc_stack.XStack ) –
-
settings ( ecs_composex.common.settings.ComposeXSettings ) –
-
- Returns :
-
- class ecs_composex.efs.efs_stack. XStack ( name , settings , module , ** kwargs ) [source] ¶
-
Bases:
ComposeXStack
Class to represent the root for EFS
- do_validation : bool ¶
- properties : Dict[str, Any] ¶
- propnames : Set[str] ¶
- resource : Dict[str, Any] ¶
- template : Optional[Template] ¶
- title : Optional[str] ¶
- ecs_composex.efs.efs_stack. create_efs_stack ( settings , new_resources ) [source] ¶
-
Function to create the root stack and add EFS FS.
- Parameters :
-
-
settings ( ecs_composex.common.settings.ComposeXSettings ) –
-
new_resources ( list ) –
-
- Returns :
-
Root template for EFS
- Return type :
-
troposphere.Template
Module contents ¶
Sub Package to handle x-efs