bootstrap¶
- autogluon.cloud.bootstrap(*, backend: Literal['sagemaker'] = 'sagemaker', stack_name: str | None = None, session: Session | None = None) None[source]¶
Deploy the CloudFormation stack and persist resource identifiers.
On completion the IAM role and S3 bucket created by the stack are saved to
~/.autogluon/cloud.yamlviaregister(). If you already have an IAM role and bucket in place, callregister()directly and skip this function entirely.- Parameters:
backend (BackendName, default = "sagemaker") – Which AutoGluon-Cloud backend to provision.
stack_name (str | None, default = None) – CloudFormation stack name. Auto-generated as
ag-cloud-<backend>if not given.session (boto3.Session | None, default = None) – A
boto3.Sessionto use for AWS calls. IfNone, a default session is constructed from the standard credential chain (env vars,~/.aws/credentials, SSO, instance profile).