Skip to content

Commit

Permalink
Merge pull request #18 from SPHTech-Platform/fix/secret-name-lambda
Browse files Browse the repository at this point in the history
lambda doesn't accept full secret id
  • Loading branch information
uchinda-sph authored Feb 26, 2023
2 parents debb553 + 3ced6e2 commit 5702b5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lambda.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ resource "aws_lambda_invocation" "external_id" {
function_name = module.lambda.lambda_function_name
input = jsonencode({
ResourceProperties = {
Secret = aws_secretsmanager_secret.aqua_cspm_secret.id
Secret = local.secret_name
},
LogicalResourceId = "ExternalIDInvoke"
})
Expand All @@ -37,7 +37,7 @@ resource "aws_lambda_invocation" "onboarding" {
function_name = module.lambda.lambda_function_name
input = jsonencode({
ResourceProperties = {
Secret = aws_secretsmanager_secret.aqua_cspm_secret.id,
Secret = local.secret_name,
ExtId = local.external_id,
Group = var.aqua_group_name,
RoleArn = aws_iam_role.aqua_cspm.arn,
Expand Down

0 comments on commit 5702b5d

Please sign in to comment.