32160/getting-error-while-deleting-my-vpc
AttributeError: 'ec2.ServiceResource' object has no attribute 'delete_vpc'
This is the error I am getting.
I am using the following code:
import boto3 ec2 = boto3.resource('ec2') ec2client.delete_vpc(VpcId = 'vpc-id')
Can someone help me with this?
This is the code to delete the VPC. Make sure you don't delete the default VPC as it is created by Amazon and can't be recreated by you.
import boto3 ec2 = boto3.resource('ec2') ec2client = ec2.meta.client ec2client.delete_vpc(VpcId = 'vpc-id')
This way you can delete the vpc. Hope this helps
add the server_name directive to your Nginx ...READ MORE
Due to some technical difficulties on the ...READ MORE
The problem is having wrong mod on ...READ MORE
For the first error you should add ...READ MORE
The error clearly says the error you ...READ MORE
Here is the code to attach a ...READ MORE
Here is a simple implementation. You need ...READ MORE
You can view this answer here : https://www.edureka.co/community/32160/getting-error-while-deleting-my-vpc Before ...READ MORE
You can visit the link here and ...READ MORE
The error says you have entered a ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.