Class: Ufo::Cfn::Stack::Vpc
- Inherits:
-
Base
- Object
- Ufo::CLI::Base
- Base
- Ufo::Cfn::Stack::Vpc
- Extended by:
- Memoist
- Includes:
- TaskDefinition::Helpers
- Defined in:
- lib/ufo/cfn/stack/vpc.rb
Instance Attribute Summary
Attributes inherited from Ufo::CLI::Base
Instance Method Summary collapse
- #ecs_subnets ⇒ Object
- #elb_subnets ⇒ Object
- #id ⇒ Object (also: #vpc_id)
- #subnets(subnets) ⇒ Object
- #vpc ⇒ Object
Methods included from Ufo::Concerns
Methods included from Ufo::Concerns::Names
Methods included from AwsServices
#acm, #applicationautoscaling, #aws_options, #cfn, #cloudwatchlogs, #ec2, #ecr, #ecs, #elb, #s3, #ssm_client, #waf_client
Methods included from AwsServices::Concerns
#find_stack, #find_stack_resources, #stack_resources, #status, #task_definition_arns
Methods inherited from Ufo::CLI::Base
Methods included from Utils::Sure
Methods included from Utils::Pretty
#pretty_home, #pretty_path, #pretty_time
Methods included from Utils::Logging
Constructor Details
This class inherits a constructor from Ufo::CLI::Base
Instance Method Details
#ecs_subnets ⇒ Object
19 20 21 |
# File 'lib/ufo/cfn/stack/vpc.rb', line 19 def ecs_subnets subnets(vpc.subnets.ecs) end |
#elb_subnets ⇒ Object
15 16 17 |
# File 'lib/ufo/cfn/stack/vpc.rb', line 15 def elb_subnets subnets(vpc.subnets.elb) end |
#id ⇒ Object Also known as: vpc_id
6 7 8 |
# File 'lib/ufo/cfn/stack/vpc.rb', line 6 def id vpc.id ? vpc.id : default_vpc end |
#subnets(subnets) ⇒ Object
23 24 25 26 27 28 29 |
# File 'lib/ufo/cfn/stack/vpc.rb', line 23 def subnets(subnets) if subnets subnets.is_a?(String) ? subnets : subnets.join(',') else subnets_for(vpc_id).join(',') # default vpc subnets or all subnets for the configured vpc end end |