girder / terraform-heroku-girder4

A Terraform module to provision Girder4 infrastructure on Heroku + AWS.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support terraform-provider-heroku v5

mvandenburgh opened this issue · comments

Currently, downstream projects must pin terraform-provider-heroku to v4 due to some breaking changes in v5. Attempting to use terraform-heroku-girder4 with the latest Heroku provider results in the following error:

Waiting for the plan to start...

Terraform v1.5.2
on linux_amd64
Initializing plugins and modules...
╷
│ Warning: Argument is deprecated
│ 
│   with module.django.module.storage.aws_s3_bucket.storage,
│   on .terraform/modules/django/modules/storage/main.tf line 1, in resource "aws_s3_bucket" "storage":
│    1: resource "aws_s3_bucket" "storage" {
│ 
│ Use the aws_s3_bucket_cors_configuration resource instead
│ 
│ (and 3 more similar warnings elsewhere)
╵
╷
│ Error: Missing required argument
│ 
│   on .terraform/modules/django/modules/heroku/main.tf line 25, in resource "heroku_formation" "heroku_web":
│   25: resource "heroku_formation" "heroku_web" {
│ 
│ The argument "app_id" is required, but no definition was found.
╵
╷
│ Error: Unsupported argument
│ 
│   on .terraform/modules/django/modules/heroku/main.tf line 26, in resource "heroku_formation" "heroku_web":
│   26:   app      = heroku_app.heroku.id
│ 
│ An argument named "app" is not expected here.
╵
╷
│ Error: Missing required argument
│ 
│   on .terraform/modules/django/modules/heroku/main.tf line 32, in resource "heroku_formation" "heroku_worker":
│   32: resource "heroku_formation" "heroku_worker" {
│ 
│ The argument "app_id" is required, but no definition was found.
╵
╷
│ Error: Unsupported argument
│ 
│   on .terraform/modules/django/modules/heroku/main.tf line 33, in resource "heroku_formation" "heroku_worker":
│   33:   app      = heroku_app.heroku.id
│ 
│ An argument named "app" is not expected here.
╵
╷
│ Error: Missing required argument
│ 
│   on .terraform/modules/django/modules/heroku/main.tf line 39, in resource "heroku_addon" "heroku_postgresql":
│   39: resource "heroku_addon" "heroku_postgresql" {
│ 
│ The argument "app_id" is required, but no definition was found.
╵
╷
│ Error: Unsupported argument
│ 
│   on .terraform/modules/django/modules/heroku/main.tf line 40, in resource "heroku_addon" "heroku_postgresql":
│   40:   app  = heroku_app.heroku.id
│ 
│ An argument named "app" is not expected here.
╵
╷
│ Error: Missing required argument
│ 
│   on .terraform/modules/django/modules/heroku/main.tf line 44, in resource "heroku_addon" "heroku_cloudamqp":
│   44: resource "heroku_addon" "heroku_cloudamqp" {
│ 
│ The argument "app_id" is required, but no definition was found.
╵
╷
│ Error: Unsupported argument
│ 
│   on .terraform/modules/django/modules/heroku/main.tf line 45, in resource "heroku_addon" "heroku_cloudamqp":
│   45:   app  = heroku_app.heroku.id
│ 
│ An argument named "app" is not expected here.
╵
╷
│ Error: Missing required argument
│ 
│   on .terraform/modules/django/modules/heroku/main.tf line 49, in resource "heroku_addon" "heroku_papertrail":
│   49: resource "heroku_addon" "heroku_papertrail" {
│ 
│ The argument "app_id" is required, but no definition was found.
╵
╷
│ Error: Unsupported argument
│ 
│   on .terraform/modules/django/modules/heroku/main.tf line 50, in resource "heroku_addon" "heroku_papertrail":
│   50:   app  = heroku_app.heroku.id
│ 
│ An argument named "app" is not expected here.
╵
╷
│ Error: Missing required argument
│ 
│   on .terraform/modules/django/modules/heroku/main.tf line 54, in resource "heroku_domain" "heroku":
│   54: resource "heroku_domain" "heroku" {
│ 
│ The argument "app_id" is required, but no definition was found.
╵
╷
│ Error: Unsupported argument
│ 
│   on .terraform/modules/django/modules/heroku/main.tf line 55, in resource "heroku_domain" "heroku":
│   55:   app      = heroku_app.heroku.id
│ 
│ An argument named "app" is not expected here.
╵
Operation failed: failed running terraform plan (exit 1)

Heh, I was installing girder/django/heroku instead of girder/girder4/heroku. My bad, sorry for the noise.