prefect.infrastructure.provisioners.ecs
Functions
console_context
Classes
IamPolicyResource
Represents an IAM policy resource for managing ECS tasks.
Args:
policy_name
: The name of the IAM policy. Defaults to “prefect-ecs-policy”.
get_planned_actions
- Optional[str]: A description of the planned actions for provisioning the resource, or None if provisioning is not required.
get_task_count
- The number of tasks to be provisioned.
next_steps
provision
advance
: A callback function to indicate progress.
- The ARN (Amazon Resource Name) of the created IAM policy.
requires_provisioning
- True if provisioning is required, False otherwise.
IamUserResource
Represents an IAM user resource for managing ECS tasks.
Args:
user_name
: The desired name of the IAM user.
get_planned_actions
- Optional[str]: A description of the planned actions for provisioning the resource, or None if provisioning is not required.
get_task_count
- The number of tasks to be provisioned.
next_steps
provision
advance
: A callback function to indicate progress.
requires_provisioning
- True if provisioning is required, False otherwise.
CredentialsBlockResource
Methods:
get_planned_actions
- Optional[str]: A description of the planned actions for provisioning the resource, or None if provisioning is not required.
get_task_count
- The number of tasks to be provisioned.
next_steps
provision
aws_credentials
variable in the job template to reference the block.
Args:
base_job_template
: The base job template.advance
: A callback function to indicate progress.client
: A Prefect client to use for interacting with the Prefect API.
requires_provisioning
AuthenticationResource
Methods:
get_planned_actions
- Optional[str]: A description of the planned actions for provisioning the resource, or None if provisioning is not required.
get_task_count
- The number of tasks to be provisioned.
next_steps
provision
base_job_template
: The base job template of the work pool to provision infrastructure for.advance
: A callback function to indicate progress.
requires_provisioning
- True if provisioning is required, False otherwise.
resources
ClusterResource
Methods:
get_planned_actions
- Optional[str]: A description of the planned actions for provisioning the resource, or None if provisioning is not required.
get_task_count
- The number of tasks to be provisioned.
next_steps
provision
cluster
variable in the job template to reference the cluster.
Args:
base_job_template
: The base job template of the work pool to provision infrastructure for.advance
: A callback function to indicate progress.
requires_provisioning
- True if provisioning is required, False otherwise.
VpcResource
Methods:
get_planned_actions
- Optional[str]: A description of the planned actions for provisioning the resource, or None if provisioning is not required.
get_task_count
- The number of tasks to be provisioned.
next_steps
provision
vpc_id
variable in the job template to reference the VPC.
Args:
base_job_template
: The base job template of the work pool to provision infrastructure for.advance
: A callback function to indicate progress.
requires_provisioning
- True if provisioning is required, False otherwise.
ContainerRepositoryResource
Methods:
get_planned_actions
- Optional[str]: A description of the planned actions for provisioning the resource, or None if provisioning is not required.
get_task_count
- The number of tasks to be provisioned.
next_steps
provision
base_job_template
: The base job template of the work pool to provision infrastructure for.advance
: A callback function to indicate progress.
requires_provisioning
- True if provisioning is required, False otherwise.
ExecutionRoleResource
Methods:
get_planned_actions
- Optional[str]: A description of the planned actions for provisioning the resource, or None if provisioning is not required.
get_task_count
- The number of tasks to be provisioned.
next_steps
provision
base_job_template
: The base job template of the work pool to provision infrastructure for.advance
: A callback function to indicate progress.
requires_provisioning
- True if provisioning is required, False otherwise.
ElasticContainerServicePushProvisioner
An infrastructure provisioner for ECS push work pools.
Methods:
console
console
is_boto3_installed
provision
work_pool_name
: The name of the work pool to provision infrastructure for.base_job_template
: The base job template of the work pool to provision infrastructure for.
- An updated copy base job template.