diff --git a/builtin/providers/triton/resource_firewall_rule.go b/builtin/providers/triton/resource_firewall_rule.go index da1305807..af43dbaff 100644 --- a/builtin/providers/triton/resource_firewall_rule.go +++ b/builtin/providers/triton/resource_firewall_rule.go @@ -13,6 +13,9 @@ func resourceFirewallRule() *schema.Resource { Read: resourceFirewallRuleRead, Update: resourceFirewallRuleUpdate, Delete: resourceFirewallRuleDelete, + Importer: &schema.ResourceImporter{ + State: resourceFirewallRuleImporter, + }, Schema: map[string]*schema.Schema{ "rule": { @@ -103,3 +106,7 @@ func resourceFirewallRuleDelete(d *schema.ResourceData, meta interface{}) error return nil } + +func resourceFirewallRuleImporter(d *schema.ResourceData, meta interface{}) ([]*schema.ResourceData, error) { + return []*schema.ResourceData{d}, nil +}