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.
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 sameterraform apply
as the project resource which is confusing to the user. Therefore it was decided that theenvironment_ids
on the project resource was a more natural way of representing things and that this should be implemented over the other.