Open
Description
I'm not sure it is possible, but it would be nice if we could inform the user that it is necessary to configure policy for importing images from S3 to EC2. This is how it looks when I try to use a bucket which is not properly configured:
Oct 22 15:13:23 localhost.localdomain osbuild-worker[10897]: Running job 17afa632-4d33-4fef-a2cd-d9893597b3c1
Oct 22 15:16:05 localhost.localdomain osbuild-worker[10897]: 2020/10/22 15:16:05 [AWS] 🚀 Uploading image to S3: msehnout/5a0db66d-1337-4f24-b91d-2c7e239b625b
Oct 22 16:45:34 localhost.localdomain osbuild-worker[10897]: 2020/10/22 16:45:34 [AWS] 📥 Importing snapshot from image: msehnout/5a0db66d-1337-4f24-b91d-2c7e239b625b
Oct 22 16:45:35 localhost.localdomain osbuild-worker[10897]: 2020/10/22 16:45:35 [AWS] 🚚 Waiting for snapshot to finish importing: import-snap-0a899b3e34eeffccb
Oct 22 16:49:34 localhost.localdomain osbuild-worker[10897]: 2020/10/22 16:49:34 Job failed: 1 target(s) errored:
Oct 22 16:49:34 localhost.localdomain osbuild-worker[10897]: ResourceNotReady: failed waiting for successful resource state
Oct 22 16:49:35 localhost.localdomain osbuild-worker[10897]: Waiting for a new job...
"ResourceNotReady: failed waiting for successful resource state" is a bit generic message.