|
|
@@ -11,21 +11,31 @@ template, which will create all resources in dependent order and cleanup on
|
|
|
`down` command or deployment failure.
|
|
|
|
|
|
```
|
|
|
- +-----------------------------+
|
|
|
- | compose.yaml file |
|
|
|
- +-----------------------------+
|
|
|
+ +--------------------------------------+
|
|
|
+ | compose.yaml file |
|
|
|
+ +--------------------------------------+
|
|
|
- Load
|
|
|
- +-----------------------------+
|
|
|
- | compose-go Model |
|
|
|
- +-----------------------------+
|
|
|
+ +--------------------------------------+
|
|
|
+ | compose Model |
|
|
|
+ +--------------------------------------+
|
|
|
+- Validate
|
|
|
+ +--------------------------------------+
|
|
|
+ | compose Model suitable for ECS |
|
|
|
+ +--------------------------------------+
|
|
|
- Convert
|
|
|
- +-----------------------------+
|
|
|
- | CloudFormation Template |
|
|
|
- +-----------------------------+
|
|
|
+ +--------------------------------------+
|
|
|
+ | CloudFormation Template |
|
|
|
+ +--------------------------------------+
|
|
|
- Apply
|
|
|
- +---------+ +------------+
|
|
|
- | AWS API | or | stack file |
|
|
|
- +---------+ +------------+
|
|
|
+ +--------------+ +----------------+
|
|
|
+ | AWS API | or | stack file |
|
|
|
+ +--------------+ +----------------+
|
|
|
```
|
|
|
|
|
|
-(if this sounds familiar, see [Kompose](https://github.com/kubernetes/kompose/blob/master/docs/architecture.md))
|
|
|
+* _Load_ phase relies on [compose-go](https://github.com/compose-spec/compose-go). Any generic code we write for this
|
|
|
+purpose should be proposed upstream.
|
|
|
+* _Validate_ phase is responsible to inject sane ECS defaults into the compose-go model, and validate the `compose.yaml`
|
|
|
+file do not include unsupported features.
|
|
|
+* _Convert_ produces a CloudFormation template to define all resources required to implement the application model on AWS.
|
|
|
+* _Apply_ phase do apply the CloudFormation template, either by exporting to a stack file or to deploy on AWS.
|
|
|
+
|