Private
Readonly
allPrivate
Readonly
allPrivate
Readonly
allPrivate
Readonly
allPrivate
Readonly
outdirReadonly
riffThe riff-raff.yaml
file as an object.
It is useful for specifying additional deployment types that GuCDK does not support. Consider raising an issue or pull request if you think it should be supported.
In most cases, you shouldn't need to access this. No validation is performed on the parameters you provide, so you might get deployment errors.
Private
getPrivate
getPrivate
isPrivate
validatePrivate
validatePrivate
Check there are the appropriate number of GuStack
s.
Expect to find an instance for each combination of stack
, and stage
.
If not valid, a message is logged describing what is missing to aid debugging.
Given the following:
const app = new App();
class MyApplicationStack extends GuStack { }
new MyApplicationStack(app, "App-CODE-deploy", {
env: {
region: "eu-west-1",
},
stack: "deploy",
stage: "CODE"
});
new MyApplicationStack(app, "App-PROD-media-service", {
env: {
region: "eu-west-1",
},
stack: "media-service",
stage: "PROD",
});
new MyApplicationStack(app, "App-PROD-deploy", {
env: {
region: "eu-west-1",
},
stack: "deploy",
stage: "PROD"
});
This will log a message like this, where ❌ denotes something missing,
specifically there is no CODE
template for media-service
.
Unable to produce a working riff-raff.yaml file; missing 1 definitions (details below)
┌───────────────┬──────┬──────┐
│ (index) │ CODE │ PROD │
├───────────────┼──────┼──────┤
│ deploy │ '✅' │ '✅' │
│ media-service │ '❌' │ '✅' │
└───────────────┴──────┴──────┘
Generated using TypeDoc
A class that creates a
riff-raff.yaml
file.Rather than using this directly, prefer to use [[
GuRoot
]] instead.Supports:
For lambda applications, 3 deployments will be defined:
aws-lambda
,action: [uploadLambda]
)cloud-formation
)aws-lambda
,action: [updateLambda]
)For EC2 applications, 3 deployments will be defined:
autoscaling
,action: [uploadArtifacts]
)cloud-formation
)autoscaling
,action: [deploy]
)It assumes a Riff-Raff bundle structure as follows:
That is, all CloudFormation templates are in a
cdk.out
directory, and there is a directory per app. Application artifact(s) are in the app directory.NOTE: The file extension is decided by you, the above file tree is used for illustration purposes.
NOTE: Resources will be looked up by tags (Stack, Stage, App). Ensure your CFN stack is tagged appropriately!
See