Treat Quantum as a real application

This commit is contained in:
2026-04-20 16:55:57 -03:00
parent c363cab9bd
commit 8d396bd38a
6 changed files with 18 additions and 18 deletions
+6 -6
View File
@@ -40,7 +40,7 @@ resource "aws_s3_object" "sample_config" {
content = jsonencode({
appName = "Quantum"
environment = var.environment
featureToggle = "simulated-localstack"
featureToggle = "localstack"
owner = "platform-team"
})
@@ -84,9 +84,9 @@ resource "aws_secretsmanager_secret_version" "quantum_app" {
secret_id = aws_secretsmanager_secret.quantum_app.id
secret_string = jsonencode({
databaseUrl = "postgres://quantum_user:fake_password@quantum-${var.environment}-db.local:5432/quantum"
apiKey = "qtm_${var.environment}_fake_123456"
jwtSecret = "localstack-only-secret-${var.environment}"
databaseUrl = "postgres://quantum_user:change-me@quantum-${var.environment}-db.local:5432/quantum"
apiKey = "qtm_${var.environment}_change_me"
jwtSecret = "change-me-${var.environment}"
})
}
@@ -111,7 +111,7 @@ resource "aws_iam_role" "quantum_lambda" {
resource "aws_iam_policy" "quantum_lambda" {
name = "${local.name_prefix}-lambda-policy"
description = "Simulated permissions for the Quantum Lambda function on LocalStack."
description = "Permissions for the Quantum Lambda function on LocalStack."
policy = jsonencode({
Version = "2012-10-17"
@@ -173,7 +173,7 @@ resource "aws_cloudwatch_log_group" "quantum_lambda" {
resource "aws_lambda_function" "quantum_processor" {
function_name = "${local.name_prefix}-processor"
description = "Fictional event processor for the Quantum application."
description = "Event processor for the Quantum application."
role = aws_iam_role.quantum_lambda.arn
runtime = "python3.11"
handler = "handler.lambda_handler"