Class: PangeaOrchestrator::Resources::EKS
- Inherits:
-
Object
- Object
- PangeaOrchestrator::Resources::EKS
- Defined in:
- lib/pangea-orchestrator/resources/eks.rb
Class Method Summary collapse
Class Method Details
.cluster(*_args, **kwargs) ⇒ Object
17 18 19 20 21 22 23 24 25 26 |
# File 'lib/pangea-orchestrator/resources/eks.rb', line 17 def cluster(*_args, **kwargs) kwargs = symbolize(kwargs) resource_name = kwargs[:resource_name] name = kwargs[:name] synthesizer.synthesize do resource :aws_eks_cluster, resource_name do name name end end end |
.symbolize(hash) ⇒ Object
13 14 15 |
# File 'lib/pangea-orchestrator/resources/eks.rb', line 13 def symbolize(hash) JSON[JSON[hash, symbolic_names: true]] end |
.synthesizer ⇒ Object
9 10 11 |
# File 'lib/pangea-orchestrator/resources/eks.rb', line 9 def synthesizer @synthesizer ||= TerraformSynthesizer.new end |