Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Whitelist cluster ARNs via a CLUSTER_ARNS_CSV environment variable #52

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions server/ecs.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ ECS.prototype.tasks = function(cluster, family){
*/

ECS.prototype.listClusters = function(){
if (process.env.CLUSTER_ARNS_CSV) {
return Promise.resolve(process.env.CLUSTER_ARNS_CSV.split(','));
}
let ecs = this.ecs;
debug('ecs.listClusters()');
return new Promise((resolve, reject) => {
Expand Down