Closed mphammer closed 3 years ago
@mphammer correct, there is a parsing error for
Not sure what I was thinking before. In order to import the correct integration you would need the resource identifier for the integration and not the name. How to get the correct resource identifier, can be found at https://docs.cloudamqp.com/cloudamqp_api.html#integrations.
Then the import call should be
$ terraform import cloudamqp_intergration_log.<resource_name> <resource_id>,<instance_id>
$ terraform import cloudamqp_integration_metric.<resource_name> <resource_id>,<instance_id>
Have some more updates, before making a new release.
Great! Thank you for looking into this.
@mphammer still having issues or could this be closed?
This can be closed. We are no longer going with the approach that needed this.
Cannot Import Integration Metric and Integration Log Resources
I am not able to import existing resources for
cloudamqp_integration_metric
andcloudamqp_integration_log
.Here are the commands I ran:
Notes
attributes: { instance_id: 000000, }
Both commands gave an error like this (this is for cloudamqp_integration_metric):
However, I Can Import an Instance Resource
I was able to import an existing
cloudamqp_instance
instance with the following command:Configuration
Provider Configuration:
Current Resource Configurations:
Thoughts
Could this be a parsing issue for the
<name>,<instance_id>
value that's passed into the command?From the documentation:
$ terraform import cloudamqp_integration_metric.<resource_name> <name>,<instance_id>
Related Issue: #40