public class CloudFormationKt
| Modifier and Type | Method and Description |
|---|---|
static DeployResult |
deployStack(AwsProfile profile,
java.lang.String stackName,
java.lang.String apiName,
java.lang.String templateUrl)
Deploys the CloudformationStack and returns the ID of the API Gateway API.
|
static void |
writeTemplate(java.io.Writer writer,
Api<?> api,
ws.osiris.aws.ApplicationConfig appConfig,
java.util.Set<java.lang.String> templateParams,
java.lang.String lambdaHandler,
java.lang.String codeHash,
java.lang.String staticHash,
java.lang.String codeBucket,
java.lang.String codeKey,
boolean createLambdaRole,
java.lang.String envName,
java.lang.String bucketPrefix,
java.util.Set<java.lang.String> binaryMimeTypes)
Writes a CloudFormation template for all the resources needed for the API:
|
public static void writeTemplate(java.io.Writer writer,
Api<?> api,
ws.osiris.aws.ApplicationConfig appConfig,
java.util.Set<java.lang.String> templateParams,
java.lang.String lambdaHandler,
java.lang.String codeHash,
java.lang.String staticHash,
java.lang.String codeBucket,
java.lang.String codeKey,
boolean createLambdaRole,
java.lang.String envName,
java.lang.String bucketPrefix,
java.util.Set<java.lang.String> binaryMimeTypes)
Writes a CloudFormation template for all the resources needed for the API:
API Gateway resources, methods and integrations for endpoints handled by the lambda
API Gateway resources, methods, integrations, method responses and integration responses for endpoints serving static files from S3
The lambda function
The role used by the lambda function (unless an existing role is provided)
The permissions for the role (unless an existing role is provided)
The stages
A deployment (if any stages are defined)
The S3 bucket from which static files are served (unless an existing bucket is provided)
public static DeployResult deployStack(AwsProfile profile, java.lang.String stackName, java.lang.String apiName, java.lang.String templateUrl)
Deploys the CloudformationStack and returns the ID of the API Gateway API.