Class: EcsDeployCli::Runners::Setup
- Defined in:
- lib/ecs_deploy_cli/runners/setup.rb
Defined Under Namespace
Classes: SetupError
Constant Summary collapse
- REQUIRED_ECS_ROLES =
{ 'ecsInstanceRole' => 'https://docs.aws.amazon.com/batch/latest/userguide/instance_IAM_role.html', 'ecsTaskExecutionRole' => 'https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_execution_IAM_role.html' }.freeze
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from EcsDeployCli::Runners::Base
Instance Method Details
#run! ⇒ Object
12 13 14 15 16 17 18 19 20 21 |
# File 'lib/ecs_deploy_cli/runners/setup.rb', line 12 def run! services, resolved_tasks, _, = @parser.resolve ensure_ecs_roles_exists! setup_cluster! setup_services! services, resolved_tasks: resolved_tasks rescue SetupError => e EcsDeployCli.logger.info e. end |