Skip to content

Commit

Permalink
OPHYK-318 Pass the correct bucket name to the datantuonti import task
Browse files Browse the repository at this point in the history
  • Loading branch information
tsu committed Jan 21, 2025
1 parent 9801cf3 commit 5ac7a38
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions infra/src/cdk-app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,7 @@ class OrganisaatioApplicationStack extends cdk.Stack {
oiva_baseurl: this.ssmSecret("OivaBaseurl"),
oiva_username: this.ssmSecret("OivaUsername"),
oiva_password: this.ssmSecret("OivaPassword"),
"organisaatio.tasks.datantuonti.import.bucket.name": this.ssmString("organisaatio.tasks.datantuonti.import.bucket.name", "")
},
portMappings: [
{
Expand Down Expand Up @@ -588,12 +589,12 @@ class OrganisaatioApplicationStack extends cdk.Stack {
alarm.addAlarmAction(new cloudwatch_actions.SnsAction(alarmTopic));
}

ssmString(name: string): ecs.Secret {
ssmString(name: string, prefix: string = "/organisaatio/"): ecs.Secret {
return ecs.Secret.fromSsmParameter(
ssm.StringParameter.fromStringParameterName(
this,
`Param${name}`,
`/organisaatio/${name}`
`${prefix}${name}`
)
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ CREATE TABLE IF NOT EXISTS datantuonti_osoite_temp(
kieli text
)""";

@Value("${organisaatio.tasks.datantuonti.export.bucket-name}")
@Value("${organisaatio.tasks.datantuonti.import.bucket.name}")
private String bucketName;

@Transactional
Expand Down

0 comments on commit 5ac7a38

Please sign in to comment.