Skip to content

Commit

Permalink
feat: Switch to manual riff-raff.yaml file
Browse files Browse the repository at this point in the history
This is to help in the testing of guardian/riff-raff#1383.
  • Loading branch information
akash1810 committed Oct 11, 2024
1 parent 481cc66 commit ed2a756
Show file tree
Hide file tree
Showing 2 changed files with 111 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
githubToken: ${{ secrets.GITHUB_TOKEN }}
roleArn: ${{ secrets.GU_RIFF_RAFF_ROLE_ARN }}
commentingStage: 'PROD'
configPath: cdk/cdk.out/riff-raff.yaml
configPath: riff-raff.yaml
contentDirectories: |
cdk.out:
- cdk/cdk.out
Expand Down
110 changes: 110 additions & 0 deletions riff-raff.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
allowedStages:
- PROD
deployments:
lambda-upload-eu-west-1-playground-event-forwarder:
type: aws-lambda
stacks:
- playground
regions:
- eu-west-1
app: event-forwarder
contentDirectory: event-forwarder
parameters:
bucketSsmLookup: true
lookupByTags: true
fileName: event-forwarder.zip
actions:
- uploadLambda
cfn-eu-west-1-playground-event-forwarder:
type: cloud-formation
regions:
- eu-west-1
stacks:
- playground
app: event-forwarder
contentDirectory: cdk.out
parameters:
templateStagePaths:
PROD: EventForwarder.template.json
dependencies:
- lambda-upload-eu-west-1-playground-event-forwarder
lambda-update-eu-west-1-playground-event-forwarder:
type: aws-lambda
stacks:
- playground
regions:
- eu-west-1
app: event-forwarder
contentDirectory: event-forwarder
parameters:
bucketSsmLookup: true
lookupByTags: true
fileName: event-forwarder.zip
actions:
- updateLambda
dependencies:
- cfn-eu-west-1-playground-event-forwarder
lambda-upload-eu-west-1-playground-cdk-playground-lambda:
type: aws-lambda
stacks:
- playground
regions:
- eu-west-1
app: cdk-playground-lambda
contentDirectory: cdk-playground-lambda
parameters:
bucketSsmLookup: true
lookupByTags: true
fileName: cdk-playground-lambda.zip
actions:
- uploadLambda
asg-upload-eu-west-1-playground-cdk-playground:
type: autoscaling
actions:
- uploadArtifacts
regions:
- eu-west-1
stacks:
- playground
app: cdk-playground
parameters:
bucketSsmLookup: true
prefixApp: true
contentDirectory: cdk-playground
cfn-eu-west-1-playground-cdk-playground:
type: cloud-formation
regions:
- eu-west-1
stacks:
- playground
app: cdk-playground
contentDirectory: cdk.out
parameters:
templateStagePaths:
PROD: CdkPlayground.template.json
amiParametersToTags:
AMICdkplayground:
BuiltBy: amigo
AmigoStage: PROD
Recipe: developerPlayground-arm64-java11
Encrypted: 'true'
dependencies:
- lambda-upload-eu-west-1-playground-cdk-playground-lambda
- asg-upload-eu-west-1-playground-cdk-playground
- cfn-eu-west-1-playground-event-forwarder
lambda-update-eu-west-1-playground-cdk-playground-lambda:
type: aws-lambda
stacks:
- playground
regions:
- eu-west-1
app: cdk-playground-lambda
contentDirectory: cdk-playground-lambda
parameters:
bucketSsmLookup: true
lookupByTags: true
fileName: cdk-playground-lambda.zip
actions:
- updateLambda
dependencies:
- cfn-eu-west-1-playground-cdk-playground

0 comments on commit ed2a756

Please sign in to comment.