-
-
Notifications
You must be signed in to change notification settings - Fork 23
Closed
Description
Tunnel on local port is not recreated if using plan/apply approach with dedicated plan file.
$ terraform plan -out=terraform.tfplan
...
An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
+ create
Terraform will perform the following actions:
+ module.app_core_de.mysql_database.this
id: <computed>
default_character_set: "utf8"
default_collation: "utf8_general_ci"
name: "stage_whatever"
+ module.app_core_de.mysql_grant.this
id: <computed>
database: "stage_whatever"
grant: "false"
host: "%"
privileges.#: "1"
privileges.2914988887: "ALL"
user: "stage_whatever"
+ module.app_core_de.mysql_user.this
id: <computed>
host: "%"
plaintext_password: <sensitive>
user: "stage_whatever"
Plan: 3 to add, 0 to change, 0 to destroy.
------------------------------------------------------------------------
This plan was saved to: terraform.tfplan
When you run apply
, local port is already released.
Fails with static and ephemeral local ports binding.
$ terraform apply terraform.tfplan
...
Error: Error applying plan:
1 error(s) occurred:
* provider.mysql: dial tcp 127.0.0.1:49876: getsockopt: connection refused
Run time versions:
$ terraform version
Terraform v0.11.0
+ provider.aws v1.3.1
+ provider.mysql v1.0.0
+ provider.null v1.0.0
+ provider.random v1.0.0
+ provider.ssh (unversioned)
+ provider.template v1.0.0
Metadata
Metadata
Assignees
Labels
No labels