This project is the accompanying source code to the blog article locate here: https://aws.amazon.com/blogs/opensource/continuous-delivery-server-side-swift-aws/. Please check that article out - it goes over the project goals and setup instructions in much greater depth.
create-stack.json
and update the tags applied to the resources, or the name of the cloudformation stack.npm run-scripts create
aws cloudformation wait stack-create-complete
ECR
within the AWS console, click on codebuild/swift
and follow the instructions in View push commands
from within the codebuild-image
folder.app
folder to another directory: cp -r ./app ../swift-codebuild-app
.cd ../swift-codebuild-app && git init
CodeCommit
AWS console, then locate the repository created by the Cloudformation script (it should start with the stack name that you used). Click on that repository and follow the instructions to initialize the repository with the contents of swift-codebuild-app
.Load Balancer
section. First click on the load balancer whose name starts with swift-EC2
. Copy the DNS name and paste it into a browser window. Confirm that it reponds with "It works!"Load Balancer
section. First click on the load balancer whose name starts with swift-ECS
. Copy the DNS name and paste it into a browser window. Confirm that it reponds with "It works!"swift-codebuild-app
repository. Edit Sources/App/routes.swift
and modify return "It works!"
to read return "It works! With an update!"
. Commit those changes and push them to the CodeCommit repository.Wait for the pipeline to update and confirm that the two load balancers update with the correct message.
This library is licensed under the MIT-0 License. See the LICENSE file.