Onboard SQLServer Flex user resource (#403)

* Onboard SQLServer Flex user resource

* change roles

* fix unit tests

* make database field optional // adapt test and documentation

* add sleep time to instance creation

* fix service name in logs and descriptions

* extend username plan modifiers

* update docs

* remove database field

* remove database // make roles optional

* update docs
This commit is contained in:
GokceGK 2024-06-24 14:09:55 +02:00 committed by GitHub
parent 50d74e6695
commit 932fff6223
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 1343 additions and 2 deletions

View file

@ -397,6 +397,11 @@ func (r *instanceResource) Create(ctx context.Context, req resource.CreateReques
if resp.Diagnostics.HasError() {
return
}
// After the instance creation, database might not be ready to accept connections immediately.
// That is why we add a sleep
time.Sleep(120 * time.Second)
tflog.Info(ctx, "SQLServer Flex instance created")
}