S3 sse encryption

Hello, please l am trying to create new sse policy following deprecation of this check attached to the s3 bucket resource and now on s3 sse resource itself. However l keep getting error for only a list or map can be indexed, got undefined Sentinel Playground

Hi @f.nkeng,

It looks like the issue may be related to how you are accessing the element in the list:

// Do this
encrypt = encrypted.config.bucket.references[0]

// Not this
encrypt = encrypted.config.bucket.references[1]

Hope this helps.

Thank you @hcrhall. That helped me out.