-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
upgrade to github.com/hashicorp/terraform-plugin-sdk/v2 #171
base: main
Are you sure you want to change the base?
Conversation
@@ -196,7 +196,7 @@ func resourceSiteRule() *schema.Resource { | |||
}, | |||
}, | |||
"rate_limit": { | |||
Type: schema.TypeMap, | |||
Type: schema.TypeSet, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixes:
│ 1 error occurred:
│ * resource sigsci_site_rule: rate_limit: TypeMap with Elem *Resource not supported,use TypeList/TypeSet with Elem *Resource or
│ TypeMap with Elem *Schema
@@ -214,7 +214,6 @@ func resourceSiteRule() *schema.Resource { | |||
"duration": { | |||
Type: schema.TypeInt, | |||
Description: "duration in seconds (300 < x < 3600)", | |||
Default: 600, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixes:
│ 1 error occurred:
│ * resource sigsci_site_rule: duration: Default cannot be set with Required
@@ -149,7 +149,6 @@ func resourceCorpCloudWAFInstance() *schema.Resource { | |||
Type: schema.TypeList, // use TypeList to workaround SDK TypeMap limitation with only string value support: https://github.com/hashicorp/terraform-plugin-sdk/issues/62 | |||
Description: "The sites primary Agent key", | |||
Computed: true, | |||
MaxItems: 1, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixes:
│ 1 error occurred:
│ * resource sigsci_corp_cloudwaf_instance: deployment: MaxItems is for configurable attributes,there's nothing to
│ configure on computed-only field
@@ -60,7 +60,7 @@ func resourceSite() *schema.Resource { | |||
Optional: true, | |||
}, | |||
"primary_agent_key": { | |||
Type: schema.TypeMap, | |||
Type: schema.TypeSet, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixes:
│ 1 error occurred:
│ * resource sigsci_site: primary_agent_key: TypeMap with Elem *Resource not supported,use TypeList/TypeSet with Elem *Resource or
│ TypeMap with Elem *Schema
No description provided.