Elastic Beanstalk + AWS :: RDS :: DBInstance = InvalidParameterValue?

时间:2017-05-03 18:13:34

标签: amazon-web-services amazon-ec2 elastic-beanstalk amazon-rds

我有一个工作弹性beanstalk环境,由boto3启动。不幸的是,当我尝试使用环境启动RDS实例时,它会失败并以错误import sys from importlib.util import spec_from_file_location, module_from_spec spec_file = spec_from_file_location("file_module", 'test_file.py') spec_module = module_from_spec(spec_file) spec_file.loader.exec_module(spec_module) sys.modules['file_module'] = spec_module # spec module import inspect assert isinstance(inspect.getsource(spec_module), str) # function in spec module func_obj = getattr(spec_module, 'test_function') assert isinstance(inspect.getsource(func_obj), str) # class in spec module class_obj = getattr(spec_module, 'testClass') try: inspect.getsource(class_obj) # This should work now except TypeError: print('where did the source code data go?') 终止,但不会指示哪个参数无效。

我唯一改变的是将文件InvalidParameterValue: null添加到01_rds.config

.ebextensions

基于documentation,这应该是我所需要的。

我也尝试了这些额外的属性,结果相同:

Resources:
    AWSEBRDSDatabase:
        Type: AWS::RDS::DBInstance
        Properties:
            AllocatedStorage: 5
            CopyTagsToSnapshot: true
            DBInstanceClass: db.t2.micro
            DBSnapshotIdentifier: arn:aws:rds:us-west-2:xxxxxxxxxxxx:snapshot:env-qa-seed
            DBSubnetGroupName: "env-qa-staging"

0 个答案:

没有答案