Skip to content

Instantly share code, notes, and snippets.

@OksanaH
Last active May 23, 2021 22:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save OksanaH/a9367cd840e3cab3faef31ff879ba3d5 to your computer and use it in GitHub Desktop.
Save OksanaH/a9367cd840e3cab3faef31ff879ba3d5 to your computer and use it in GitHub Desktop.
CdkPipelinesPipelineStack.cs
SynthAction = new SimpleSynthAction(new SimpleSynthActionProps
{
SourceArtifact = artifact,
CloudAssemblyArtifact = cloudAssemblyArtifact, // Where to place built source
InstallCommands = new[]{
"npm install -g aws-cdk",
"wget https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb",
"dpkg -i packages-microsoft-prod.deb", "apt-get update", "apt-get install -y apt-transport-https", "apt-get update",
"apt-get install -y dotnet-sdk-3.1"
},
SynthCommand = "cdk synth"
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment