我在部署模块"apigwmethodintegration_token"时在地形上遇到错误


│ Error: Invalid template interpolation value
│ 
│   on main.tf line 390, in module "apigwmethodintegration_token":
│  390:    "token"                          = "arn:aws:apigateway:${var.region}:lambda:path/2015-03-31/functions/arn:aws:lambda:${var.region}:${data.aws_caller_identity.current.account_id}:function:${module.lambda_token.lambdafunction_name}/invocations"
│     ├────────────────
│     │ module.lambda_token.lambdafunction_name is tuple with 1 element
│ 
│ Cannot include the given value in a string template: string required.
╵
╷
│ Error: Invalid template interpolation value
│ 
│   on main.tf line 391, in module "apigwmethodintegration_token":
│  391:    "change-temp-password"           = "arn:aws:apigateway:${var.region}:lambda:path/2015-03-31/functions/arn:aws:lambda:${var.region}:${data.aws_caller_identity.current.account_id}:function:${module.lambda_change_temp_password.lambdafunction_name}/invocations"
│     ├────────────────
│     │ module.lambda_change_temp_password.lambdafunction_name is tuple with 1 element
│ 
│ Cannot include the given value in a string template: string required.

在违规行处更改:

  • module.lambda_token.lambdafunction_nametomodule.lambda_token.lambdafunction_name[0]

  • module.lambda_change_temp_password.lambdafunction_namemodule.lambda_change_temp_password.lambdafunction_name[0].

相关内容

  • 没有找到相关文章

最新更新