Kindly enable the debugger logger in the
$JFROG_HOME/artifactory/var/etc/artifactory/logback.xml
file and does not require a restart for log changes to take effect:
You should temporarily enable this logger for debugging purposes, then remove it!
On the client side, enable Terraform client debug using the command:
$JFROG_HOME/artifactory/var/etc/artifactory/logback.xml
file and does not require a restart for log changes to take effect:
<appender name="terraform" class="ch.qos.logback.core.rolling.RollingFileAppender"> <File>${log.dir}/artifactory-terraform.log</File> <rollingPolicy class="org.jfrog.common.logging.logback.rolling.FixedWindowWithDateRollingPolicy"> <FileNamePattern>${log.dir.archived}/artifactory-terraform.%i.log.gz</FileNamePattern> <maxIndex>10</maxIndex> </rollingPolicy> <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> <MaxFileSize>25MB</MaxFileSize> </triggeringPolicy> <encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder"> <layout class="org.jfrog.common.logging.logback.layout.BackTracePatternLayout"> <pattern>%date{yyyy-MM-dd'T'HH:mm:ss.SSS, UTC}Z [jfrt ] [%-5p] [%-16X{uber-trace-id}] [%-30.30(%c{3}:%L)] [%-20.20thread] - %m%n</pattern> </layout> </encoder> </appender> <logger name="org.artifactory.addon.terraform" additivity="false"> <level value="debug"/> <appender-ref ref="terraform"/> </logger> <logger name="org.jfrog.repomd.terraform" additivity="false"> <level value="debug"/> <appender-ref ref="terraform"/> </logger>
You should temporarily enable this logger for debugging purposes, then remove it!
On the client side, enable Terraform client debug using the command:
export TF_LOG=TRACEBy following the above steps, we can effectively deploy, and resolve Terraform modules and providers using JFrog Artifactory in your infrastructure automation workflows.