FIX: correcting hard-coded test secret name
This commit is contained in:
parent
abf60a0972
commit
c53a27ee5f
@ -5,7 +5,7 @@ resource "random_id" "rid" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
resource "aws_secretsmanager_secret" "secret1" {
|
resource "aws_secretsmanager_secret" "secret1" {
|
||||||
name = "test-secret-${random_id.rid.dec}"
|
name = "${var.secret_name}-${random_id.rid.dec}"
|
||||||
description = var.secret_description
|
description = var.secret_description
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -0,0 +1,6 @@
|
|||||||
|
output secret_arn {
|
||||||
|
value = aws_secretsmanager_secret.secret1.arn
|
||||||
|
}
|
||||||
|
output secret_id {
|
||||||
|
value = "${var.secret_name}-${random_id.rid.dec}"
|
||||||
|
}
|
@ -1,4 +1,5 @@
|
|||||||
variable "secret_description" {}
|
variable "secret_description" {}
|
||||||
|
variable "secret_name" {}
|
||||||
variable "secret_value" {}
|
variable "secret_value" {}
|
||||||
variable "secret_policy" {
|
variable "secret_policy" {
|
||||||
type = string
|
type = string
|
||||||
|
Loading…
Reference in New Issue
Block a user