简体   繁体   English

使用Jenkins从GIT到AWS SQL Server的数据库脚本自动化?

[英]DB scripts automation from GIT to AWS SQL server using Jenkins?

Hi Is there any one who can help me out with this.... 嗨,有没有人可以帮助我解决这个问题呢?

I was trying to automate some DB scripts migration using Jenkins. 我试图使用Jenkins自动执行一些数据库脚本迁移。 All I am doing is Using a Jenkins job trying to migrate DB scripts which are in GIT repository to AWS server (SQL server 2008-R2) and execute those scripts... 我正在做的是使用Jenkins作业尝试将GIT存储库中的DB脚本迁移到AWS服务器(SQL Server 2008-R2)并执行这些脚本...

What all the server and access credentials I need to have from DB server end(like access key, secret key, DNS name..etc) in order to configure a Jenkins job. 为了配置Jenkins作业,我需要从数据库服务器端获得的所有服务器和访问凭据(例如访问密钥,秘密密钥,DNS名称等)。

SQL access to the DB 通过SQL访问数据库

For SQL access to the DB you need the following: 为了通过SQL访问数据库,您需要:

  • Hostname or RDS endpoint 主机名或RDS端点
  • TCP port number TCP端口号
  • DB name 数据库名称
  • DB user 数据库用户
  • DB password 数据库密码

The Jenkins machine needs network access to the DB host, which means you need to allow this in the Security Groups and have VPC connectivity. Jenkins计算机需要对数据库主机的网络访问权限,这意味着您需要在安全组中允许此访问并具有VPC连接性。

AWS API access AWS API访问

For API access to AWS, the best practice is to have an IAM role assigned to the Jenkins machine. 为了对AWS进行API访问,最佳做法是为Jenkins计算机分配一个IAM角色。 The role should have necessary permissions in the IAM policies attached to it. 该角色应该在附加的IAM策略中具有必要的权限。

In addition, you need to have internet access from the Jenkins machine or configure VPC endpoints so that Jenkins can reach the AWS API. 此外,您需要从Jenkins机器访问Internet或配置VPC终端节点,以便Jenkins可以访问AWS API。

NOTE: You can't assign an IAM role to an existing EC2 machine. 注意:您不能将IAM角色分配给现有的EC2计算机。 IAM roles can only be assigned during instance creation. IAM角色只能在实例创建期间分配。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用来自 AWS S3 存储桶的.BAK 文件恢复或覆盖 AWS RDS 中的现有 SQL 服务器数据库 - Restore or Overwrite existing SQL Server DB in AWS RDS using .BAK File from AWS S3 Bucket TortoiseSVN SQL脚本自动化 - TortoiseSVN SQL scripts automation 是否可以使用 DMS 将数据库从 GoDaddy 复制到 AWS SQL 服务器 RDS 中的数据库? - Is it possible to replicate DB from GoDaddy to Database in AWS SQL Server RDS using DMS? 无法使用AWS数据迁移服务将数据从sql服务器迁移到aurora Mysql DB - Unable to migrate data from sql server to aurora Mysql DB using AWS data migration service SQL Server OLE DB-使用RowSet从数据库中选择数据 - SQL Server OLE DB - select data from DB using RowSet SQL Server:使用触发器实现工作流自动化 - SQL Server: Using triggers for workflow automation 任何人都使用 NATIVE 复制而不是 AWS DMS 将 sql server db 复制到 AWS - Anyone replicated a sql server db into AWS using NATIVE replication NOT AWS DMS 将 SQL Server 迁移到新的 AWS Aurora 数据库 - Migrating SQL Server to New AWS Aurora DB 使用.net框架生成sql server脚本 - Generate sql server scripts using .net framework 如何使用字段ID从SQL Server DB获取字段名 - How to get fieldname from SQL Server DB using the field ID
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM