Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecation of network_id in hcloud_server_network #29

Closed
solidnerd opened this issue Aug 2, 2020 · 0 comments · Fixed by #30
Closed

Deprecation of network_id in hcloud_server_network #29

solidnerd opened this issue Aug 2, 2020 · 0 comments · Fixed by #30

Comments

@solidnerd
Copy link
Contributor

solidnerd commented Aug 2, 2020

I did changed the network_id in hcloud_server_network to fix the deprecation warning. When I did this a get a new error that the network subnet id is invalid.

Warning: "network_id": [DEPRECATED] use subnet_id instead                                    
                                                                                             
  on server_instances.tf line 16, in resource "hcloud_server_network" "control_planes":      
  16: resource hcloud_server_network control_planes {                                        
                                                                                             
                                                                                             
                                                                                             
Warning: Experimental feature "variable_validation" is active                                
                                                                                             
  on ../../main.tf line 3, in terraform:                                                     
   3:   experiments      = [variable_validation]                                             
                                                                                             
Experimental features are subject to breaking changes in future minor or patch               
releases, based on feedback.                                                                 
                                                                                             
If you have feedback on the design of this feature, please open a GitHub issue               
to discuss it.                                                                               
                                                                                             
                                                                                             
Error: invalid network subnet id                                                             
                                                                                             
  on agent_instances.tf line 17, in resource "hcloud_server_network" "agents_network":       
  17: resource hcloud_server_network agents_network {                                        
                                                                                             
                                                                                             
                                                                                             
Error: invalid network subnet id                                                             
                                                                                             
  on agent_instances.tf line 17, in resource "hcloud_server_network" "agents_network":       
  17: resource hcloud_server_network agents_network {                                        
                                                                                             
                                                                                             
                                                                                             
Error: invalid network subnet id                                                             
                                                                                             
  on agent_instances.tf line 17, in resource "hcloud_server_network" "agents_network":       
  17: resource hcloud_server_network agents_network {                                        
                                                                                             

I think the changed was introduced with hcloud provider 1.19.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant