Class: Chef::Provider::AwsVpc
- Inherits:
-
Chef::Provisioning::AWSDriver::AWSProvider
- Object
- LWRPBase
- Chef::Provisioning::AWSDriver::AWSProvider
- Chef::Provider::AwsVpc
- Defined in:
- lib/chef/provider/aws_vpc.rb
Defined Under Namespace
Classes: NeverObtainedExistence
Constant Summary
Constants inherited from Chef::Provisioning::AWSDriver::AWSProvider
Chef::Provisioning::AWSDriver::AWSProvider::AWSResource
Instance Attribute Summary
Attributes inherited from Chef::Provisioning::AWSDriver::AWSProvider
Instance Method Summary collapse
Methods included from Chef::Provisioning::AWSDriver::TaggingStrategy::EC2ConvergeTags
Methods inherited from Chef::Provisioning::AWSDriver::AWSProvider
#action_handler, #converge_by, #region, #whyrun_supported?
Instance Method Details
#action_create ⇒ Object
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 38 39 40 |
# File 'lib/chef/provider/aws_vpc.rb', line 13 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 |