1. 程式人生 > >Change the VPC or Endpoint ID in an Amazon S3 Bucket Policy

Change the VPC or Endpoint ID in an Amazon S3 Bucket Policy

The VPC ID or VPC endpoint ID is not valid

If the VPC ID or VPC endpoint ID in the bucket policy is not valid (for example, it's mistyped or the VPC no longer exists), then you must have AWS account root user access to delete or edit the incorrect policy. You can't delete or edit the policy even with an AWS Identity and Access Management (IAM) user or role that has administrator-level access.

Note: These procedures don't apply to AWS GovCloud (US). If you're an AWS GovCloud (US) user, contact AWS Support for assistance.

Follow these steps to correct the bucket policy using the Amazon S3 console:

1.    Sign in to the Amazon S3 console as the root user.

2.    Select the bucket with the bucket policy that you want to delete or edit.
Note:

After you open the bucket, you might see an "Access Denied" error in the console. You can proceed with the next steps even if you see this error.

3.    Choose the Permissions view.

4.    Choose Bucket Policy.

5.    To delete the bucket policy entirely, choose Delete

. To edit only the VPC ID or VPC endpoint ID, correct the ID in the Bucket policy editor, and then choose Save.
Warning: If you delete the bucket policy entirely, be sure to keep a copy of the existing bucket policy for reference.

Follow these steps to correct the bucket policy using the AWS CLI:

Warning: This procedure uses root user credentials (access keys), which AWS recommends using only for emergency or recovery scenarios. Avoid using root account credentials unless necessary. For more information, see Lock Away Your AWS Account Root User Access Keys.

1.    Run this command to configure the AWS CLI:

相關推薦

Change the VPC or Endpoint ID in an Amazon S3 Bucket Policy

The VPC ID or VPC endpoint ID is not valid If the VPC ID or VPC endpoint ID in the bucket policy is not valid (for example, it's mis

【理解】column must appear in the GROUP BY clause or be used in an aggregate function

pin group func 函數 ear -- database nbsp like column "ms.xxx_time" must appear in the GROUP BY clause or be used in an aggregate function -

Change the VPC for an RDS DB Instance

Before you move the RDS DB instance to a new network, configure the new VPC, including the security group inbound rules, the subnet group, and

The type `HttpClient` is defined in an assembly that is not referenced

The type `HttpClient` is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Net.Http, Version=4.0.0.0, Cultur

[PWA] Show an Error when a POST or DELETE Fails in an Offline PWA

We're storing JSON data in the cache - but that only applies to HTTP GET requests - and not to POST or DELETE requests. We'l

Invalid update: invalid number of rows in section 0. The number of rows contained in an ....

報錯提示: Terminating app due to uncaught exception ‘NSInternalInconsistencyException’, reason: ‘Invalid update: invalid number of row

錯誤資訊:This application has requested the Runtime to terminate it in an ...

在Qt Creator環境下編寫C++程式呼叫攝像頭過程中提示錯誤資訊:“This application has requested the Runtime to terminate it in

Change the Default Payment Method Associated With an AWS Account

Amazon Web Services is Hiring. Amazon Web Services (AWS) is a dynamic, growing business unit within Amazon.com. We are currently hiring So

oracle 的自定義的儲存函式遇到的 package or function is in an invalid state

這是語法 我一開始這麼寫的 create function fun_test101(vid number) return number(10) is  usenum number(10); beg

Use Wildcards With Explicit Deny With Principle Elements in an S3 Bucket Policy

{ "Version": "2012-10-17", "Statement": [ { "Sid": "", "Effect": "Allow", "Principal": "*",

如何解決The remote endpoint was in state [TEXT_FULL_WRITING] which is an invalid state for called method

The remote endpoint was in state [TEXT_FULL_WRITING] which is an invalid state for called method的問題在於:handlerA和handlerB兩個方法有可能同時執行,當A或者B方法遍歷到某一個sessio

Set or Change the Root Password for an EC2 Linux Instance

Amazon Web Services is Hiring. Amazon Web Services (AWS) is a dynamic, growing business unit within Amazon.com. We are currently hiring So

使用websocket遇到的一個小問題 The remote endpoint was in state [TEXT_PARTIAL_WRITING] which is an invalid stat

當使用websocket,向前端實時推送訊息的時候,遇到如下異常: 2018-06-29 13:42:55 ERROR 988 --- [container-699] org.springframework.data.redis.listener.adap

kali 2016:mount ntfs 分區只讀 --Falling back to read-only mount because the NTFS partition is in an unsafe state.

start ack umount part fas mnt fast pan fsp mount ntfs 分區 mount /dev/sdb1 /mnt/d 提示: The disk contains an unclean file system (0, 0).Metad

git push 報錯:missing Change-Id in commit message footer

git push 評論 綠色 問題 push tid 還在 下載 異常 使用gerrit後,提交代碼會出現如下截圖問題: 臨時解決: step1:把上面紅色的那條gitidir復制下來執行下: step2:執行下面的命令會添加change_id   git c

The type 'System.Object' is defined in an assembly that is not referenced

wrap 移除 ace add consola -s 4.0 key defined 記錄一個錯誤,報 The type ‘System.Object‘ is defined in an assembly that is not referenced,[System.Run

react-native Could not find "store" in either the context or props

1.參考 https://stackoverflow.com/questions/35420989/could-not-find-store-in-either-the-context-or-props 2.在所有需要繫結Redux的檔案中使用connect 容器元件使用 connect() 方法連線 R

Find the kth largest element in an unsorted array A

Problem description Find the kth largest element in an unsorted array A . Note that it is the kth largest element in the sorted order, not the kth

"The conversion of a datetime2 data type to a datetime data type resulted in an out-of-range value

這句話的意思是將datetime2資料型別轉換為datetime資料型別會導致超出範圍的值。宣告已經終止。 在使用EF插入資料是發生列轉換的錯誤,搞了好久,不知道問題出在哪裡! 根據提示的錯誤資訊來看是Datetime資料型別出現錯誤 後來發現 public Nullable<S

雙擊Eclipse提示“The default workspace “xxxx” is in use or cannot be created Please choose a different on

原因 出現這種情況一般是workspace的配置檔案中出現了.lock檔案(workspace/.metadata/.lock),鎖定了workspace。 解決 把.lock檔案刪除即可。 如果該檔案不能刪除,可能是因為javaw.exe程序未結束,結束該程序及eclipse