1

我的最终目标是在使用 RDS 作为数据库的 AWS EC2 实例上为 Drupal 7设置工作流。我希望能够在git aws.push不影响我的 RDS 实例情况下运行。

设置:

  1. 我将 Drupal 7 克隆到我的本地机器
  2. 我在 Web 控制台中设置了 Elastic Bean Stalk 应用程序、环境和 RDS 实例。
  3. 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

  1. git aws.push和文件已上传到 Elastic Bean Stalk,一切似乎都正常。

问题

运行git aws.push 还会重新启动我的 RDS 实例,导致数据丢失。我需要更改哪些内容才能在git aws.push不重新启动/重新加载 RDS 实例的情况下运行?

4

1 回答 1

2

当您运行 >eb init 时,它会在其中一个步骤中询问您是否要创建新的 RDS 实例,您应该回答否。

于 2014-01-30T03:32:23.987 回答