Skip to content

Option to make heroku_app_config_association destroy no-op? #382

Open
@dentarg

Description

@dentarg

Hi,

I use the provider to set up and tear down apps for an staging environment and I noticed a bit of a gotcha: when I start terraform destroy to remove all my resources heroku_app, heroku_build, heroku_app_config_association and more) it has failed with this message:

╷
│ Error: error waiting for new release (9845a15d-5736-4dee-bd68-47b1f75b542f) to succeed: unexpected state 'failed', wanted target 'succeeded'. last error: %!s(<nil>)
│
│
╵

if _, err := stateConf.WaitForState(); err != nil {
return fmt.Errorf("error waiting for new release (%s) to succeed: %s", releases[0].ID, err)
}

Sure enough, the build removing all the vars did fail, as that build depend on (some) of the vars.

// Essentially execute an update to delete all the vars listed in the schema only
if err := updateVars(appId, client, allVars, nil); err != nil {
return err
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions