1. 程式人生 > >Avoid "Unable to validate the following destination configurations" When Using S3 Event Notifications

Avoid "Unable to validate the following destination configurations" When Using S3 Event Notifications

{
  "Parameters": {
    "paramBucketName": {
      "Type": "String",
      "Description": "Bucket Name"
    }
  },
  "Resources": {
    "SNSTopic": {
        "Type": "AWS::SNS::Topic"
    },
    "SNSTopicPolicy": {
        "Type": "AWS::SNS::TopicPolicy",
        "Properties": {
            "PolicyDocument": {
                "Id": "MyTopicPolicy",
                "Version": "2012-10-17",
                "Statement": [
                    {
                        "Sid": "Statement-id",
                        "Effect": "Allow",
                        "Principal": { "AWS": "*" },
                        "Action": "sns:Publish",
                        "Resource": { "Ref": "SNSTopic" },
                        "Condition": {
                            "ArnLike": {
                                "aws:SourceArn": { "Fn::Join": [ "", [ "arn:aws:s3:::", {"Ref": "paramBucketName"} ]]} }
                        }
                    }
                ]
            },
            "Topics": [ { "Ref": "SNSTopic" } ]
        }
    },
    "S3Bucket": {
        "Type": "AWS::S3::Bucket",
        "DependsOn": ["SNSTopicPolicy"],
        "Properties": {
            "AccessControl": "BucketOwnerFullControl",
            "BucketName": {"Ref": "paramBucketName"},
            "NotificationConfiguration": {
                "TopicConfigurations": [
                    {
                        "Topic": { "Ref": "SNSTopic" },
                        "Event": "s3:ObjectCreated:Put"
                    }
                ]
            }
        }
    }
  }
}

相關推薦

Avoid "Unable to validate the following destination configurations" When Using S3 Event Notifications

{ "Parameters": { "paramBucketName": { "Type": "String", "Description": "Bucket Name" } }, "Resources": { "SNSTopi

redis:Unable to validate object ;Could not get a resource from the pool;(error) MISCONF Redis is con

原因: 強制關閉Redis快照導致不能持久化。 解決方式: 登入redis : redis-cli 127.0.0.1:6379>config set stop-writes-on-bgsave-error no ok 解決 ! 參考文章:

Solved Unable to copy the source file ./installer/services.sh to the destination file /etc/vmware-t

Sometimes when you intall vmwaretools there will be some problems such as "Unable to copy the source file ./installer/services.sh to the

安裝xcode6 beta 後調試出現Unable to boot the iOS Simulator以及編譯蘋果官方Swift的demo報錯failed with exit code 1的解決的方法

imu fonts mat 詳細說明 watermark data- 重新啟動 技術分享 說明 蘋果昨天公布新語言Swift(雨燕),須要安裝xcode6 以及mac os 系統為10.9以上。 (xcode6 beta 可在官方下載。須要登錄開發人員賬號;mac os

zbb20171017 svn Cleanup failed to process the following paths錯誤的解決

pat from rom 下載 解決 src 搜索 目錄 fcm 在使用TortoiseSVN工具執行Cleanup操作時經常出現Cleanup failed to process the following paths的錯誤,具體如下圖: Cleanup failed

VirtualBox 在WIN7 X64 安裝報錯 獲取VirtualBox COM對象失敗,Unable to start the virtual device

device class mode gis col model gist try .cn Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\CLSID\{00020420-0000-0000-C000-000

CloudStack: unable to add the host

cloudstack一、故障現象cloudstack添加宿主機,報錯“unable to add the host”,然後虛擬機宿主機也沒法添加到cloudstack的管理。二、處理過程然後查看了下宿主機的/var/log/cloudstack/agent/agent.log日誌,沒有發現有什麽異常,查看管理

Unable to access the IIS metabase

roo admin root -c and logs ssi href man https://stackoverflow.com/questions/12859891/error-unable-to-access-the-iis-metabase 解決方法1

redis:java.util.NoSuchElementException: Unable to validate object

cnblogs exception 127.0.0.1 集群 發布 ping通 component redis集群 date redis.clients.jedis.exceptions.JedisException: Could not get a resource f

Unable to register the DLL/OCX: RegSvr32 failed with exit code 0x3 我的解決方法

通過 depend led end blog unable ocx div IT 一個在win7 64位下能正常註冊的ocx 在XP下註冊時報錯,Unable to register the DLL/OCX: RegSvr32 failed with exit code

file_get_contents()獲取https出現這個錯誤Unable to find the wrapper “https” – did

AC ans html 解決 itl follow htm erer -c file_get_contents()獲取https出現這個錯誤Unable to find the wrapper “https” – did 解決辦法一,如果你是用的服務器,可以參考這個辦法

安裝Neo4j提示:Unable to determine the path to java.exe

neo4j安裝Neo4j 壓縮版時提示如圖所示的錯誤:出現這種原因是發現系統沒有安裝相應的java環境。從java網站現在java開發軟件: 安裝完jdk,這後在安裝 neo4j 如圖:安裝Neo4j提示:Unable to determine the path to java.exe

npm 報錯unable to verify the first certificate

HR script view 國內鏡像 number onf statistic lse sdn npm總是報錯:unable to verify the first certificate 原創 2017年09月30日 11:06:10 https://blog.csd

Error:Unable to make the module:***, related gradle configuration was not found. Please, re-import the Gradle project and try again.

RR ble err alt conf related error: found ref 打開idea的 View -> Tool Windows -> Gradle.然後點擊 Refresh Error:Unable to make the mod

Unable to create the django_migrations table (%s)

%s 環境 syn nag manage right error man 版本 環境:python3.6 + django2.1 +mysql5.5執行python manage.py migrate時報錯如下 “Unable to create the django_mi

uwsgi部署相關問題Fatal Python error: Py_Initialize: Unable to get the locale encoding

directory config add bound int binary smp odi byte uwsgi uwsgi.ini 啟動報錯 ini文件中切換用戶nginx後,因為權限問題,python虛擬環境變成了系統默認環境,缺少很多庫。 另外切換用戶啟動,

報錯 raise MigrationSchemaMissing("Unable to create the django_migrations table (%s)" % exc)

django http spa col miss ons tab simple pytho Django 執行遷移生成表: python manage.py migrate 報錯: raise MigrationSchemaMissing("Unable to cre

錯誤筆記: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration di

不能 ava 可用 pro virtual cache 出現 nav ive 親測可用 --jack alexander@alexander-virtual-machine:~$ sudo apt-get install -y httpdE: Could not get

Unable to build: the file dx.jar was not loaded from the SDK folder!

eclipse 執行 android 時失敗了,提示 Unable to build: the file dx.jar was not loaded from the SDK folder!確保dx.jar這個檔案在platform-tools\lib和選擇的開發版本lib中的檔案一致就可以;我用的 Andr

解決Eclipse報錯顯示Unable to build: the file dx.jar was not loaded from the SDK folder

由於最近通過SDK-Manager更新了build-tools,當要用到dx.jar這個包時,自動呼叫最新build-tools中dx.jar,但是執行android專案時Console卻提示:   Failed to load C:\Program Files (x86)\And