-
Notifications
You must be signed in to change notification settings - Fork 28
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
SAS in Amazon cloud #90
base: master
Are you sure you want to change the base?
Conversation
|
||
**Configure Security Settings**: If you have a certificate then assign this to your Load balancer. As load balancers are quite expensive it makes sense to re-use them for different services. If you plan to do this then it is a good idea to create a wildcard certificate and assign it here. | ||
|
||
**Security policy**: BEN WHAT DO YOU SEE HERE? |
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.
Safe to select the default
|
||
**IP address type**: ipv4 | ||
|
||
**Listeners**: If you want to access your application using http then leave the default listener in place. You should also add a https listener by clicking Add listener and selecting https. |
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.
If you have configured a certificate you can add a https listener but this can be added later.
|
||
**Security policy**: BEN WHAT DO YOU SEE HERE? | ||
|
||
**Configure Security groups**: BEN WHAT DO YOU SEE HERE? |
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.
Select your default security group. Note you will need to check this default security group has the following inbound ports open 80 and 443. To check this navigate to the following in a new window:
EC2 > Security Groups > default policy > Inbound Rules
|
||
**Service role**: New service role | ||
|
||
**Role name**: Codebuild-Docker-role |
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.
Need to add AmazonEC2ContainerRegistryPowerUser to role
|
||
**Protocol**: HTTP | ||
|
||
**PORT**: 80 |
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.
Should this be 8888
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.
no!
|
||
**Memory Limits (MiB)**: this is where you configure the minimum amount of memory the SAS task needs to run. Set this too high and ECS won't deploy your task. You can set a hard or soft limit. If you set a hard limit your task will be killed if SAS goes over this limit. A soft limit makes sure this memory is available before it is deployed. A low value means the task will almost always be deployed. Set it to soft limit of 300MB which is the minimum recommend for a Web Application. | ||
|
||
**Port Mappings**: This is where you map your internal Docker ports to ports you can access. The only port that SAS listens to is 8888 so enter that here and set the protocol to TCP. |
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.
its not its 8080!!!!
|
||
**Load balancer name**: Select the load balancer you create earlier. | ||
|
||
**Container to load balance**: sas-container:0:8888 |
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.
sas-container:8080
|
||
**Task execution IAM role**: allow ECS to create a role for you | ||
|
||
**Task size**: Memory 0.5GB. CPU 0.25 - this is the resources to allocate to SAS. If you find SAS is too slow these can be increased. |
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.
Needs to be 2gb Memory and 1 cpu
Updates required to avoid issues with DockerHub limits: https://medium.com/rockedscience/fixing-docker-hub-rate-limiting-errors-in-ci-cd-pipelines-ea3c80017acb |
Documentation on deploying SAS to the cloud.
https://github.com/glenrobson/SimpleAnnotationServer/blob/aws_docs/doc/AWS.md