You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request. Searching for pre-existing feature requests helps us consolidate datapoints for identical requirements into a single place, thank you!
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
If you are interested in working on this issue or have submitted a pull request, please leave a comment.
Overview of the Issue
When a configuration_aliases attribute is configured within terraform { required_providers ..., it interferes with Atlantis's version detection.
The specific error in the logs is trying to detect required version: Variables not allowed: Variables may not be used here.
Reproduction Steps
Simple repro case; create a state with the following configuration:
terraform {
required_version="1.3.4"// Where the version is different from Atlantis's default versionrequired_providers {
google={
source ="hashicorp/google"
version ="4.41.0"
configuration_aliases = [google.management]
}
plan and Atlantis will give an error about the version not being supported.
Logs
msg: trying to detect required version: Variables not allowed: Variables may not be used here.
stacktrace: github.com/runatlantis/atlantis/server/events.getTfVersion
github.com/runatlantis/atlantis/server/events/project_command_context_builder.go:289
github.com/runatlantis/atlantis/server/events.(*DefaultProjectCommandContextBuilder).BuildProjectContext
github.com/runatlantis/atlantis/server/events/project_command_context_builder.go:113
github.com/runatlantis/atlantis/server/events.(*CommandScopedStatsProjectCommandContextBuilder).BuildProjectContext
github.com/runatlantis/atlantis/server/events/project_command_context_builder.go:65
github.com/runatlantis/atlantis/server/events.(*DefaultProjectCommandBuilder).buildPlanAllCommands
github.com/runatlantis/atlantis/server/events/project_command_builder.go:291
github.com/runatlantis/atlantis/server/events.(*DefaultProjectCommandBuilder).BuildAutoplanCommands
github.com/runatlantis/atlantis/server/events/project_command_builder.go:166
github.com/runatlantis/atlantis/server/events.(*InstrumentedProjectCommandBuilder).BuildAutoplanCommands
github.com/runatlantis/atlantis/server/events/instrumented_project_command_builder.go:44
github.com/runatlantis/atlantis/server/events.(*PlanCommandRunner).runAutoplan
github.com/runatlantis/atlantis/server/events/plan_command_runner.go:77
github.com/runatlantis/atlantis/server/events.(*PlanCommandRunner).Run
github.com/runatlantis/atlantis/server/events/plan_command_runner.go:245
github.com/runatlantis/atlantis/server/events.(*DefaultCommandRunner).RunAutoplanCommand
github.com/runatlantis/atlantis/server/events/command_runner.go:174
Environment details
If not already included, please provide the following:
Atlantis version: v0.20.1
If not running the latest Atlantis version have you tried to reproduce this issue on the latest version:
Atlantis flags:
Atlantis server-side config file:
[can provide if ends up being necesary]
Repo atlantis.yaml file:
[can provide if ends up being necesary]
Additional Context
The text was updated successfully, but these errors were encountered:
Community Note
Overview of the Issue
When a
configuration_aliases
attribute is configured withinterraform { required_providers ...
, it interferes with Atlantis's version detection.The specific error in the logs is
trying to detect required version: Variables not allowed: Variables may not be used here.
Reproduction Steps
Simple repro case; create a state with the following configuration:
plan and Atlantis will give an error about the version not being supported.
Logs
Environment details
If not already included, please provide the following:
v0.20.1
Atlantis server-side config file:
[can provide if ends up being necesary]
Repo
atlantis.yaml
file:[can provide if ends up being necesary]
Additional Context
The text was updated successfully, but these errors were encountered: