UPD: added README and removed unnecessary config in provider.tf

This commit is contained in:
xpk 2023-06-13 15:37:53 +08:00
parent 1c9975d749
commit 1d112a6136
Signed by: xpk
GPG Key ID: CD4FF6793F09AB86
3 changed files with 17 additions and 8 deletions

View File

@ -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"
}
```

View File

@ -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 {}

View File

@ -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" {