When defining anec2_vpc resource and not specifying the region parameter the module throws strange error messages like "Could not set 'present' on ensure: type mismatch: String given".
The problem can be reproduced with a manifest like the following:
I had AWS_REGIONdefined in my environment and would have assumed that the module uses that instead of specifying it in each resource, but apparently it isn't as the debug output tells:
Info: Creating VPC foo in absent
Setting a region in the resource is a viable workaround, but if the region argument is required the error handling should be adjusted to actually say so.
This happened with version 2.0.0 of the module and puppet 4.10.8.
When defining an
ec2_vpc
resource and not specifying the region parameter the module throws strange error messages like "Could not set 'present' on ensure: type mismatch: String given".The problem can be reproduced with a manifest like the following:
I had
AWS_REGION
defined in my environment and would have assumed that the module uses that instead of specifying it in each resource, but apparently it isn't as the debug output tells:Setting a region in the resource is a viable workaround, but if the region argument is required the error handling should be adjusted to actually say so.
This happened with version 2.0.0 of the module and puppet 4.10.8.