xxxxxxxxxx
1. With required_providers blocks under terraform block
terraform {
required_providers {
aws = "~> 1.0"
}
}
2. Provider version constraints can also be specified using a version argument within a provider block
provider {
version= "1.0"
}