-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is a 2nd attempt at PR #229 which was reverted in commit 698a3ff. The first attempt failed because AWS wanted to re-create the ECS service without first deleting the existing resource therefore cloudformation responded with this error.. ``` TowerService AWS::ECS::Service UPDATE_FAILED Resource handler returned message: "Resource of type 'AWS::ECS::Service' with identifier 'Nextflow-Tower-Service' already exists." ``` This PR will require some manual intervention to help guide it thru.
- Loading branch information
Showing
5 changed files
with
83 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
template: | ||
path: nextflow-ecs-service-shared.yaml | ||
stack_name: nextflow-ecs-service-shared | ||
|
||
stack_tags: | ||
{{stack_group_config.default_stack_tags}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
AWSTemplateFormatVersion: '2010-09-09' | ||
Description: Shared resources Nextflow Tower ECS Service | ||
|
||
Resources: | ||
EcsServiceRole: | ||
Type: AWS::IAM::Role | ||
Properties: | ||
AssumeRolePolicyDocument: | ||
Statement: | ||
- Effect: Allow | ||
Principal: | ||
Service: | ||
- ecs.amazonaws.com | ||
Action: | ||
- sts:AssumeRole | ||
Path: / | ||
Policies: | ||
- PolicyName: ecs-service | ||
PolicyDocument: | ||
Statement: | ||
- Effect: Allow | ||
Action: | ||
- elasticloadbalancing:DeregisterInstancesFromLoadBalancer | ||
- elasticloadbalancing:DeregisterTargets | ||
- elasticloadbalancing:Describe* | ||
- elasticloadbalancing:RegisterInstancesWithLoadBalancer | ||
- elasticloadbalancing:RegisterTargets | ||
- ec2:Describe* | ||
- ec2:AuthorizeSecurityGroupIngress | ||
Resource: '*' | ||
|
||
Outputs: | ||
EcsServiceRoleArn: | ||
Value: !GetAtt EcsServiceRole.Arn | ||
Export: | ||
Name: !Sub '${AWS::Region}-${AWS::StackName}-EcsServiceRoleArn' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters