Skip to content

Commit 2914894

Browse files
authored
Workaround for bug in v4.43.0 terraform oci provider (#221)
* Update provider.tf * Update provider.tf * Update terraform.sh * Update terraform.sh
1 parent 19ac899 commit 2914894

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

grabdish/terraform/provider.tf

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
terraform {
2+
required_providers {
3+
oci = {
4+
source = "hashicorp/oci"
5+
version = "4.42.0"
6+
}
7+
}
8+
}
9+
110
provider "oci" {
211
region = var.ociRegionIdentifier
312
}

grabdish/utils/terraform.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,16 @@ if ! state_done PROVISIONING; then
2121
rm -f containerengine.tf core.tf
2222
fi
2323

24+
cat >~/.terraformrc <<!
25+
provider_installation {
26+
filesystem_mirror {
27+
path = "/usr/share/terraform/plugins"
28+
}
29+
direct {
30+
}
31+
}
32+
!
33+
2434
if ! terraform init; then
2535
echo 'ERROR: terraform init failed!'
2636
exit

0 commit comments

Comments
 (0)