Slide 34
Slide 34 text
環境ごとに異なる設定値を外部化する
- 環境ごとに異なる設定値を外部から受け取る
- Stack の実装
// lib/my-stack.ts
export class MyStack extends Stack {
super(scope, id, props);
const database = new Database(this, "Database", {
// ...
constructor(scope: Construct, id: string, props: MyStackProps) {
instanceType: props.instanceType,
});
}
}