Skip to content

How do you override provider versions in child modules? #836

Answered by odgrim
ShankyJS asked this question in How do I
Discussion options

You must be logged in to vote

Hello Jhan! Terraform actually has something to handle this built in. You're looking for override files.

In this case, your versions.tf for eks_addons just needs to be named "versions_override.tf". From there terraform/tofu will do a block level merge of all of that blocks parameters. The specifics for how the terraform block gets merged is at the bottom of the docs here.

Does that solve your problem?

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ShankyJS
Comment options

@ShankyJS
Comment options

Answer selected by ShankyJS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants