AWS services or capabilities described in AWS Documentation may vary by region/location. Click
Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Class: Aws::RailsProvisioner::Fargate
- Inherits:
-
Object
- Object
- Aws::RailsProvisioner::Fargate
show all
- Defined in:
- lib/aws-rails-provisioner/fargate.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
Constructor Details
#initialize(options = {}) ⇒ Fargate
Configuration value under :fargate
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# File 'lib/aws-rails-provisioner/fargate.rb', line 37
def initialize(options = {})
@has_db = !!options[:has_db]
@service_name = options[:service_name]
@desired_count = options[:desired_count] || 2
@public = !!options[:public]
@domain_name = options[:domain_name]
@domain_zone = options[:domain_zone]
@certificate = options[:certificate]
@memory = options[:memory] || 512
@cpu = options[:cpu] || 256
@envs = Aws::RailsProvisioner::Utils.to_pairs(options[:envs]) if options[:envs]
@container_port = options[:container_port] || 80
@container_name = options[:container_name] || 'FargateTaskContainer'
end
|
Instance Attribute Details
#certificate ⇒ String
75
76
77
|
# File 'lib/aws-rails-provisioner/fargate.rb', line 75
def certificate
@certificate
end
|
#container_name ⇒ String
90
91
92
|
# File 'lib/aws-rails-provisioner/fargate.rb', line 90
def container_name
@container_name
end
|
#container_port ⇒ Integer
87
88
89
|
# File 'lib/aws-rails-provisioner/fargate.rb', line 87
def container_port
@container_port
end
|
#cpu ⇒ Integer
84
85
86
|
# File 'lib/aws-rails-provisioner/fargate.rb', line 84
def cpu
@cpu
end
|
#desired_count ⇒ Integer
60
61
62
|
# File 'lib/aws-rails-provisioner/fargate.rb', line 60
def desired_count
@desired_count
end
|
#domain_name ⇒ String
69
70
71
|
# File 'lib/aws-rails-provisioner/fargate.rb', line 69
def domain_name
@domain_name
end
|
#domain_zone ⇒ String
72
73
74
|
# File 'lib/aws-rails-provisioner/fargate.rb', line 72
def domain_zone
@domain_zone
end
|
#envs ⇒ Array
78
79
80
|
# File 'lib/aws-rails-provisioner/fargate.rb', line 78
def envs
@envs
end
|
#memory ⇒ Integer
81
82
83
|
# File 'lib/aws-rails-provisioner/fargate.rb', line 81
def memory
@memory
end
|
#public ⇒ Boolean
66
67
68
|
# File 'lib/aws-rails-provisioner/fargate.rb', line 66
def public
@public
end
|
#service_name ⇒ String
63
64
65
|
# File 'lib/aws-rails-provisioner/fargate.rb', line 63
def service_name
@service_name
end
|