import_stack_profile
Create a stack profile from a ClusterInfrastructureAsCode YAML document (the twin of ankra stack-profiles import), publishing its first version - or, with as_draft, opening it as a builder draft a human reviews and publishes (the twin of ankra stack-profiles import --as-draft). Use this to bring a profile exported elsewhere into this organisation, or to stage a file-authored candidate for review; create_stack_profile builds one from a running stack instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Profile name; defaults to the document's. | |
| tags | No | Tags for the profile. | |
| as_draft | No | Open the document as a builder draft instead of publishing. When the organisation already has a profile with this name the draft attaches to it as the next-version candidate; otherwise it opens as a new-profile draft. The human then reviews, validates and publishes it (publish_stack_profile_draft). Defaults to false. | |
| category | No | Profile category. | |
| changelog | No | Changelog for the first published version. Ignored with as_draft: the changelog belongs to the publish the human makes after review. | |
| description | No | Profile description. | |
| iac_yaml_base64 | Yes | The ClusterInfrastructureAsCode YAML (kind: ImportCluster, as export_stack_profile_iac produces), base64-encoded, at most 2 MiB. |