-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nextflow ECS Service and ALB #48
Conversation
…toScaling instead
auth: | ||
github: | ||
allow-list: | ||
- tess.thyer@gmail.com |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This list will be built out more later -- this configuration does not appear to be taking hold. Waiting to hear back from support about this.
content: | | ||
ECS_CLUSTER=${EcsClusterName} | ||
ECS_BACKEND_HOST= | ||
ECS_IMAGE_PULL_BEHAVIOR=prefer-cached |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note this is the setting I discovered that we need in ECS last year. Got rate-limited again while testing this infrastructure -- it was crashing, so kept trying to re-pull all the images.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did my best reviewing this PR since there are a lot of resources that I haven't used or written CFN templates for. It looks good to me! 🚀
I only had a few questions for my own personal curiosity.
EcsAlbSecurityGroupIngress: | ||
Type: AWS::EC2::SecurityGroupIngress | ||
Properties: | ||
GroupId: !GetAtt EcsAlbSecurityGroup.GroupId |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For my own information, is there an advantage of using GetAtt
over Ref
in this case? I can see how it's more readable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is an important difference b/tw Ref
and GetAtt
. Most CFN resources have some default value they return when you use the Ref
function. For example, the security group documentation indicates that Ref
returns the resource id rather than the group id. Many CFN resources allow one to access additional fields -- this is always through GetAtt
. For a security group the additional fields are the GroupId and the VpcId.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, I was under the impression that in this case, the resource ID returned by Ref
would be the security group ID.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think in the case of security groups resource id == group id but can't recall.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
phew, that was a wopper!
Primarily:
Secondarily:
Related JIRA tickets: WORKFLOWS-37 and WORKFLOWS-38