Skip to content

Commit 95ba3c8

Browse files
author
Ira W. Snyder
authored
Fix "provider ... is undefined" error (#11)
This fixes an issue when overriding the AWS provider in this module with an aliased provider. Adding the `required_providers` block is the fix. ``` ╷ │ Warning: Provider aws is undefined │ │ on clickops-notifier.tf line 11, in module "clickops_notifier": │ 11: aws = aws.logs │ │ Module module.clickops_notifier does not declare a provider named aws. │ If you wish to specify a provider configuration for the module, add an │ entry for aws in the required_providers block within the module. ╵ ```
1 parent 0a8e995 commit 95ba3c8

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

versions.tf

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
terraform {
2+
required_version = ">= 0.13.1"
3+
4+
required_providers {
5+
aws = {
6+
source = "hashicorp/aws"
7+
version = ">= 4.9"
8+
}
9+
}
10+
}

0 commit comments

Comments
 (0)