riff-raff.yaml (65 lines of code) (raw):
regions: [eu-west-1]
allowedStages: [INFRA]
templates:
cloudformation:
type: cloud-formation
app: elasticsearch-node-rotation
contentDirectory: elasticsearch-node-rotation-cloudformation
parameters:
templatePath: cloudformation.yaml
lambda:
type: aws-lambda
contentDirectory: elasticsearch-node-rotation
parameters:
fileName: elasticsearch-node-rotation.zip
functionNames:
- -enr-get-target-node-
- -enr-auto-scaling-group-check-
- -enr-cluster-status-check-
- -enr-add-node-
- -enr-cluster-size-check-
- -enr-reattach-target-instance-
- -enr-migrate-shards-
- -enr-shard-migration-check-
- -enr-remove-node-
deployments:
deploy-tools-enr-cloudformation:
stacks: [deploy]
template: cloudformation
app: elk-data-node-rotation
deploy-tools-enr-lambda:
stacks: [deploy]
dependencies: [deploy-tools-enr-cloudformation]
template: lambda
parameters:
bucket: deploy-tools-dist
ophan-enr-cloudformation:
stacks: [ophan]
template: cloudformation
app: ophan-es-node-rotation
ophan-enr-lambda:
stacks: [ophan]
dependencies: [ophan-enr-cloudformation]
template: lambda
parameters:
bucket: ophan-dist
grid-enr-cloudformation:
stacks: [media-service]
template: cloudformation
app: grid-es-node-rotation
grid-enr-lambda:
stacks: [media-service]
dependencies: [grid-enr-cloudformation]
template: lambda
parameters:
bucket: media-service-dist
content-api-enr-cloudformation:
stacks: [ content-api]
template: cloudformation
app: elasticsearch-node-rotation
content-api-enr-lambda:
stacks: [ content-api ]
dependencies: [ content-api-enr-cloudformation ]
template: lambda
parameters:
bucket: content-api-dist
# Giant (pfi) uses elasticsearch-node-rotation but we don't allow continuous deployment
# of it into the account to minimise the deployment points for code that has access
# to the data in Giant itself.
#
# We currently update the Cloudformation and lambda packages manually.
# If you have made changes please email investigations.and.reporting@guardian.co.uk to let them know.