Skip to content

Commit

Permalink
Merge pull request #167 from awslabs/149-cdk-automatically-change-reg…
Browse files Browse the repository at this point in the history
…ion-in-connector-config-based-on-cdk-deployment

fix: Automatically change region in connector config based on CDK deployment
  • Loading branch information
embano1 authored Nov 16, 2023
2 parents 7ec1825 + c206359 commit baf6e00
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions cdk/lib/connectorConstruct.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,10 @@ export class Connector extends Construct {
//Set AWS Account ID and AWS region in connector configuration
const connectorConfiguration = JSON.parse(JSON
.stringify(connectorConfig)
.replace("00000000000", props.account)
.replace("us-east-1", props.region)
.replace('/default', '/eventbridge-sink-eventbus')
.replace('default-registry', 'streaming')
.replaceAll("00000000000", props.account)
.replaceAll("us-east-1", props.region)
.replaceAll('/default', '/eventbridge-sink-eventbus')
.replaceAll('default-registry', 'streaming')
)


Expand Down
2 changes: 1 addition & 1 deletion cdk/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"target": "ES2020",
"module": "commonjs",
"lib": [
"es2020",
"es2021",
"dom"
],
"esModuleInterop": true,
Expand Down

0 comments on commit baf6e00

Please sign in to comment.