1. 程式人生 > >Troubleshoot Dependency Errors When Deleting VPCs

Troubleshoot Dependency Errors When Deleting VPCs

To delete an Amazon VPC, first terminate your instances in the Amazon VPC. If the Amazon VPC has running Amazon EC2 instances, you will receive the following error: "VPC contains one or more instances, and cannot be deleted until those instances have been terminated."

If the Amazon VPC has network interfaces for other AWS services, such as Amazon Relational Database Service (Amazon RDS), Amazon WorkSpaces, or Amazon ElastiCache, you will receive one of the following errors:

  • Network vpc-xxxxxxxx has some mapped public address(es). Please unmap those public address(es) before detaching the gateway.
  • Network interface 'eni-xxxxxxxx' is currently in use.

To resolve these errors, determine which service is dependent by following these steps:

  1. Select the region that the Amazon VPC is in.
  2. In the navigation pane, under Network Interfaces, search for the VPC ID that you want to delete.
  3. Choose the elastic network interface, choose the Details view, and check the Description to see which resource the interface is attached to.
  4. Delete the associated resource.
    Note: If it is a Primary network interface, it will be deleted when you will delete the instance.

You must also delete any security group references from the default security group. If the default security group of the Amazon VPC references other security groups from the Amazon VPC, you will receive the following error: "Resource sg-xxxxxxxx has a dependent object". For more information about deleting security groups, see Deleting a Security Group.

相關推薦

Troubleshoot Dependency Errors When Deleting VPCs

To delete an Amazon VPC, first terminate your instances in the Amazon VPC. If the Amazon VPC has running Amazon EC2 instances, you will receive

Troubleshoot Error Received when Deleting an Amazon Aurora Cluster

If you delete the reader instance first and then delete the writer instance, you are prompted to take a final snapshot. After you enter a name

Troubleshoot HTTP 5xx Errors when using Elastic Load Balancing

The resolutions for HTTP 5XX vary. See the following pages for more information: HTTP 502 (Bad Gateway) HTTP 502 errors

Resolve Errors when Joining Organizations

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

Fix "CharacterStringTooLong" Errors When Creating TXT Records

As a workaround, you can create multiple records instead of using one. In this example, we create 2 records that each contain roughl

Resolve "Server Refused Our Key" Errors When Connecting to EC2 Instances

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

Resolve Errors when Deploying CodeDeploy Code Using PowerShell

Default behavior for PowerShell cmdlets is to return an exit code of 0 unless an unrecoverable or terminating error occurs, such as when attemp

Resolve "Access Denied" Errors When Running Amazon Athena Queries

Athena reads data from Amazon Simple Storage Service (Amazon S3) buckets using the AWS Identity and Access Management (IAM) credentials of the

Resolve Definer Errors When Using mysqldump

3.    Create or re-create the dump file without the definer option. The MySQL dump utility doesn't provide the option to remove a DE

Resolve Errors When Phone

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

Resolve "Invalid URL" Errors When Enabling SSL on Hive 0.13.x in EMR

Error: Invalid URL: jdbc:hive2://localhost:10000/default;ssl=true;sslTrustStore=/home/hadoop/keystore/truststore.jks;trustStorePassword==******

Resolve Errors Received when Changing or Deleting a PRECO Password in CloudHSM

{ "scard": { "certificate": "cert-sc", "enable": "no", "pkey": "pkey-sc", "port": 2225 }, "servers":

Troubleshoot Errors with Credentials when Connecting to 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

python mysql.connector.errors.InterfaceError: Use multi=True when executing multiple statements

一時疏乎,同一個 cursor.execute 下了 2個 sql command 就出錯了。 除了可以分成 2 次下 cursor.execute() 也可以在 cursor.execute 時增加 multi=True 引數。 合在一起下的  example: Using a for loop at

A quick intro to Dependency Injection: what it is, and when to use it

Why should I use dependency injection?Let’s say we have a car class which contains various objects such as wheels, engine, etc.Without dependency injection

What is dependency injection and when/why should or shouldn't it be used?

參考:https://stackoverflow.com/questions/130794/what-is-dependency-injection 原文:https://www.jamesshore.com/Blog/Dependency-Injection-Demystified.html The R

Troubleshoot HTTP 307 Errors in Amazon S3

After you create an Amazon S3 bucket, it can take up to 24 hours for the bucket name to propagate across all AWS Regions. During this time, you

Troubleshoot Issues Deleting VPC Security Groups

Default security group Default security groups can't be deleted. To verify if a security group is a default resource, follow these s

Troubleshoot HTTP 5xx Errors from Amazon S3

Enable a retry mechanism in the application making requests Because of the distributed nature of Amazon S3, requests that return 500

Troubleshoot HTTP 503 Errors While Using Classic Load Balancers

To see the number of healthy back-end instances behind your load balancer, check the HealthyHostCount and UnHealthyHostCount metrics in CloudWa