Skip to content

Commit

Permalink
Merge pull request #954 from mikaylathompson/cdk-update-bugfixes
Browse files Browse the repository at this point in the history
Source password secret permssions + sigv4 yaml fixes
  • Loading branch information
AndreKurait authored Sep 13, 2024
2 parents d0d5b40 + 93b1d0f commit 421cf2b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,13 @@ export class ClusterSigV4Auth {
this.region = region;
this.serviceSigningName = service;
}

toDict() {
return {
region: this.region,
service: this.serviceSigningName
}
}
}

export class ClusterBasicAuth {
Expand Down Expand Up @@ -379,7 +386,7 @@ export class ClusterAuth {
return {no_auth: ""};
}
if (this.sigv4) {
return {sigv4: this.sigv4};
return {sigv4: this.sigv4.toDict()};
}
return {};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,8 @@ export class MigrationConsoleStack extends MigrationServiceCore {
const getTargetSecretsPolicy = props.servicesYaml.target_cluster.auth.basicAuth?.password_from_secret_arn ?
getTargetPasswordAccessPolicy(props.servicesYaml.target_cluster.auth.basicAuth?.password_from_secret_arn) : null;

const getSourceSecretsPolicy = props.servicesYaml.source_cluster?.auth.basicAuth?.password_from_secret_arn ?
getTargetPasswordAccessPolicy(props.servicesYaml.source_cluster?.auth.basicAuth?.password_from_secret_arn) : null;
const getSourceSecretsPolicy = props.sourceCluster?.auth.basicAuth?.password_from_secret_arn ?
getTargetPasswordAccessPolicy(props.sourceCluster?.auth.basicAuth?.password_from_secret_arn) : null;

// Upload the services.yaml file to Parameter Store
let servicesYaml = props.servicesYaml
Expand Down

0 comments on commit 421cf2b

Please sign in to comment.