diodonfrost / terraform-aws-lambda-nuke

Terraform module that creates a lambda to destroy all resources in an AWS account.
Apache License 2.0
20 stars 15 forks source link

How to nuke only specified resource types #10

Open jamesgeddes opened 2 years ago

jamesgeddes commented 2 years ago

Hi there,

Apologies in advance for the silly question!

How do you nuke only the specified resource type? For example, I only want to nuke,

Thanks

marcransome commented 2 years ago

See the documentation for the exclude_resources argument in the inputs section of the README.md file —presumably this is used to populate the EXCLUDE_RESOURCES Lambda environment variable which excludes services defined in the _strategy dictionary.

jamesgeddes commented 2 years ago

Thanks @marcransome - I missed that bit!

jamesgeddes commented 2 years ago

@marcransome Just read this again - can you see how to define the resources that will be destroyed? Looks like exclude_resources defines the resources that will be not destroyed.

jamesgeddes commented 2 years ago

Seems like the only way is to provide a list of all resources except ec2 and s3