0.1.4 • Published 5 years ago
ff-cloudformation-gen v0.1.4
FF Cloudformation Generator
CLI for generating cloud formation templates.
Installation
Use the node package manager npm to install it.
npm install -g ff-cloudformation-gen
Or even better use yarn to install it.
npm install -g ff-cloudformation-gen
Generating fargate services
To start generating cloud formation template for fargate services you can use the CLI. Setting the type option to "fargate"
johnn@ff:~$ ff-cloudformation-gen --type fargate --file ./fargateConfiguration.json --output template.json
To generate the template the CLI would need a configuration file
fargateConfiguration.json
{
"description": "Application description",
"clusterName": "TestCluster",
"vpcName": "vpcTest",
"services": [
{
"resourceName": "ServiceTest",
"serviceName": "service-test",
"cpu": 1024,
"memory": 2048,
"count": 1
},
{
"resourceName": "ServiceTast",
"serviceName": "service-tast",
"image": "amazon/amazon-ecs-sample",
"cpu": 1024,
"memory": 2048,
"count": 1
},
{
"resourceName": "ServiceTust",
"serviceName": "service-tust",
"image": "prismagraphql/prisma:__LATEST_PRISMA_VERSION__",
"cpu": 1024,
"memory": 2048,
"count": 1
}
]
}
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
Collaborators
First Factory
johnn@firstfactory.com
jd@firstfactory.com