This repository was archived by the owner on Dec 31, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
reference-artifacts/Custom-Scripts/lza-upgrade/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,4 +36,6 @@ export interface Config {
3636 skipDriftDetection ?: boolean ;
3737 localConfigFilePath ?: string ;
3838 enableTerminationProtection ?: boolean ;
39+ lzaInstallerTemplateBucket ?: string
40+ lzaInstallerTemplateKey ?: string
3941}
Original file line number Diff line number Diff line change @@ -55,7 +55,8 @@ export class Preparation {
5555 }
5656
5757 async prepareLza ( ) {
58- await getLZAInstallerStackTemplate ( 'solutions-reference' ) ;
58+ await getLZAInstallerStackTemplate ( this . config . lzaInstallerTemplateBucket ?? 'solutions-reference' ,
59+ this . config . lzaInstallerTemplateKey ?? 'landing-zone-accelerator-on-aws/latest/AWSAccelerator-InstallerStack.template' ) ;
5960 await putLZAInstallerStackTemplate ( this . config . aseaConfigBucketName , this . homeRegion ) ;
6061 const installerStackParameters : InstallerStackParameters = {
6162 repositorySource : this . config . lzaCodeRepositorySource ?? 'github' ,
Original file line number Diff line number Diff line change @@ -147,12 +147,12 @@ export async function createLZAInstallerCloudFormationStack(
147147 }
148148}
149149
150- export async function getLZAInstallerStackTemplate ( bucketName : string ) {
150+ export async function getLZAInstallerStackTemplate ( bucketName : string , objectKey : string ) {
151151 const s3Client = new S3Client ( { endpoint : 'https://s3.amazonaws.com' , region : 'us-east-1' } ) ;
152152 const template = await s3Client . send (
153153 new GetObjectCommand ( {
154154 Bucket : bucketName ,
155- Key : 'landing-zone-accelerator-on-aws/latest/AWSAccelerator-InstallerStack.template' ,
155+ Key : objectKey ,
156156 } ) ,
157157 ) ;
158158
You can’t perform that action at this time.
0 commit comments