CrowdStrike / Cloud-AWS

A collection of projects supporting AWS Integration
MIT License
142 stars 81 forks source link

add: allow existing bucket names as array #276

Open berkguzel opened 2 months ago

berkguzel commented 2 months ago

Fixes #275

This PR allows you to apply terraform code one time to scan several existing s3 buckets.

existing.sh script will ask you to provide existing s3 bucket names in a format like below.

 Bucket names: s3-bucket-protection-test s3-bucket-protection-test-test 

ryanjpayne commented 2 months ago

a better approach would be to use modules. one module for infra, one module to set up bucket. infra module is only called once, while the bucket module is called foreach and everytime a bucket needs to be added going forward