[Solved] error configuring S3 Backend: no valid credential sources for S3 Backend found

Ok I managed to fix this issue. You have to remove profile from provider and other .tf files files. So my main.tf file is – provider “aws” { region = “${var.region}” } terraform { required_providers { aws = { source = “hashicorp/aws” version = “~> 4.30” } } backend “s3” { } } And backend.dev.conf … Read more

[Solved] Creating IAM user via terraform and upload the secret key and access key in S3 bucket

I want to point out that storing tokens in s3 can be dangerous, if not configured correctly. Make sure that you have understood how policies in AWS and access control in s3 works!. https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html With that out of the way, this is what I have come up with: # The user to which we will … Read more