Swift serverless.yml adapter. Read and Write a Serverless Framework configuration in Swift.
The Serverless framework is an All-in-one development solution for auto-scaling apps on AWS Lambda.
The serverless.yml file represents the deployment configuration.
This swift package allows Encoding and Decoding a serverless.yml using Yams.
import Foundation
import SwiftSlsAdapter
import Yams
let fileUrl = URL(fileURLWithPath: "servreless.yml")
let serverlessYml: Data = Data(contentsOf: fileUrl)
let decoder = YAMLDecoder()
let serverlessConfig = try decoder.decode(ServerlessConfig.self, from: serverlessYml)
swift-sls-adapter
Swift serverless.yml adapter. Read and Write a Serverless Framework configuration in Swift.
The Serverless framework is an All-in-one development solution for auto-scaling apps on AWS Lambda. The serverless.yml file represents the deployment configuration. This swift package allows Encoding and Decoding a serverless.yml using Yams.
Installation
Swift Package Manager
Add the following packages to your swift package
Usage
Decode:
Encode:
Supported Serverless Features
The package is under development.
Status of the features implemented in this package:
Contributions
Contributions are more than welcome! Follow this guide to contribute.
References
https://www.serverless.com/framework/docs/providers/aws/guide/serverless.yml