Class: Chef::Provider::AwsVpc
- Inherits:
-
Chef::Provisioning::AWSDriver::AWSProvider
- Object
- Chef::Provisioning::AWSDriver::AWSProvider
- Chef::Provider::AwsVpc
- Defined in:
- lib/chef/provider/aws_vpc.rb
Defined Under Namespace
Classes: NeverObtainedExistence
Instance Method Summary collapse
Instance Method Details
#action_create ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/chef/provider/aws_vpc.rb', line 10 def action_create vpc = super # Update DNS attributes update_vpc_attributes(vpc) # # Attach/detach internet gateway # if !new_resource.internet_gateway.nil? update_internet_gateway(vpc) end # Replace the main route table for the VPC if !new_resource.main_route_table.nil? update_main_route_table(vpc) end # Update the main route table if !new_resource.main_routes.nil? update_main_routes(vpc, new_resource.main_route_table) end # Update DHCP options if !new_resource..nil? (vpc) end end |