-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make service password filed configurable (#236)
Allows to assign a password via terraform during service creation as well as to change passwords for already running services. That solves the issue of state inconsistency when already existing services are imported and allows customers to control the password of their services. When no password is specified during service creation, it is populated from initial password, that gets assigned by service create call. When a password is specified in resource configuration, services still get assigned an initial password, but it gets immediately overwritten by user specified password and it gets reflected in terraform state. When a service is imported into terraform and no password is specified in terraform configuration, it is set to null in terraform state. In that case password stays unmanaged by terraform. If a service is imported and a password exists in terraform configuration during the first import a password is set to null because we have no way of finding out that password from a running service. If terraform apply is done after such import, a password is applied to a service according to terraform configuration and it is either a no-op because the password matches, or it is overwritten to conform with terraform configuration.
- Loading branch information
Showing
7 changed files
with
82 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
mutation ResetServicePassword($projectId: ID!, $serviceId: ID!, $password: String!, $passwordType: PasswordType!) { | ||
resetServicePassword (data:{ | ||
serviceId: $serviceId, | ||
projectId: $projectId, | ||
password: $password, | ||
passwordType: $passwordType | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters