Use Teamcity with Sql Change Automation Build for an AWS RDS instance with temporary database
Freek
Posts: 11 Bronze 1
Hi,
We are using Sql Change Automation in our Teamcity pipeline to deploy changes to our AWS RDS instance. Currently we have an on-prem virtual pc running Sql server to build the temporary database on. We want to get rid of this virtual pc as part of moving to AWS completely. I have been trying to use the RDS instance itself to build the scratch database on but so far without success.
Without specifying a temporary database name I get this error:
We are using Sql Change Automation in our Teamcity pipeline to deploy changes to our AWS RDS instance. Currently we have an on-prem virtual pc running Sql server to build the temporary database on. We want to get rid of this virtual pc as part of moving to AWS completely. I have been trying to use the RDS instance itself to build the scratch database on but so far without success.
Without specifying a temporary database name I get this error:
Dropping temporary database 'dlmautomation_d7708821-4c1d-4993-983e-e235bb7253f4' on
[13:28:21][Step 1/2] 'our rds instance sql server'.
[13:28:22][Step 1/2] Invoke-DlmDatabaseSchemaValidation : SQL script failed to execute: User does not have permission to perform this action
the securable needed for this ALTER ANY DATABASE is not available on RDS
When put in a temporary database name I get this error:
the securable needed for this ALTER ANY DATABASE is not available on RDS
When put in a temporary database name I get this error:
[13:07:44][Step 1/2] VERBOSE: Dropping users
[13:07:44][Step 1/2] WARNING: The error 'The server principal "our_redgate_user" is not able to access the database "redgate_temp" under
[13:07:44][Step 1/2] the current security context.' occurred when executing the following SQL:
@ERROR <> 0 SET NOEXEC ON
So it dropped itself and lost access to the temp database. On RDS the sysadmin role is not available
Is there anyone who got this scenario working?
So it dropped itself and lost access to the temp database. On RDS the sysadmin role is not available
Is there anyone who got this scenario working?
Tagged:
Answers
?