This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export class PipelineStack extends Stack { | |
// ... | |
const synthAction = SimpleSynthAction.standardNpmSynth({ | |
// ... | |
environment: { | |
buildImage: LinuxBuildImage.STANDARD_4_0, // needs to be explict to use latest version when using environment field | |
privileged: true, | |
environmentVariables: { | |
DOCKER_HOST: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export class PipelineStack extends Stack { | |
// ... | |
const applicationCode = new Artifact('application') | |
const synthAction = SimpleSynthAction.standardNpmSynth({ | |
// ... | |
buildCommand: 'npm run build', | |
subdirectory: 'infrastructure', | |
additionalArtifacts: [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export class PipelineStack extends Stack { | |
// ... | |
const preProdApp = new WebServiceStage(this, 'Pre-Prod') | |
const preProdStage = pipeline.addApplicationStage(preProdApp) | |
const serviceUrl = pipeline.stackOutput(preProdApp.urlOutput) | |
preProdStage.addActions(new pipelines.ShellScriptAction({ | |
actionName: 'IntegrationTests', | |
runOrder: preProdStage.nextSequentialRunOrder(), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export class VpcStack extends Stack { | |
// ... | |
public get availabilityZones(): string[] { | |
return ['eu-west-1a', 'eu-west-1b', 'eu-west-1c'] | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export class PipelineStack extends Stack { | |
// ... | |
const synthAction = SimpleSynthAction.standardNpmSynth({ | |
// ... | |
buildCommand: 'npm run build', | |
subdirectory: 'infrastructure' | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"scripts": { | |
"build": "npx tsc && mvn -B -f ../code/pom.xml package", | |
} | |
} |
OlderNewer