Deleting a resource from Template when using CDK Override? #5149
-
Referencing the documentation here: https://aws.github.io/copilot-cli/docs/developing/overrides/cdk/ If we would like to delete a Resource from the template ( The documentation example shows us how to add new resources to a template, and how to delete a resource property, but not how to delete a resource. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 1 reply
-
Hello @chadinwork ! For example this sample adds a property to CDK overrides sampleimport * as cdk from 'aws-cdk-lib'; import * as path from 'path'; import { aws_iam as iam } from 'aws-cdk-lib';interface TransformedStackProps extends cdk.StackProps { export class TransformedStack extends cdk.Stack {
} If you want to delete this property added to If you run |
Beta Was this translation helpful? Give feedback.
-
Hi @chadinwork !
After just removing the |
Beta Was this translation helpful? Give feedback.
-
May be i misinterpreted the question. sorry for all the churn.
|
Beta Was this translation helpful? Give feedback.
-
I also created this PR (#5153) that will update our docs to showcase this example on deletion of a resource. |
Beta Was this translation helpful? Give feedback.
-
Thank you so much! |
Beta Was this translation helpful? Give feedback.
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