# Secret

> > This page is auto-generated from the formations OpenAPI spec.
> Do not edit manually — run `pnpm generate-formations-resource-docs` to regenerate.

# Secret

> This page is auto-generated from the formations OpenAPI spec.
> Do not edit manually — run `pnpm generate-formations-resource-docs` to regenerate.

Creates an encrypted secret within the formation's project.

## Syntax

```yaml
type: secret
properties:
  name: String
  value: String
```

## Output

The physical resource ID is the **public ID** of the created resource. Reference it from other resources with a `ref` expression:

```yaml
      some_field:
        ref: MySecret
```

## Properties

**`name`**

Human-readable label for the secret

_Required_: Yes
_Type_: String

---

**`value`**

The secret value to encrypt and store

_Required_: Yes
_Type_: String

---
