Skip to content

Commit

Permalink
Use variable for client_secret
Browse files Browse the repository at this point in the history
  • Loading branch information
BSick7 committed Dec 3, 2024
1 parent 6786520 commit b06633b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
8 changes: 0 additions & 8 deletions app_client.tf

This file was deleted.

2 changes: 1 addition & 1 deletion client_secret.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ resource "aws_secretsmanager_secret" "client_secret" {

resource "aws_secretsmanager_secret_version" "client_secret" {
secret_id = aws_secretsmanager_secret.client_secret.id
secret_string = local.client_secret
secret_string = var.client_secret
}
7 changes: 7 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ variable "client_id" {
description = "The id of the existing user pool client. e.g. abcdefabcdef1234567890123"
}

variable "client_secret" {
type = string
default = ""
sensitive = true
description = "The client secret of the existing user pool app client."
}

variable "identity_pool_id" {
type = string
description = "The id of the existing identity pool. e.g. us-east-1:abcd01234-ab01-cd23-ef45-abcd012345678"
Expand Down

0 comments on commit b06633b

Please sign in to comment.