skytap / terraform-provider-skytap

Terraform Skytap provider
https://www.terraform.io/docs/providers/skytap/
Mozilla Public License 2.0
4 stars 11 forks source link

Add environment_ids attribute to project resource #75

Closed bengesoff closed 3 years ago

bengesoff commented 3 years ago

This PR adds the environment_ids attribute to both the project resource and data source. This depends on the associated SDK PR https://github.com/skytap/skytap-sdk-go/pull/61. With this attribute, the project resource can be used to add/remove environments from the project from within terraform.

The equivalent project_ids field can't be added to the environment resource because, due to the order in which Terraform updates things, this won't be updated in the same terraform apply as the project resource which is confusing to the user. Therefore it was decided that the environment_ids on the project resource was a more natural way of representing things and that this should be implemented over the other.

bengesoff commented 3 years ago

The associated SDK PR has been merged so I've updated the reference, rebased onto master, and force pushed it back up