Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/amazon-s3/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Amazon web services 是否可以使用CFT将NotificationConfiguration添加到现有的S3存储桶中?_Amazon Web Services_Amazon S3_Aws Lambda_Amazon Cloudformation - Fatal编程技术网

Amazon web services 是否可以使用CFT将NotificationConfiguration添加到现有的S3存储桶中?

Amazon web services 是否可以使用CFT将NotificationConfiguration添加到现有的S3存储桶中?,amazon-web-services,amazon-s3,aws-lambda,amazon-cloudformation,Amazon Web Services,Amazon S3,Aws Lambda,Amazon Cloudformation,我还是AWS服务的新手 我想使用CloudFormation模板(CFT)在现有S3存储桶上添加一个Lambda触发器。这可能吗 下面的CFT正在尝试创建一个新的S3 bucket并在其上添加一个事件通知 S3BUCKET_NOTIFCATION = Bucket( "S3Bucket", BucketName=s3_bucket("confidential", Ref(ENV)), NotificationConfiguration=No

我还是AWS服务的新手

我想使用CloudFormation模板(CFT)在现有S3存储桶上添加一个Lambda触发器。这可能吗

下面的CFT正在尝试创建一个新的S3 bucket并在其上添加一个事件通知

    S3BUCKET_NOTIFCATION = Bucket(
        "S3Bucket",
        BucketName=s3_bucket("confidential", Ref(ENV)),
        NotificationConfiguration=NotificationConfiguration(
            LambdaConfigurations=[
                LambdaConfigurations(
                    Event="s3:ObjectCreated:*",
                    Filter=Filter(
                        S3Key=S3Key(
                            Rules=[Rules(Name="prefix", Value=Ref(inputKeyPrefix)),
                                   Rules(Name="suffix", Value=".json")]
                        )
                    ),
                    Function=Ref(cost_function)
                )
            ]
        )
    )

是否可以将
NotificationConfiguration
添加到现有bucket?

我也无法将
NotificationConfiguration
添加到现有bucket。当您尝试时,会出现错误
CREATE\u失败。原因:S3\u存储桶已存在

这详细说明了不允许修改预先存在的铲斗。这似乎仍然是正确的