我的最终目标是在使用 RDS 作为数据库的 AWS EC2 实例上为 Drupal 7设置工作流。我希望能够在git aws.push
不影响我的 RDS 实例的情况下运行。
设置:
- 我将 Drupal 7 克隆到我的本地机器
- 我在 Web 控制台中设置了 Elastic Bean Stalk 应用程序、环境和 RDS 实例。
- 我
eb init
在 Drupal 目录中运行。这是我的 /.elasticbeanstalk/config:
应用程序名称=drupal
AwsCredentialFile=/path/to/.elasticbeanstalk/aws_credential_file
DevToolsEndpoint=git.elasticbeanstalk.[地区].amazonaws.com
EnvironmentName=[drupal-env]
EnvironmentTier=WebServer::标准::1.0
EnvironmentType=负载平衡
InstanceProfileName=aws-elasticbeanstalk-ec2-role
OptionSettingFile=/path/to.drupal/.elasticbeanstalk/optionsettings.[drupal-env]
RdsDeletionPolicy=快照
RdsEnabled=是
RdsSourceSnapshotName=test-snapshot-1 区域=[区域]
ServiceEndpoint=https://elasticbeanstalk.[REGION].amazonaws.com
SolutionStack=64bit Amazon Linux 运行 PHP 5.3
- 我
git aws.push
和文件已上传到 Elastic Bean Stalk,一切似乎都正常。
问题
运行git aws.push
还会重新启动我的 RDS 实例,导致数据丢失。我需要更改哪些内容才能在git aws.push
不重新启动/重新加载 RDS 实例的情况下运行?