Skip to content

Commit

Permalink
Include credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
kelvin-chappell committed Dec 9, 2024
1 parent b587f79 commit ca28a66
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions packages/cdk/lib/cloudquery/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -647,12 +647,26 @@ export function addCloudqueryEcsCluster(
],
};

const tenableCredentials = new SecretsManager(scope, 'tenable-credentials', {
secretName: `/${stage}/${stack}/${app}/tenable-credentials`,
});

const tenableSource: CloudquerySource = {
name: 'Tenable',
description: 'Tenable data.',
schedule: nonProdSchedule ?? Schedule.cron({ minute: '0', hour: '3' }),
config: TenableConfig(),
memoryLimitMiB: 1024,
secrets: {
TENABLE_ACCESS_KEY: Secret.fromSecretsManager(
tenableCredentials,
'access_key',
),
TENABLE_SECRET_KEY: Secret.fromSecretsManager(
tenableCredentials,
'secret_key',
),
},
};

return new CloudqueryCluster(scope, `${app}Cluster`, {
Expand Down

0 comments on commit ca28a66

Please sign in to comment.