You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As described in the title, the latest change in the bucket_id variable that converted it from string to list erroneously introduced reverse logic on the check of s3 bucket creation resulting in creating a new bucket it should not.
This now incorrectly creates a bucket (evaluates the condition as true) when the var.bucket_id list is not empty instead of evaluating to true when the list IS actually empty.
Please amend the logic to avoid inconsistencies with exiting resources when plan/applying.
Expected Behavior
Only create a new s3 bucket when var.bucket_id list is empty
Steps to Reproduce
Attempt to create the module, passing it an existing s3 bucket id as variable
Screenshots
No response
Environment
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered:
Describe the Bug
As described in the title, the latest change in the
bucket_id
variable that converted it from string to list erroneously introduced reverse logic on the check of s3 bucket creation resulting in creating a new bucket it should not.The offending line can be seen here
Specifically, the previous logic was written as follows :
Which correctly created a bucket only when the var.bucket_id variable was not populated with an existing bucket ID.
After the latest commit and release, the logic is now as follows :
This now incorrectly creates a bucket (evaluates the condition as true) when the var.bucket_id list is not empty instead of evaluating to true when the list IS actually empty.
Please amend the logic to avoid inconsistencies with exiting resources when plan/applying.
Expected Behavior
Only create a new s3 bucket when
var.bucket_id
list is emptySteps to Reproduce
Attempt to create the module, passing it an existing s3 bucket id as variable
Screenshots
No response
Environment
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: