Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
TypeScript-based imperative way to define AWS CloudFormation templates
npm install --save-dev cloudform
template.ts
:TODO imports
cloudform({
Description: 'My template',
Parameters: {
DeployEnv: new StringParameter({
Description: 'Deploy environment name',
AllowedValues: ['dev', 'stage', 'production']
})
},
Mappings: {
SubnetConfig: {
VPC: {
CIDR: '10.0.0.0/16'
}
}
},
Resources: {
VPC: new VPC({
CidrBlock: Fn.FindInMap('SubnetConfig', 'VPC', 'CIDR'),
EnableDnsHostnames: true,
Tags: [
new ResourceTag('Application', Refs.StackName),
new ResourceTag('Network', 'Public'),
new ResourceTag('Name', Fn.Join('-', [Refs.StackId, 'VPC']))
]
})
}
})
See also example/example.ts.
2. Run cloudform path/to/your/template.ts
to generate the CloudFormation template as JSON.
It make sense to define it in your npm scripts and run within your build or deployment pipeline, for example:
"scripts": {
// ...
"generate-cloudformation-template": "cloudform path/to/your/template > template.aws"
}
The types are generated automatically from the AWS-provided schema file, so cloudform supports all the types available in AWS CloudFormation. The general layout is ...
FAQs
TypeScript-based imperative way to define AWS CloudFormation templates
We found that cloudform demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.