-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
S3 backend not being configured #49
Comments
Hi @sakibstark11, As part of a future iteration of tflocal we can add the parsing as a feature, but until that please explicitly define the desired backend in your terraform project. Sorry for the inconvenience, please let us know if you have any further questions. |
Thanks for letting us know. I am trying to get around it by having a backend block declared. terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 5.0"
}
}
backend "s3" {
bucket = "localstack"
key = "localstack"
region = "eu-west-1"
use_path_style = true
skip_metadata_api_check = false
skip_credentials_validation = true
iam_endpoint = "http://localhost:4566"
sts_endpoint = "http://localhost:4566"
endpoints = {
s3 = "http://s3.localhost.localstack.cloud:4566"
}
}
} It seems to try to connect to imds. Given the error I get is
But when I try to disable
Kinda stuck with this now. Any help would be much appreciated. |
Hi @sakibstark11,
Either of the above ones worked for me with your sample. Let me know your result. |
i tried without defining any endpoints and that produces the IMDS error. Defining them doesn't work either. The only way I was able to get it to work was by having separate files for localstack and regular aws deployment. :( Haven't tried defining all the endpoints though. When you say all, do you mean I should declare the provider myself? |
|
Hi all, I seem to be having issues with remote backend with tflocal. My setup
and I run tflocal init with
-backend-config
flags and it tries to communicate with actual aws again and I get the following error:I also noticed that the generated override file does not include any backend config. When I remove the backend block everything works as expected albeit the config doesn't use any remote state.
I have the right perms set for the bucket too. Any help would be greatly appreciated.
The text was updated successfully, but these errors were encountered: