aimoda / terraform-provider-corellium

Fork of terraform-provider-corellium for contributing upstream.
https://registry.terraform.io/providers/aimoda/corellium/latest
1 stars 0 forks source link

update corellium API client and remove webplayer #5

Open henrybarreto opened 11 months ago

henrybarreto commented 11 months ago

closes #2

henrybarreto commented 11 months ago

@Manouchehri, I was debug and noticed this message.

Screenshot 2023-10-11 at 23-42-32 update corellium API client and remove webplayer · aimoda_terraform-provider-corellium@4646cf3

It seems to indicate that some AWS configuration is missing. Am I right?

Could you, please, confirm that our AWS variables are set?

Manouchehri commented 11 months ago

This is what we have set:

image image

Hmm, nothing here should ever be contacting AWS, since we aren't even using AWS for our S3 bucket (we're using Backblaze B2). =P

https://developer.hashicorp.com/terraform/language/settings/backends/s3

image

It looks like we're missing one of these options for that failing test?

henrybarreto commented 11 months ago

This is what we have set: image image

Hmm, nothing here should ever be contacting AWS, since we aren't even using AWS for our S3 bucket (we're using Backblaze B2). =P

https://developer.hashicorp.com/terraform/language/settings/backends/s3

image

It looks like we're missing one of these options for that failing test?

Nice tip! I added the skip for the account ID to check if we get a good result.

henrybarreto commented 11 months ago

Screenshot 2023-10-12 at 00-11-03 update corellium API client and remove webplayer · aimoda_terraform-provider-corellium@a73f1ce

Perfect! The skip solved one issue, but emerged another one.

It seems that backblaze doesn't allow some headers that target to S3.

Unsupported header 'x-amz-sdk-checksum-algorithm' received for this API call.

The backblaze documentation has a text snippet talking about it: Screenshot 2023-10-12 at 00-19-32 S3-Compatible API

I have found this problem in others project too.

What do you think we could do in this case?

Manouchehri commented 11 months ago

Hmm, yeah maybe this is a Backblaze issue. https://github.com/hashicorp/terraform/issues/34054

Is it okay if I go ahead and switch the creds and S3 endpoint to use IDrive again?

Manouchehri commented 11 months ago

Switching now to IDrive E2, one sec.

henrybarreto commented 11 months ago

Hmm, yeah maybe this is a Backblaze issue. hashicorp/terraform#34054

Is it okay if I go ahead and switch the creds and S3 endpoint to use IDrive again?

I think so

Manouchehri commented 11 months ago

Done, I have switched to IDrive E2. Can you try it out to see if it gets further?

henrybarreto commented 11 months ago

Done, I have switched to IDrive E2. Can you try it out to see if it gets further?

Of course. I will rerun and check it again.

Manouchehri commented 11 months ago

Let me try emptying the bucket (which had old files in it).

Manouchehri commented 11 months ago

Okay, I nuked all the files in the bucket. It's empty now, try rerunning.

Manouchehri commented 11 months ago

I feel like I'm doing something stupid with the bucket config due to lack of sleep. =P

Going to call it a night and look at this tomorrow again to see what I'm doing wrong. =)

henrybarreto commented 11 months ago

I feel like I'm doing something stupid with the bucket config due to lack of sleep. =P

Going to call it a night and look at this tomorrow again to see what I'm doing wrong. =)

Me too lol

Tomorrow we check this problem again.

henrybarreto commented 1 month ago

@Manouchehri, could we run the tests again to remind what the problem it raises?