You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
resource"heroku_app""production" {
name="test-app-production"region="us"# Tell the dyno it's own hostname so we can send email from workers with correct addressconfig_vars {
SERVER_NAME="${self.heroku_hostname}"
}
}
It would be really useful to be able to tell the application it's own hostname. I usually add this manually after the build.
Steps to Reproduce
terraform apply
Alternative solution
I know that this might be really hard to solve with the terraform architecture. Maybe we could have a resource like heroku_app_config which could depend on heroku_app and which could be used to update the config_vars after the heroku_app instance is created.
References
The self-referencing on resources was shortly discussed in:
This issue has been automatically migrated to terraform-providers/terraform-provider-heroku#203 because it looks like an issue with that provider. If you believe this is not an issue with the provider, please reply to terraform-providers/terraform-provider-heroku#203.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
ghost
locked and limited conversation to collaborators
Jul 25, 2019
This issue was closed.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Terraform Version
Terraform Configuration Files
Debug Output
Expected Behavior
It would be really useful to be able to tell the application it's own hostname. I usually add this manually after the build.
Steps to Reproduce
terraform apply
Alternative solution
I know that this might be really hard to solve with the terraform architecture. Maybe we could have a resource like
heroku_app_config
which could depend onheroku_app
and which could be used to update the config_vars after theheroku_app
instance is created.References
The self-referencing on resources was shortly discussed in:
The text was updated successfully, but these errors were encountered: