diff --git a/packages/@aws-cdk/aws-cloudformation/lib/pipeline-actions.ts b/packages/@aws-cdk/aws-cloudformation/lib/pipeline-actions.ts index 0538704f2e422..ccf019dfaba0e 100644 --- a/packages/@aws-cdk/aws-cloudformation/lib/pipeline-actions.ts +++ b/packages/@aws-cdk/aws-cloudformation/lib/pipeline-actions.ts @@ -188,7 +188,7 @@ export abstract class CloudFormationDeploymentAction extends CloudFormationActio Capabilities: (capabilities && capabilities.join(',')) || undefined, RoleArn: new cdk.Token(() => this.role.roleArn), ParameterOverrides: props.parameterOverrides, - TemplateConfiguration: props.templateConfiguration, + TemplateConfiguration: props.templateConfiguration ? props.templateConfiguration.location : undefined, StackName: props.stackName, }); diff --git a/packages/@aws-cdk/aws-codepipeline/test/test.cloudformation-pipeline-actions.ts b/packages/@aws-cdk/aws-codepipeline/test/test.cloudformation-pipeline-actions.ts index 3ce276d0f9542..31af69b00e18b 100644 --- a/packages/@aws-cdk/aws-codepipeline/test/test.cloudformation-pipeline-actions.ts +++ b/packages/@aws-cdk/aws-codepipeline/test/test.cloudformation-pipeline-actions.ts @@ -63,6 +63,7 @@ export = { changeSetName, role: changeSetExecRole, templatePath: new ArtifactPath(buildAction.artifact!, 'template.yaml'), + templateConfiguration: new ArtifactPath(buildAction.artifact!, 'templateConfig.json') }); new ExecuteChangeSet(stack, 'ExecuteChangeSetProd', { @@ -160,7 +161,8 @@ export = { ] }, "StackName": "BrelandsStack", - "TemplatePath": "OutputYo::template.yaml" + "TemplatePath": "OutputYo::template.yaml", + "TemplateConfiguration": "OutputYo::templateConfig.json" }, "InputArtifacts": [{"Name": "OutputYo"}], "Name": "BuildChangeSetProd",