Forum Discussion
It looks like the issue is occurring because of the URL formatting in your Terraform configuration. The URL is being passed with an extra slash when you specify it in the template. To resolve this issue, you can make sure that the URL is correctly formatted in the Terraform template. Here's how you can fix it:
1. Update your Terraform template to format the URL correctly. You can use the `format` function to ensure that the URL is correctly formatted download vsco mod:
```hcl
openapi_documents {
document {
path = "spec.yaml"
contents = filebase64(templatefile("apigateway/openapi2-runner.tftplt", {
myUrl = format("https://%s", var.CrSrvApp)
}))
}
}
```
In this example, the `format` function is used to add "https://" before the URL specified in `var.CrSrvApp`.
2. Ensure that the `CrSrvApp` variable does not include "https://" since it is added in the Terraform template.
By making these changes, you should pass a correctly formatted URL to your Swagger specification, and the issue with double slashes should be resolved.
Related Content
- 6 months agomacheshmeh
Recent Discussions
- 17 days agokj20nt