ts-aws
v0.1.0
Published
Typescript definitions for Aws Cloudformation
Downloads
11
Readme
AWS Typescript Types
Typescript types for aws cloudformation resources. The types are generated from the aws documentation.
Usage
npm install ts-awsimport { CfResource } from 'ts-aws'
const Resources = {
MyFunction: {
Type: 'AWS::Lambda::Function',
Properties: {
Handler: 'index.handler',
Role: { 'Fn::GetAtt': ['Role', 'Arn'] },
Code: { S3Bucket: 'FunctionBucket' },
Environment: { Variables: { BUCKET: { Ref: 'MyBucket' } } },
},
},
MyBucket: {
Type: 'AWS::S3::Bucket',
Properties: { BucketName: 'my-bucket' },
},
} satisfies Record<string, CfResource>