bootstrap¶
- autogluon.cloud.bootstrap(*, backend: Literal['sagemaker', 'ray_aws'] = '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.Each backend has its own slot in the config file, so calling
bootstrap()forsagemakerand again forray_awskeeps both in the config.- Parameters:
backend – Which AutoGluon-Cloud backend to provision.
stack_name – CloudFormation stack name. Auto-generated as
ag-cloud-<backend>if not given.session – 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).