-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsecrets.tf
More file actions
33 lines (27 loc) · 907 Bytes
/
secrets.tf
File metadata and controls
33 lines (27 loc) · 907 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
###
# Splunk HEC Token Secret Resources
###
# Create HEC token secret only if it doesn't exist
resource "aws_secretsmanager_secret" "ai_tools_splunk_hec_token" {
provider = aws.west2
count = var.manage_secrets ? 1 : 0
name = "aws-ai-tooling-splunk-hec-token"
description = "Splunk HEC token for AI tools logging - PLACEHOLDER"
tags = {
Environment = var.environment
Account = var.account_name
Region = "us-west-2"
ManagedBy = "terraform"
Purpose = "placeholder"
}
}
# Create placeholder value for new secrets only
resource "aws_secretsmanager_secret_version" "ai_tools_splunk_hec_token" {
provider = aws.west2
count = var.manage_secrets ? 1 : 0
secret_id = aws_secretsmanager_secret.ai_tools_splunk_hec_token[0].id
secret_string = "PLACEHOLDER_REPLACE_WITH_REAL_HEC_TOKEN"
lifecycle {
ignore_changes = [secret_string]
}
}