title: Terraform Cloud with remoted Backend connected to github VCS
body: <p>I have terraform cloud as a backend integrated with github used to provision aws resources. When I change my terraform code and create a pull request, Terraform generates a plan.</p>
  <p>Here is the structure of terraform.</p>
  <pre><code>Modules
     alb
        modulealb.tf
  Environments
     dev
        alb.tf
  </code></pre>
  <p>In dev folder is my working directory for Terraform cloud workspace.</p>
  <p>Issue is, when I make some changes in modulealb.tf and commit my changes to github, Terraform cloud does not recognize those changes and infrastructure updates are not planned.</p>
  <p>How I can make Terraform cloud recognize my changes in modules.</p>
  <p>From Vscode, I tried</p>
  <pre><code>terraform init -upgrade
  terraform get -update
  </code></pre>
  <p>Modules are initialzed and I commit my changes to github but still those module changes are not being picked up by terraform cloud.</p>
  <p>Please point me in the right direction.
  Thank you.</p>
  <p><strong>Edit:</strong>
  To provide more context, I am working with changing my security group and route table modules.</p>
  <p>My previous modules are &quot;aws_route_table&quot; with inline route.</p>
  <pre><code>resource &quot;aws_route_table&quot; &quot;public_rt&quot; {
    vpc_id = aws_vpc.main.id
  
     route {
       cidr_block = var.aws_route_table_public_rt_cidr_block
       gateway_id = aws_internet_gateway.main.id
     }
  }
  </code></pre>
  <p>Now I commented that one inline route and did a pull request, terraform plan don't have any changes. Still I applied those changes and added a new module &quot;aws_route&quot; to include one route.</p>
  <pre><code>resource &quot;aws_route&quot; &quot;aws_internet_gateway&quot; {
    route_table_id            = aws_route_table.public_rt.id
    destination_cidr_block    = var.aws_route_table_public_rt_cidr_block
    gateway_id = aws_internet_gateway.main.id
  }
  </code></pre>
  <p>I created a pull request and terraform apply errored as that route is already existing and cannot create a duplicate route. So I deleted routes from AWS console and apply terraform, it is successful and added those changes.</p>
  <p>In the similar way I only had &quot;aws_security_group&quot; with one inline ingress and one inline egress block. Now I added a new module by commenting out those inline blocks and deleted existing rules in AWS console, Terraform apply created those security group rules.</p>
  <p>Hopefully I have done everything right, but <strong>the main issue here is when I have these &quot;aws_security_group&quot;, &quot;aws_route_table&quot; modules with inline blocks when I comment those inline blocks terraform plan don't have any changes</strong></p>
  <p>Looking at my state file, For &quot;aws_security_group&quot; Inline ingress and egress and deleted/removed by terraform.</p>