in engine/src/main/kotlin/io/kotless/gen/factory/aws/infra/ProvidersFactory.kt [13:29]
override fun generate(
entity: Terraform<Terraform.Backend.AWS, Terraform.Provider.AWS>,
context: GenerationContext
): GenerationFactory.GenerationResult<Output> {
if (entity.provider.region == "us-east-1") {
return GenerationFactory.GenerationResult(Output(null))
}
val aws_provider = provider {
alias = "us_east_1"
profile = entity.provider.profile
region = "us-east-1"
version = entity.provider.version
}
return GenerationFactory.GenerationResult(Output(aws_provider.hcl_ref), aws_provider)
}