Skip to content

Commit f4c1608

Browse files
committed
update naming
1 parent 1ac1f9f commit f4c1608

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

LambdaRuntimeDockerfiles/Infrastructure/src/Infrastructure/PipelineStack.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ internal PipelineStack(
3737
string gitHubOwner,
3838
string gitHubRepository,
3939
string gitHubBranch,
40+
string pipelineName,
4041
IStackProps props = null) : base(scope, id, props)
4142
{
4243
var sourceArtifact = new Artifact_();
@@ -65,7 +66,7 @@ internal PipelineStack(
6566
var pipeline = new Pipeline(this, "CodePipeline", new PipelineProps
6667
{
6768
PipelineType = PipelineType.V2,
68-
PipelineName = id,
69+
PipelineName = pipelineName,
6970
RestartExecutionOnUpdate = true,
7071
Stages =
7172
[

LambdaRuntimeDockerfiles/Infrastructure/src/Infrastructure/PipelinesStage.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,19 @@ private void CreatePipelinesForRepository(
3838
{
3939
for (var i = 0; i < configuration.Frameworks.Length; i++)
4040
{
41+
42+
var pipelineName = string.IsNullOrEmpty(pipelinePrefix)
43+
? $"{configuration.ProjectName}-{configuration.Frameworks[i].Framework}" // "aws-lambda-container-images-net8"
44+
: $"{configuration.ProjectName}-{pipelinePrefix}-{configuration.Frameworks[i].Framework}"; // "aws-lambda-container-images-staging-net8"
45+
4146
new PipelineStack(this,
4247
$"{pipelinePrefix}-{configuration.Frameworks[i].Framework}",
4348
configuration,
4449
configuration.Frameworks[i],
4550
gitHubOwner,
4651
gitHubRepository,
4752
gitHubBranch,
53+
pipelineName,
4854
new StackProps
4955
{
5056
TerminationProtection = true,

0 commit comments

Comments
 (0)