Hi@akhtar,
To upload your file in the s3 bucket, you have to give permissions. So add your bucket policy in your code as given below.
resource "aws_s3_bucket_public_access_block" "example" {
bucket = aws_s3_bucket.bucketman.id
block_public_acls = false
block_public_policy = false
}
Hope this will help.