CloudFormationDeployerParameters
Class: CloudFormationDeployerParameters
Defined in: aws/src/deployers/cloudformation.service.ts:41
CloudFormation deployer parameters
Define how to generate CloudFormation resources
Extends
Constructors
Constructor
new CloudFormationDeployerParameters():
CloudFormationDeployerParameters
Returns
CloudFormationDeployerParameters
Inherited from
AWSDeployerParameters.constructor
Properties
accessKeyId?
optionalaccessKeyId?:string
Defined in: aws/src/deployers/awsdeployer.ts:52
AWS_ACCESS_KEY_ID to use
Using static key is not recommended
Inherited from
AWSDeployerParameters.accessKeyId
APIGateway?
optionalAPIGateway?:object
Defined in: aws/src/deployers/cloudformation.service.ts:91
Create an API Gateway for the Lambda function
Index Signature
[key: string]: any
Name?
optionalName?:string
APIGatewayBasePathMapping?
optionalAPIGatewayBasePathMapping?:object
Defined in: aws/src/deployers/cloudformation.service.ts:124
Base path mapping of the custom domain
BasePath?
optionalBasePath?:string
DomainName?
optionalDomainName?:string
RestApiId?
optionalRestApiId?:string
Stage?
optionalStage?:string
APIGatewayDeployment?
optionalAPIGatewayDeployment?:object
Defined in: aws/src/deployers/cloudformation.service.ts:98
Properties of the API Gateway deployment
APIGatewayDomain?
optionalAPIGatewayDomain?:object
Defined in: aws/src/deployers/cloudformation.service.ts:112
Custom domain of the API Gateway
Index Signature
[key: string]: any
CertificateArn?
optionalCertificateArn?:string
DomainName
DomainName:
string
EndpointConfiguration?
optionalEndpointConfiguration?:object
EndpointConfiguration.Types
Types:
string[]
SecurityPolicy?
optionalSecurityPolicy?:string
APIGatewayImportOpenApi?
optionalAPIGatewayImportOpenApi?:string
Defined in: aws/src/deployers/cloudformation.service.ts:266
Import Open API to APIGateway
This is the restApiId to import to
APIGatewayStage?
optionalAPIGatewayStage?:object
Defined in: aws/src/deployers/cloudformation.service.ts:102
Properties of the API Gateway stage
Index Signature
[key: string]: any
StageName?
optionalStageName?:string
Default
the deployment name
AssetsBucket?
optionalAssetsBucket?:string
Defined in: aws/src/deployers/cloudformation.service.ts:47
AssetsBucket to copy Lambda package, CloudFormation template and OpenAPI definitions
Default to the webda.aws.AssetsBucket of the package.json
AssetsPrefix?
optionalAssetsPrefix?:string
Defined in: aws/src/deployers/cloudformation.service.ts:53
Prefix to use when copying to the AssetsBucket
Default
"${deployment}/${deployer.name}/"
AWSAccountId?
optionalAWSAccountId?:string
Defined in: aws/src/deployers/awsdeployer.ts:76
AWS Account Id
Inherited from
AWSDeployerParameters.AWSAccountId
Certificates?
optionalCertificates?:object
Defined in: aws/src/deployers/awsdeployer.ts:98
SSL certificates to create
Sample
Certificates: {
"test.webda.io": {
SubjectAlternativeNames: ["test2.webda.io"]
}
}
Index Signature
[key: string]: object
Inherited from
AWSDeployerParameters.Certificates
ChangeSetType?
optionalChangeSetType?:"CREATE"|"IMPORT"
Defined in: aws/src/deployers/cloudformation.service.ts:59
CREATE is the default
IMPORT is not well supported as AWS support seems weak aswell
CustomResources?
optionalCustomResources?:any
Defined in: aws/src/deployers/cloudformation.service.ts:274
Any additional CloudFormation resources
Description?
optionalDescription?:string
Defined in: aws/src/deployers/cloudformation.service.ts:183
Description of the stack and the OpenAPI https://github.com/loopingz/webda.io/issues/17
DomainName?
optionalDomainName?:string
Defined in: aws/src/deployers/cloudformation.service.ts:87
Default DomainName
endpoints?
optionalendpoints?:object
Defined in: aws/src/deployers/awsdeployer.ts:81
Endpoints to use by differents services Usefull to test with localstack or other AWS emulations
ACM?
optionalACM?:string
APIGateway?
optionalAPIGateway?:string
CloudFormation?
optionalCloudFormation?:string
CloudFront?
optionalCloudFront?:string
EC2?
optionalEC2?:string
Route53?
optionalRoute53?:string
S3?
optionalS3?:string
STS?
optionalSTS?:string
Inherited from
AWSDeployerParameters.endpoints
Fargate?
optionalFargate?:object
Defined in: aws/src/deployers/cloudformation.service.ts:229
Add the ECS tasks principal to the generated Role
FileName?
optionalFileName?:string
Defined in: aws/src/deployers/cloudformation.service.ts:83
Name of the template on the AssetsBucket
Default
"cloudformation-${resources.name}"
Format?
optionalFormat?:"JSON"|"YAML"
Defined in: aws/src/deployers/cloudformation.service.ts:71
Format for CloudFormation template
YAML format can generate issue
Default
"JSON"
Image?
optionalImage?:string
Defined in: aws/src/deployers/cloudformation.service.ts:235
Container image of the application, built separately (webda container build)
Available to the templates as ${resources.Image}
KeepPackage?
optionalKeepPackage?:boolean
Defined in: aws/src/deployers/cloudformation.service.ts:270
Keep locally the Lambda package after S3 uploads
Lambda?
optionalLambda?:object
Defined in: aws/src/deployers/cloudformation.service.ts:191
Deploy a Lambda package with your application
Index Signature
[key: string]: any
FunctionName?
optionalFunctionName?:string
FunctionName to create
Handler?
optionalHandler?:string
Should not require to be overriden
Default
"node_modules/@webda/aws/lib/deployers/lambda-entrypoint.handler"
MemorySize?
optionalMemorySize?:number
Memory to set on the Lambda
Less memory is less expensive/ms but slower
Default
2048
Role?
optionalRole?:any
Role to set on the function
Runtime?
optionalRuntime?:string
Type of Runtime to use
Default
"nodejs22.x"
Timeout?
optionalTimeout?:number
Timeout in seconds for your Lambda
Default
30
LambdaPackager?
optionalLambdaPackager?:LambdaPackageOptions
Defined in: aws/src/deployers/cloudformation.service.ts:187
How to build the Lambda package
name?
optionalname?:string
Defined in: aws/src/deployers/awsdeployer.ts:46
Name of the unit
Inherited from
OpenAPIFileName?
optionalOpenAPIFileName?:string
Defined in: aws/src/deployers/cloudformation.service.ts:173
Name of your OpenAPI inside the AssetsBucket
Default
"${resources.name}-openapi-${package.version}"
OpenAPITitle?
optionalOpenAPITitle?:string
Defined in: aws/src/deployers/cloudformation.service.ts:178
Title for your OpenAPI definition https://github.com/loopingz/webda.io/issues/17
Policy?
optionalPolicy?:object
Defined in: aws/src/deployers/cloudformation.service.ts:158
Policy to create
This deployer can automatically create the policy tailored to your application needs All the AWS services from this package advertise the type of permissions they need
Groups?
optionalGroups?:any[]
PolicyDocument?
optionalPolicyDocument?:any
PolicyName?
optionalPolicyName?:string
PolicyName to use
Roles?
optionalRoles?:any[]
Users?
optionalUsers?:any[]
region?
optionalregion?:string
Defined in: aws/src/deployers/awsdeployer.ts:72
AWS_REGION to use
Default
"us-east-1"
Inherited from
Resources?
optionalResources?:unknown
Defined in: aws/src/deployers/cloudformation.service.ts:151
Add the CloudFormation contributions of the application services (CloudFormationContributor)
ResourcesToImport?
optionalResourcesToImport?:any[]
Defined in: aws/src/deployers/cloudformation.service.ts:63
Resources to import in the template
Role?
optionalRole?:object
Defined in: aws/src/deployers/cloudformation.service.ts:133
Role to create
Index Signature
[key: string]: any
AssumeRolePolicyDocument?
optionalAssumeRolePolicyDocument?:object
AssumeRolePolicyDocument.Statement
Statement:
any[]
AssumeRolePolicyDocument.Version?
optionalVersion?:string
Path?
optionalPath?:string
Policies?
optionalPolicies?:any[]
RoleName?
optionalRoleName?:string
secretAccessKey?
optionalsecretAccessKey?:string
Defined in: aws/src/deployers/awsdeployer.ts:58
AWS_SECRET_ACCESS_KEY to use
Using static key is not recommended
Inherited from
AWSDeployerParameters.secretAccessKey
sessionToken?
optionalsessionToken?:string
Defined in: aws/src/deployers/awsdeployer.ts:66
AWS_SESSION_TOKEN Token
Even if it is possible to add it here It is not sustainable as this token at its best will have a lifetime of 12 hours
Inherited from
AWSDeployerParameters.sessionToken
StackName?
optionalStackName?:string
Defined in: aws/src/deployers/cloudformation.service.ts:77
Name of the CloudFormation stack
Default
the unit name
StackOptions?
optionalStackOptions?:any
Defined in: aws/src/deployers/cloudformation.service.ts:146
Options of the stack: Tags, NotificationARNs, ...
Statics?
optionalStatics?:object[]
Defined in: aws/src/deployers/cloudformation.service.ts:239
Deploy static website
AssetsPath?
optionalAssetsPath?:string
Path to store on the AssetsBucket
Bucket?
optionalBucket?:any
Bucket parameter to add, a bucket named after the domain is created
CloudFront?
optionalCloudFront?:any
CloudFront parameter to add
DomainName
DomainName:
string
Domain name to deploy on
Source
Source:
string
Source on local folder
Tags?
optionalTags?:TagsDefinition
Defined in: aws/src/deployers/awsdeployer.ts:85
Default Tags to use with resources created by deployers
Inherited from
type
type:
string
Defined in: core/lib/services/serviceparameters.d.ts:8
Type of the service
Inherited from
Methods
load()
load(
params?):this
Defined in: core/lib/services/serviceparameters.d.ts:18
Load raw parameters by assigning them onto this instance
Parameters
params?
any
the service parameters
Returns
this
this for chaining
Inherited from
update()
update(
params,delta):this
Defined in: core/lib/services/serviceparameters.d.ts:25
Update parameters and call watchers if a parameter was changed
Parameters
params
any
the service parameters
delta
any
the delta
Returns
this
this for chaining
Inherited from
with()
with(
callback):this
Defined in: core/lib/services/serviceparameters.d.ts:31
Watch for changes on the parameters and call watchers when a parameter is changed
Parameters
callback
(params) => void
the callback function
Returns
this
this for chaining