37. How we use AWS
• Amazon Container Service (ECS)
• Amazon Elastic Container Registry (ECR)
• Software Defined Infrastructure
• AWS Lambda
• Amazon Simple Storage Service (S3)
• Amazon Relational Database Service (RDS)
• Amazon ElastiCache
• Amazon Route53 and Private Hosted Zones
• AWS Command Line Interface (CLI)
43
38. Road to Lynfa SaaS
44
1. The migration tool create a 7z archive of customer env (migration process)
2. Push the archive to a migration bucket on S3 (upload)
3. Start provisioning process
a. Create temporary EC2 instance and download archive from S3
b. Extract the customer environment to a dedicated EBS volume
c. Attach the EBS volume to a specific cluster
d. Create new task definition and its service
e. Start the container
40. Benefits
• Cost saving
• Opportunity to approach DevOps and to collaborate with AWS SA
• Fast and easy provisioning new customer with a single Ansible playbook
execution
• Standardized software solution thanks to the delivery process automatization
• Respect the environment
• Possibility to share resources
• Guarantee complete and total isolation of user data
• High security standards
46
41. DevOps example: CD Lynfa container images
• We create a continuous delivery to generate new Lynfa container images
using these tools:
• S3 update repository
• Docker multi-stage builds
• AWS Command Line Interface to login and push
• Ansible playbook to automate operations
47
export ECR_REGISTRY=$(aws ecr get-authorization-token --region ${region} --output text --query
'authorizationData[].proxyEndpoint')
aws ecr get-login --no-include-email --region ${region}| awk '{print $6}' | docker login -u AWS --
password-stdin $ECR_REGISTRY
docker push 310272244054.dkr.ecr.eu-west-1.amazonaws.com/lynfacloud-
staging:${polyedro_ver}-${docker_build_date}