JetBrains / package-search-gradle-plugins

Gradle plugins for Docker, Terraform and Liquibase.
Apache License 2.0
32 stars 7 forks source link

Terraform source configuration #11

Closed Pola93 closed 2 years ago

Pola93 commented 2 years ago

Can I somehow change the source of terraform src while configuring the gradle terraform task as well as make the terraform task use remote state defined in backend.tf in my terraform sources?

lamba92 commented 2 years ago

The plugin infers that you are using a remote state by the fact that there is no state file locally. When a remote state is used, all outputs and plans are always re-evaluated, since the plugin has no knowledge of the state last edit.

For modifying where the sources are stored:

terraform {
    sourceSets {
        main {
            srcDir("path/to/new/folder")
        }
    }
}
Pola93 commented 2 years ago

Ok thank you very much 🙂

On Fri, Jan 14, 2022, 17:00 Lamberto Basti @.***> wrote:

The plugin infers that you are using a remote state by the fact that there is no state file locally. When a remote state is used, all outputs and plans are always re-evaluated, since the plugin has no knowledge of the state last edit.

For modifying where the sources are stored:

terraform { sourceSets { main { srcDir("path/to/new/folder") } } }

— Reply to this email directly, view it on GitHub https://github.com/JetBrains/jetbrains-gradle-plugins/issues/11#issuecomment-1013249354, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACLFUFX2YJXHEYGYXPXXO4LUWBCBDANCNFSM5L7DHEBQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>