<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: Terraform: Duplicate required providers configuration	</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/terraform-duplicate-required-providers-configuration/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/terraform-duplicate-required-providers-configuration/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Thu, 12 Oct 2023 03:51:53 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>
	<item>
		<title>
		By: Lalit		</title>
		<link>https://www.scmgalaxy.com/tutorials/terraform-duplicate-required-providers-configuration/#comment-290</link>

		<dc:creator><![CDATA[Lalit]]></dc:creator>
		<pubDate>Thu, 12 Oct 2023 03:51:53 +0000</pubDate>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=10898#comment-290</guid>

					<description><![CDATA[I also faced the same issue. The simple solution to create override file and add all other provider config on that file so during initialization it will merge the config.

provider.tf 
==
&#160;&lt;span&gt;provider&lt;/span&gt; &lt;span&gt;&quot;aws&quot;&lt;/span&gt; {
&#160; region &lt;span&gt;=&lt;/span&gt; &lt;span&gt;var&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;region
} 
==

provider_override.tf
==
&lt;span&gt;terraform&lt;/span&gt; {
&#160; &lt;span&gt;required_providers&lt;/span&gt; {
&#160; &#160; kubectl &lt;span&gt;=&lt;/span&gt; {
&#160; &#160; &#160; source &#160;= &lt;span&gt;&quot;gavinbunney/kubectl&quot;&lt;/span&gt;
&#160; &#160; &#160; version = &lt;span&gt;&quot;&#062;= 1.14.0&quot;&lt;/span&gt;
&#160; &#160; }
&#160; &#160; helm &lt;span&gt;=&lt;/span&gt; {
&#160; &#160; &#160; source &#160;= &lt;span&gt;&quot;hashicorp/helm&quot;&lt;/span&gt;
&#160; &#160; &#160; version = &lt;span&gt;&quot;&#062;= 2.6.0&quot;&lt;/span&gt;
&#160; &#160; }
&#160; }

&#160;required_version &lt;span&gt;=&lt;/span&gt; &lt;span&gt;&quot;~&#062; 1.0&quot;&lt;/span&gt;
}
==]]></description>
			<content:encoded><![CDATA[<p>I also faced the same issue. The simple solution to create override file and add all other provider config on that file so during initialization it will merge the config.</p>
<p>provider.tf<br />
==<br />
&nbsp;<span>provider</span> <span>&#8220;aws&#8221;</span> {<br />
&nbsp; region <span>=</span> <span>var</span><span>.</span>region<br />
}<br />
==</p>
<p>provider_override.tf<br />
==<br />
<span>terraform</span> {<br />
&nbsp; <span>required_providers</span> {<br />
&nbsp; &nbsp; kubectl <span>=</span> {<br />
&nbsp; &nbsp; &nbsp; source &nbsp;= <span>&#8220;gavinbunney/kubectl&#8221;</span><br />
&nbsp; &nbsp; &nbsp; version = <span>&#8220;&gt;= 1.14.0&#8221;</span><br />
&nbsp; &nbsp; }<br />
&nbsp; &nbsp; helm <span>=</span> {<br />
&nbsp; &nbsp; &nbsp; source &nbsp;= <span>&#8220;hashicorp/helm&#8221;</span><br />
&nbsp; &nbsp; &nbsp; version = <span>&#8220;&gt;= 2.6.0&#8221;</span><br />
&nbsp; &nbsp; }<br />
&nbsp; }</p>
<p>&nbsp;required_version <span>=</span> <span>&#8220;~&gt; 1.0&#8221;</span><br />
}<br />
==</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
