1. 程式人生 > >Resolve HTTP 403 Access Denied Error From an S3 REST API Endpoint Origin in Amazon CloudFront

Resolve HTTP 403 Access Denied Error From an S3 REST API Endpoint Origin in Amazon CloudFront

{
    "Version": "2008-10-17",
    "Id": "PolicyForCloudFrontPrivateContent",
    "Statement": [
        {
            "Sid": "Allow-OAI-Access-To-Bucket",
            "Effect": "Allow",
            "Principal": {
                "AWS": "arn:aws:iam::cloudfront:user/CloudFront OAI EAF5XXXXXXXXX"
            },
            "Action": "s3:GetObject",
            "Resource": [
                "arn:aws:s3:::example-bucket/*"
            ]
        },
        {
            "Sid": "Allow-Public-Access-To-Bucket",
            "Effect": "Allow",
            "Principal": "*",
            "Action": "s3:GetObject",
            "Resource": [
                "arn:aws:s3:::example-bucket/*"
            ]
        },
        {
            "Sid": "Access-to-specific-VPCE-only",
            "Effect": "Deny",
            "Principal": "*",
            "Action": "s3:GetObject",
            "Resource": [
                "arn:aws:s3:::example-bucket/*"
            ],
            "Condition": {
                "StringNotEquals": {
                    "aws:sourceVpce": "vpce-1a2b3c4d"
                }
            }
        }
    ]
  }

相關推薦

Resolve HTTP 403 Access Denied Error From an S3 REST API Endpoint Origin in Amazon CloudFront

{ "Version": "2008-10-17", "Id": "PolicyForCloudFrontPrivateContent", "Statement": [ { "Sid": "Allow-OAI-Access-

Resolve HTTP 403 Access Denied Error From an S3 Website Endpoint Origin in Amazon CloudFront

{ "Version": "2008-10-17", "Id": "PolicyForCloudFrontPrivateContent", "Statement": [ { "Sid": "Allow-OAI-Access-

Troubleshoot S3 HTTP 403: Access Denied Error

Issues in the bucket policy or IAM user policies Review the bucket policy or associated IAM user policies for any state

Tomcat8.5管理頁面403 Access Denied的解決方法

編程語言 Java tomcat 管理頁面 403錯誤 安裝tomcat之後,訪問server status、manager app、host manager等頁面,出現403 Access Denied錯誤, 解決方法:1. 在conf/tomcat-users.xml文件裏面,在&l

使用tortoisegit工具git地址中帶號碼密碼的拉取,以及使用這種方式後中途重置密碼報git remote: HTTP Basic: Access denied 錯誤解決辦法

com ESS In 進行 push 解析 比較 分隔 如果 1. 在拉取git項目時可以在地址中直接指定號碼密碼如下就可以直接拉取下來 https://username:[email protected] 需要註意,因為在解析地址時是以@符號作為地址信息和用戶信

git中出現remote: HTTP Basic: Access denied

解決方法 賬號密碼 遠程服務 true The 保存 不能 方法 sse git中出現remote: HTTP Basic: Access denied 1.git clone時出現 Username for ‘http://******‘: *** rem

Git錯誤--git remote: HTTP Basic: Access denied

問題 早上修改了公司gitlab的密碼,然後再去拉取程式碼時,就出現了: remote: HTTP Basic: Access denied fatal: Authentication failed for 'http://gitlab.***.com/***.git/' 原因

Resolve Route 53 Private Hosted Zones From an On

You can resolve domain names in private hosted zones from your on-premises network by configuring a DNS forwarder. The following instructions a

Tomcat8訪問管理頁面localhost出現:403 Access Denied

問題: 403 Access Denied You are not authorized to view this page. If you have already configured the Manager application to allow access and you ha

tomcat管理頁面403 Access Denied的解決方法

安裝tomcat,配置好tomcat環境變數以後,訪問manager app頁面,出現403 Access Denied錯誤,解決的方法如下: 首先在conf/tomcat-users.xml檔案裡面,在</tomcat-users>前面新增如下程式碼: <

解決VS2017啟動失敗,提示Access Denied Error的問題

之前因為要用.NET Core相關的預研,裝上了vs2017社群版。 最近在做編碼規範支援的時候,安裝完EditorConfig Language Service外掛後,發現vs打不開了,提示Access Denied Error,在ActivityLog.x

solr部署tomcat 訪問HTTP Status 403Access to the requested resource has been denied

height AC target win7 denied erl 重啟 出現 ora -----------解決403錯誤看這裏!!-----------打開****\Tomcat 8.5\webapps\solr\WEB-INF裏面的web.xml,把下面這段配置註釋掉!

struts2下無法用直接通過路徑訪問.jsp的頁面:HTTP Status 403 - Access to the requested resource has been denied

struts2下無法用直接通過路徑訪問.jsp的頁面 http://localhost:8081/struts2_020/index.jsp 訪問會出錯,   HTTP Status 403 - Access to the requested resource has be

MYSQL: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)

tar new ica host star init upd pass skip 1) /etc/init.d/mysqld stop2) mysqld_safe --skip-grant-tables &3) mysql -u root4) Setup new M

ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'mysql'

centos 解決 ice 個數 oca 用戶 acc 登錄 use 在centos下安裝好了mysql,用root帳號連上mysql,然後創建一個數據庫,提示下圖錯誤:   提示:ERROR 1044 (42000): Access denied for user [e

ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)

註釋 .cn tables table 數據 mysql數據庫 using ice 登錄 解決: (1)修改my.cnf中[mysqld]中增加skip-grant-tables (2)重啟mysql數據庫:service mysqld restart (3)無密碼登錄my

ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

mage ron 打開 技術分享 -1 密碼 logs erro password ERROR 1045 (28000): Access denied for user ‘root‘@‘localhost‘ (using password: NO) 問題: 解

ERROR 1045 (28000): Access denied for user 'root'@'localhost'

plain set tables mys res div ror localhost number #1.停止mysql數據庫 /etc/init.d/mysqld stop #2.執行如下命令 mysqld_safe --user=mysql --skip-grant

ERROR 1044 (42000): Access denied for user 'root'@'localhost' to database 'mysql'(轉)

gpo style new quit ini pass clear set mys 解決ERROR 1044 (42000): Access denied for user ‘‘@‘localhost‘ to database ‘mysql‘ 原創 2014年05月11

mysql ERROR 1045 (28000): Access denied for user解決方法

部分 set pda 數據庫 update 密碼登錄 重啟 password 沒有權限 問題重現(以下討論範圍僅限Windows環境): C:\AppServ\MySQL> mysql -u root -pEnter password:ERROR 1045 (2800