@medplum/cdk
Advanced tools
Comparing version 2.1.8 to 2.1.9
{ | ||
"name": "@medplum/cdk", | ||
"version": "2.1.8", | ||
"version": "2.1.9", | ||
"description": "Medplum CDK Infra as Code", | ||
@@ -5,0 +5,0 @@ "author": "Medplum <hello@medplum.com>", |
import { MedplumInfraConfig } from '@medplum/core'; | ||
import { | ||
Duration, | ||
RemovalPolicy, | ||
aws_ec2 as ec2, | ||
@@ -11,3 +12,2 @@ aws_ecs as ecs, | ||
aws_rds as rds, | ||
RemovalPolicy, | ||
aws_route53 as route53, | ||
@@ -14,0 +14,0 @@ aws_s3 as s3, |
@@ -1,5 +0,6 @@ | ||
import { MedplumInfraConfig } from '@medplum/core'; | ||
import { MedplumSourceInfraConfig } from '@medplum/core'; | ||
import { App } from 'aws-cdk-lib'; | ||
import { readFileSync } from 'fs'; | ||
import { resolve } from 'path'; | ||
import { normalizeInfraConfig } from './config'; | ||
import { MedplumStack } from './stack'; | ||
@@ -24,8 +25,15 @@ | ||
const config = JSON.parse(readFileSync(resolve(configFileName), 'utf-8')) as MedplumInfraConfig; | ||
const config = JSON.parse(readFileSync(resolve(configFileName), 'utf-8')) as MedplumSourceInfraConfig; | ||
const stack = new MedplumStack(app, config); | ||
console.log('Stack', stack.primaryStack.stackId); | ||
normalizeInfraConfig(config) | ||
.then((normalizedConfig) => { | ||
const stack = new MedplumStack(app, normalizedConfig); | ||
console.log('Stack', stack.primaryStack.stackId); | ||
app.synth(); | ||
app.synth(); | ||
}) | ||
.catch((err) => { | ||
console.error(err); | ||
process.exit(1); | ||
}); | ||
} | ||
@@ -32,0 +40,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1621360
34
3131