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(name:, resource_name: nil) ⇒ Object
17 18 19 20 21 22 23 24 |
# File 'lib/pangea-orchestrator/resources/eks.rb', line 17 def cluster(name:, resource_name: nil) resource_name = name if resource_name.nil? 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, symbolize_name: true]] end |
.synthesizer ⇒ Object
9 10 11 |
# File 'lib/pangea-orchestrator/resources/eks.rb', line 9 def synthesizer @synthesizer ||= TerraformSynthesizer.new end |