This module contains AWS CloudFormation templates (and some convenience scripts) to deploy an IxorTalk instance to AWS.
For general documentation about the IxorTalk platform: https://github.com/ixortalk/ixortalk-gateway
What you'll need:
Required:
- An AWS Account with admin privileges (admin privileges are required because of the creation of IAM related resources)
- A
projectName
andenv
to be used: Two variables that will be used across the templates to create dynamic resource names and environment configuration - A public hosted zone for the domain you want to deploy the IxorTalk instance to
- Two separate certificates:
- To be used for the loadbalancers with name
*.yourdomain.com
and additional name*.internal.yourdomain.com
- To be used for CloudFront with name
*.yourdomain.com
in regionus-east-1
- To be used for the loadbalancers with name
- A MongoDB instance to be used by Asset Mgmt (https://github.com/IxorTalk/ixortalk-assetmgmt)
- Two S3 buckets for (see Deploying)
- static assets: to be used by CloudFront
- ECS hosts: containing files that will be required when starting en ECS hosts (eg. docker auth config file)
- A config repo containing the IxorTalk platform configuration (eg. https://github.com/ixortalk/ixortalk.config.demo). When starting from a fork of ixortalk.config.demo, minimal changes to made will be:
application.yml
:ixortalk.loadbalancer.internal.host
: replace by your own domainapplication.yml
:ixortalk.loadbalancer.external.host
: replace by your own domainixortalk.assetmgmt/application.yml
:spring.data.mongodb.uri
: replace with the URI to your MongoDB instance
Optional:
- An AWS Key Pair to be used to ssh into the bastion host and EC2 Host (to be specified as a paramter when deploying EC2 hosts)
- AWS IoT Root Certificates to use JIT device registration
Create an S3 bucket containing static assets to be used by CloudFront, example script:
./scripts/one-time/create-static-content-s3-bucket.sh $PROJECT_NAME $ENV <folder_containing_static_resources_to_upload>
Which assets need to be present depends on the ixortalk-gateway configuration. By default a background.jpg
and logo.png
will be required.
See https://github.com/IxorTalk/ixortalk.config.demo/blob/aws/ixortalk.gateway/application.yml for an example configuration on how logo and background get resolved. The logo is retrieved via /assets/instance/logo.png
which will be mapped to ${ixortalk.assets.base-url}
which will typically map to the CloudFront domain (eg. https://assets.demo-ixortalk.com).
Create an S3 bucket containing files required when launching ECS instances, currently it only expects an optional ecs-auth.config
file containing auth info for Docker. See ecs-cluster.yaml for more details.
./scripts/one-time/create-ecs-s3-bucket.sh $PROJECT_NAME $ENV <folder_containing_files_to_upload>
Deploy the following templates (in order) to your AWS account either via AWS CLI or manually via the console:
Template | |
---|---|
cloudfront.yaml | |
vpc.yaml | |
rds-auth.yaml | |
ecs-infra.yaml | |
core-services.yaml | |
iot-services.yaml |
Pull requests are welcome.
MIT License
Copyright (c) 2018 IxorTalk CVBA
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.