-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
providers: ignore "constraint providers"
Certain providers of Terraform are meant to specify constraint rather than locations/regions, etc. In cases where a provider doesn't contain a valid location, it will not be added to the list of valid providers, if no providers at all exist an error will be returned mentioning it.
- Loading branch information
Hugo Rosnet
committed
Sep 2, 2021
1 parent
ab95584
commit b650e5c
Showing
8 changed files
with
242 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,190 @@ | ||
{ | ||
"format_version": "0.1", | ||
"terraform_version": "0.14.9", | ||
"planned_values": { | ||
"root_module": { | ||
"child_modules": [ | ||
{ | ||
"resources": [ | ||
{ | ||
"address": "module.instance.aws_instance.example", | ||
"mode": "managed", | ||
"type": "aws_instance", | ||
"name": "example", | ||
"provider_name": "registry.terraform.io/hashicorp/aws", | ||
"schema_version": 1, | ||
"values": { | ||
"ami": "ami-2757f631", | ||
"availability_zone": "us-east-1e", | ||
"instance_type": "t2.xlarge", | ||
"root_block_device": [ | ||
{ | ||
"iops": 100, | ||
"volume_size": 8, | ||
"volume_type": "gp2" | ||
} | ||
], | ||
"tenancy": "default" | ||
} | ||
} | ||
], | ||
"address": "module.instance" | ||
} | ||
], | ||
"resources": [ | ||
{ | ||
"address": "aws_lb.example", | ||
"mode": "managed", | ||
"type": "aws_lb", | ||
"name": "example", | ||
"provider_name": "registry.terraform.io/hashicorp/aws", | ||
"schema_version": 0, | ||
"values": { | ||
"load_balancer_type": "application" | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
"resource_changes": [ | ||
{ | ||
"address": "module.instance.aws_instance.example", | ||
"module_address": "module.instance", | ||
"mode": "managed", | ||
"type": "aws_instance", | ||
"name": "example", | ||
"provider_name": "aws", | ||
"change": { | ||
"actions": [ | ||
"update" | ||
], | ||
"before": { | ||
"ami": "ami-2757f631", | ||
"availability_zone": "us-east-1e", | ||
"instance_type": "t2.micro", | ||
"root_block_device": [ | ||
{ | ||
"iops": 100, | ||
"volume_size": 8, | ||
"volume_type": "gp2" | ||
} | ||
], | ||
"tenancy": "default" | ||
}, | ||
"after": { | ||
"ami": "ami-2757f631", | ||
"availability_zone": "us-east-1e", | ||
"instance_type": "t2.xlarge", | ||
"root_block_device": [ | ||
{ | ||
"iops": 100, | ||
"volume_size": 8, | ||
"volume_type": "gp2" | ||
} | ||
], | ||
"tenancy": "default" | ||
}, | ||
"after_unknown": {} | ||
} | ||
}, | ||
{ | ||
"address": "aws_lb.example", | ||
"mode": "managed", | ||
"type": "aws_lb", | ||
"name": "example", | ||
"provider_name": "registry.terraform.io/hashicorp/aws", | ||
"change": { | ||
"actions": [ | ||
"create" | ||
], | ||
"before": null, | ||
"after": { | ||
"load_balancer_type": "application" | ||
}, | ||
"after_unknown": {} | ||
} | ||
} | ||
], | ||
"prior_state": { | ||
"format_version": "0.1", | ||
"terraform_version": "0.12.28", | ||
"values": { | ||
"root_module": { | ||
"child_modules": [ | ||
{ | ||
"resources": [ | ||
{ | ||
"address": "module.instance.aws_instance.example", | ||
"mode": "managed", | ||
"type": "aws_instance", | ||
"name": "example", | ||
"provider_name": "aws", | ||
"schema_version": 1, | ||
"values": { | ||
"ami": "ami-2757f631", | ||
"availability_zone": "us-east-1e", | ||
"instance_type": "t2.micro", | ||
"root_block_device": [ | ||
{ | ||
"iops": 100, | ||
"volume_size": 8, | ||
"volume_type": "gp2" | ||
} | ||
], | ||
"tenancy": "default" | ||
} | ||
} | ||
], | ||
"address": "module.instance" | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"configuration": { | ||
"provider_config": {} | ||
}, | ||
"root_module": { | ||
"module_calls": { | ||
"instance": { | ||
"source": "./instance", | ||
"module": { | ||
"resources": [ | ||
{ | ||
"address": "aws_instance.example", | ||
"mode": "managed", | ||
"type": "aws_instance", | ||
"name": "example", | ||
"provider_config_key": "instance:aws", | ||
"expressions": { | ||
"ami": { | ||
"constant_value": "ami-2757f631" | ||
}, | ||
"instance_type": { | ||
"constant_value": "t2.xlarge" | ||
} | ||
}, | ||
"schema_version": 1 | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"resources": [ | ||
{ | ||
"address": "aws_lb.example", | ||
"mode": "managed", | ||
"type": "aws_lb", | ||
"name": "example", | ||
"provider_config_key": "aws.paris", | ||
"expressions": { | ||
"load_balancer_type": { | ||
"constant_value": "application" | ||
} | ||
}, | ||
"schema_version": 1 | ||
} | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters