From c2d860e5e3ade4c8426fed2fcab574acc05caa3a Mon Sep 17 00:00:00 2001 From: andrewsy-opal Date: Wed, 9 Aug 2023 19:03:35 -0400 Subject: [PATCH] resource_remote_info: bring remote info to parity with go sdk --- opal/resource_remote_info.go | 40 ++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/opal/resource_remote_info.go b/opal/resource_remote_info.go index f4c25334..524c454d 100644 --- a/opal/resource_remote_info.go +++ b/opal/resource_remote_info.go @@ -15,6 +15,22 @@ import ( func resourceRemoteInfoElem() *schema.Resource { return &schema.Resource{ Schema: map[string]*schema.Schema{ + "aws_account": { + Description: "The remote_info for an AWS account.", + Type: schema.TypeList, + MaxItems: 1, + Optional: true, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "account_id": { + Description: "The ID of the AWS account.", + Type: schema.TypeString, + Required: true, + ForceNew: true, + }, + }, + }, + }, "aws_iam_role": { Description: "The remote_info for an AWS IAM role.", Type: schema.TypeList, @@ -28,6 +44,12 @@ func resourceRemoteInfoElem() *schema.Resource { Required: true, ForceNew: true, }, + "account_id": { + Description: "The ID of the AWS account.", + Type: schema.TypeString, + Required: false, + ForceNew: true, + }, }, }, }, @@ -50,6 +72,12 @@ func resourceRemoteInfoElem() *schema.Resource { Required: true, ForceNew: true, }, + "account_id": { + Description: "The ID of the AWS account.", + Type: schema.TypeString, + Required: false, + ForceNew: true, + }, }, }, }, @@ -78,6 +106,12 @@ func resourceRemoteInfoElem() *schema.Resource { Required: true, ForceNew: true, }, + "account_id": { + Description: "The ID of the AWS account.", + Type: schema.TypeString, + Required: false, + ForceNew: true, + }, }, }, }, @@ -94,6 +128,12 @@ func resourceRemoteInfoElem() *schema.Resource { Required: true, ForceNew: true, }, + "account_id": { + Description: "The ID of the AWS account.", + Type: schema.TypeString, + Required: false, + ForceNew: true, + }, }, }, },