---
updatedAt: 2026-05-28T08:16:45.000Z
agentTools:
  projectIndex: https://docs.scalr.io/llms.txt
---

# Create Storage Profile

Create a new storage profile for storing blobs (source code, terraform state, logs, etc).



# OpenAPI definition

````json
{
  "components": {
    "schemas": {
      "StorageProfile": {
        "description": "API resource describing the storage profile, where\nScalr will store this account blobs: e.g. source code, terraform state, and logs.",
        "properties": {
          "attributes": {
            "properties": {
              "aws-s3-audience": {
                "description": "The value of the aud claim for the identity token.",
                "maxLength": 255,
                "minLength": 1,
                "nullable": true,
                "type": "string"
              },
              "aws-s3-bucket-name": {
                "description": "AWS S3 Storage bucket name. Bucket must already exist.",
                "maxLength": 63,
                "minLength": 3,
                "nullable": true,
                "type": "string"
              },
              "aws-s3-region": {
                "description": "AWS S3 bucket region.",
                "maxLength": 63,
                "minLength": 3,
                "nullable": true,
                "type": "string"
              },
              "aws-s3-role-arn": {
                "description": "Amazon Resource Name (ARN) of the IAM Role to assume.",
                "maxLength": 2048,
                "minLength": 20,
                "nullable": true,
                "type": "string"
              },
              "azurerm-audience": {
                "description": "Azure audience for authentication",
                "maxLength": 255,
                "nullable": true,
                "type": "string"
              },
              "azurerm-client-id": {
                "description": "Azure client ID for authentication",
                "maxLength": 255,
                "nullable": true,
                "type": "string"
              },
              "azurerm-container-name": {
                "description": "Azure storage container name",
                "maxLength": 255,
                "nullable": true,
                "type": "string"
              },
              "azurerm-storage-account": {
                "description": "Azure storage account name",
                "maxLength": 255,
                "nullable": true,
                "type": "string"
              },
              "azurerm-tenant-id": {
                "description": "Azure tenant ID for authentication",
                "maxLength": 255,
                "nullable": true,
                "type": "string"
              },
              "backend-type": {
                "description": "Type of backend",
                "enum": [
                  "google",
                  "aws-s3",
                  "azurerm"
                ],
                "type": "string"
              },
              "created-at": {
                "description": "The resource creation timestamp.",
                "format": "date-time",
                "readOnly": true,
                "type": "string"
              },
              "default": {
                "default": false,
                "description": "The default storage profile.",
                "type": "boolean"
              },
              "error-message": {
                "description": "This field contains the last error description, when these settings doesn't work properly.",
                "nullable": true,
                "readOnly": true,
                "type": "string"
              },
              "google-credentials": {
                "description": "Service Account JSON key.\nRequired IAM roles: `Storage Admin` assigned on a `google-storage-bucket` bucket.\nSee: [use IAM with bucket](https://cloud.google.com/storage/docs/access-control/using-iam-permissions#bucket-iam).",
                "format": "password",
                "nullable": true,
                "type": "object"
              },
              "google-encryption-key": {
                "description": "Optional [customer supplied encryption key](https://cloud.google.com/storage/docs/encryption/customer-supplied-keys).\nMust be exactly 32 bytes, encoded into base64:\n```sh\n$ openssl rand 32 | base64\nNfsPPHBVNlU8ZLBU9BeBIoL29rqtduyQAEw3vxf6kaY=\n```",
                "format": "password",
                "nullable": true,
                "type": "string"
              },
              "google-project": {
                "description": "Google Cloud project ID.",
                "nullable": true,
                "type": "string"
              },
              "google-storage-bucket": {
                "description": "Google Storage bucket name. Bucket must already exist.",
                "maxLength": 222,
                "nullable": true,
                "type": "string"
              },
              "is-system": {
                "default": false,
                "description": "Whether the storage profile is a system profile.",
                "readOnly": true,
                "type": "boolean"
              },
              "name": {
                "description": "The name of the storage profile.",
                "maxLength": 255,
                "type": "string"
              },
              "updated-at": {
                "description": "The resource last update timestamp.",
                "format": "date-time",
                "nullable": true,
                "readOnly": true,
                "type": "string"
              }
            },
            "required": [
              "name",
              "backend-type"
            ],
            "type": "object"
          },
          "id": {
            "readOnly": true,
            "type": "string"
          },
          "links": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object"
          },
          "type": {
            "enum": [
              "storage-profiles"
            ],
            "type": "string"
          }
        },
        "required": [
          "type",
          "attributes"
        ],
        "type": "object"
      },
      "StorageProfileDocument": {
        "description": "JSON:API Document.\n\nsee: https://jsonapi.org/format/#document-structure",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/StorageProfile"
          },
          "included": {
            "items": {
              "type": "object"
            },
            "readOnly": true,
            "type": "array"
          },
          "meta": {
            "readOnly": true,
            "type": "object"
          }
        },
        "type": "object"
      }
    },
    "securitySchemes": {
      "API-Key": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "info": {
    "description": "Scalr IACP API",
    "license": {
      "name": "Apache 2.0",
      "url": "https://www.apache.org/licenses/LICENSE-2.0"
    },
    "title": "Scalr IACP API",
    "version": "unversioned"
  },
  "openapi": "3.0.0",
  "paths": {
    "/storage-profiles": {
      "post": {
        "description": "Create a new storage profile for storing blobs (source code, terraform state, logs, etc).\n\n",
        "operationId": "create_storage_profile",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/vnd.api+json": {
              "schema": {
                "$ref": "#/components/schemas/StorageProfileDocument"
              }
            }
          }
        },
        "responses": {
          "201": {
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "$ref": "#/components/schemas/StorageProfileDocument"
                }
              }
            },
            "description": "Success."
          },
          "422": {
            "description": "Invalid arguments."
          },
          "4XX": {
            "description": "Client error."
          },
          "5XX": {
            "description": "Server error."
          }
        },
        "summary": "Create Storage Profile",
        "tags": [
          "storage_profile"
        ],
        "x-resource": "StorageProfile",
        "x-service": "tf-api"
      }
    }
  },
  "security": [
    {
      "API-Key": []
    }
  ],
  "servers": [
    {
      "url": "https://{Domain}/api/iacp/v3",
      "variables": {
        "Domain": {
          "default": "example.scalr.io",
          "description": "Domain where Scalr is hosted"
        }
      }
    }
  ]
}
````

# Sibling pages

* [List Storage Profiles](https://docs.scalr.io/scalr/reference/list_storage_profiles.md)
* [Delete Storage Profile](https://docs.scalr.io/scalr/reference/delete_storage_profile.md)
* [Get Storage Profile](https://docs.scalr.io/scalr/reference/get_storage_profile.md)
* [Update Storage Profile](https://docs.scalr.io/scalr/reference/update_storage_profile.md)