Skip to content

Deleting a resource from Template when using CDK Override? #5149

Closed Answered by KollaAdithya
chadinwork asked this question in Q&A
Discussion options

You must be logged in to vote

May be i misinterpreted the question. sorry for all the churn.
If you want to delete the default LogGroup created by Copilot you can use this override

import * as cdk from 'aws-cdk-lib';
import * as path from 'path';

interface TransformedStackProps extends cdk.StackProps {
  readonly appName: string;
  readonly envName: string;
}

export class TransformedStack extends cdk.Stack {
  public readonly template: cdk.cloudformation_include.CfnInclude;
  public readonly appName: string;
  public readonly envName: string;

  constructor(scope: cdk.App, id: string, props: TransformedStackProps) {
    super(scope, id, props);
    this.template = new cdk.cloudformation_include.CfnInclude(this, 'Tem…

Replies: 5 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@chadinwork
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by chadinwork
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants