# secretsmanager-secret Create secretsmanager secret. Specify secret\_version if you do not want terraform to recreate the secret everytime terraform applies. Otherwise, becuase this module uses emphemeral resource, the secret will be regenerated and replaced every time. ## Requirements | Name | Version | |------|---------| | terraform | >= 1.3.0 | | aws | >= 5.0 | ## Providers | Name | Version | |------|---------| | aws | >= 5.0 | | random | n/a | ## Modules No modules. ## Resources | Name | Type | |------|------| | [aws_secretsmanager_secret.secret1](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/secretsmanager_secret) | resource | | [aws_secretsmanager_secret_policy.policy](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/secretsmanager_secret_policy) | resource | | [aws_secretsmanager_secret_version.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/secretsmanager_secret_version) | resource | | [random_id.rid](https://registry.terraform.io/providers/hashicorp/random/latest/docs/resources/id) | resource | | [aws_caller_identity.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/caller_identity) | data source | | [aws_iam_policy_document.policy-file](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source | ## Inputs | Name | Description | Type | Default | Required | |------|-------------|------|---------|:--------:| | generate\_secret | If set to true, a secure password will be generated and saved. | `bool` | `false` | no | | kms\_key\_id | Custom kms key id. If not specified, the default key aws/secretmanager key will be used. | `string` | `null` | no | | secret\_description | n/a | `any` | n/a | yes | | secret\_name | n/a | `any` | n/a | yes | | secret\_policy | By default, cross-account access is denied | `string` | `null` | no | | secret\_value | n/a | `string` | `null` | no | | secret\_version | Secret version number. Increment to modify secret, or leave this unset to have your secret updated everytime terraform applies | `number` | `null` | no | ## Outputs | Name | Description | |------|-------------| | secret\_arn | n/a | | secret\_id | n/a | --- ## Authorship This module was developed by UPDATE_THIS.