Skip to content

Commit

Permalink
resource_remote_info: bring remote info to parity with go sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewsy-opal committed Aug 10, 2023
1 parent 4f5abdb commit c2d860e
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions opal/resource_remote_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
},
},
},
},
Expand All @@ -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,
},
},
},
},
Expand Down Expand Up @@ -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,
},
},
},
},
Expand All @@ -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,
},
},
},
},
Expand Down

0 comments on commit c2d860e

Please sign in to comment.