-
Notifications
You must be signed in to change notification settings - Fork 12
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
Feature: added security_policy_id to resource definition #425
Feature: added security_policy_id to resource definition #425
Conversation
My resource was set to "Default Policy". I then used security_policy_id to set it to a different security policy lets call it "Test Policy". I then removed security_policy_id and ran Terraform which set the the value to null
I was thinking that my resources would go back to "Default Policy" but it stayed on "Test Policy" For me to get back to default state I had to security_policy_id to the "Default Policy" then run terraform then I was able to delete security_policy_id. We might want to explain that removing security_policy_id will still use the current policy and not go back to the previous policy. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see comments
@twingate-blee this behaviour was not specified in spec, that's why it was missing |
I retested after your update and verified that if you remove security_policy_id it defaults to "Default Policy". I also tested setting the security policy to another policy from the UI. Ran terraform without security_policy_id and verified that it didn't try to change it to "Default Policy" |
I see, working on it |
hey @twingate-blee I've pushed a commit to address your comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GTM
Resolves #380
Tests passes: https://github.com/vmanilo/terraform-provider-twingate/actions/runs/6900109331/job/18772776593?pr=37
Changes
security_policy_id
attribute to Resource definition