Skip to content

Commit

Permalink
Rename Tenable secrets
Browse files Browse the repository at this point in the history
Because there's another secret scheduled for deletion
with the same name.
  • Loading branch information
kelvin-chappell committed Dec 9, 2024
1 parent 6f15302 commit 8f8dc09
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
10 changes: 5 additions & 5 deletions packages/cdk/lib/__snapshots__/service-catalogue.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -18970,7 +18970,7 @@ spec:
"",
[
{
"Ref": "tenablecredentialsF2FF9557",
"Ref": "tenableaccesscredentials362C8D64",
},
":access_key::",
],
Expand All @@ -18984,7 +18984,7 @@ spec:
"",
[
{
"Ref": "tenablecredentialsF2FF9557",
"Ref": "tenableaccesscredentials362C8D64",
},
":secret_key::",
],
Expand Down Expand Up @@ -19464,7 +19464,7 @@ spec:
],
"Effect": "Allow",
"Resource": {
"Ref": "tenablecredentialsF2FF9557",
"Ref": "tenableaccesscredentials362C8D64",
},
},
{
Expand Down Expand Up @@ -29089,11 +29089,11 @@ spec:
"Type": "AWS::SecretsManager::Secret",
"UpdateReplacePolicy": "Delete",
},
"tenablecredentialsF2FF9557": {
"tenableaccesscredentials362C8D64": {
"DeletionPolicy": "Delete",
"Properties": {
"GenerateSecretString": {},
"Name": "/TEST/deploy/service-catalogue/tenable-credentials",
"Name": "/TEST/deploy/service-catalogue/tenable-access-credentials",
"Tags": [
{
"Key": "gu:cdk:version",
Expand Down
10 changes: 7 additions & 3 deletions packages/cdk/lib/cloudquery/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -647,9 +647,13 @@ export function addCloudqueryEcsCluster(
],
};

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

const tenableSource: CloudquerySource = {
name: 'Tenable',
Expand Down

0 comments on commit 8f8dc09

Please sign in to comment.