UPD: added README and removed unnecessary config in provider.tf
This commit is contained in:
parent
1c9975d749
commit
1d112a6136
@ -0,0 +1,16 @@
|
|||||||
|
# secretsmanager-secret module
|
||||||
|
This module creates an entry in secretsmanager, attaching a default access policy if one is
|
||||||
|
not provided from root module. A random suffix is assigned to every secret, as AWS may delay
|
||||||
|
creation of secrets with the same name, after the old one has been destroyed that is.
|
||||||
|
|
||||||
|
To tag resources, please use provider default_tags.
|
||||||
|
|
||||||
|
## Example
|
||||||
|
```hcl
|
||||||
|
module secret_item {
|
||||||
|
source = "../../modules/security_identity_compliance/secretsmanager-secret"
|
||||||
|
|
||||||
|
secret_description = "test-secret-desc"
|
||||||
|
secret_value = "test-secret-value"
|
||||||
|
}
|
||||||
|
```
|
@ -1,7 +1,3 @@
|
|||||||
provider "aws" {
|
|
||||||
region = var.aws-region
|
|
||||||
}
|
|
||||||
|
|
||||||
terraform {
|
terraform {
|
||||||
required_version = ">= 1.3.0"
|
required_version = ">= 1.3.0"
|
||||||
required_providers {
|
required_providers {
|
||||||
@ -10,6 +6,4 @@ terraform {
|
|||||||
version = ">= 4.40"
|
version = ">= 4.40"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
resource time_static current_time {}
|
|
@ -1,4 +1,3 @@
|
|||||||
variable "aws-region" {}
|
|
||||||
variable "secret_description" {}
|
variable "secret_description" {}
|
||||||
variable "secret_value" {}
|
variable "secret_value" {}
|
||||||
variable "secret_policy" {
|
variable "secret_policy" {
|
||||||
|
Loading…
Reference in New Issue
Block a user