Skip to content
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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

SAS in Amazon cloud #90

wants to merge 4 commits into from

Conversation

glenrobson
Copy link
Owner

@glenrobson glenrobson commented Aug 25, 2020

@glenrobson glenrobson added the SLU label Aug 25, 2020
@glenrobson glenrobson linked an issue Aug 25, 2020 that may be closed by this pull request

**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?
Copy link
Owner Author

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.
Copy link
Owner Author

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?
Copy link
Owner Author

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
Copy link
Owner Author

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
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be 8888

Copy link
Owner Author

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.
Copy link
Owner Author

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
Copy link
Owner Author

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.
Copy link
Owner Author

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

@glenrobson
Copy link
Owner Author

Updates required to avoid issues with DockerHub limits: https://medium.com/rockedscience/fixing-docker-hub-rate-limiting-errors-in-ci-cd-pipelines-ea3c80017acb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Document AWS deployment
1 participant