Reposting here instead of
#help.
Calling cp's api gateway module looks like this in terraform:
module "api_gateway" {
source = "git::<https://github.com/cloudposse/terraform-aws-api-gateway.git?ref=0.3.1>"
logging_level = var.logging_level
context = module.this.context
openapi_config = jsondecode(file("${path.module}/${var.filename}"))
}
In teragrunt, i wrote it as:
inputs = {
context = module.this.context
openapi_config = jsondecode(file("dev-io.json"))
}
Which errors out with
Unknown variable; There is no variable named "module".The api gateway module expects to be passed the context variable which is another child module calling the labels module. The cp example i'm following is found here -
https://github.com/cloudposse/terraform-aws-api-gateway/tree/main/examples/completeHow can I recreate this module call in terragrunt?