Skip to content
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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

shawnps
Copy link
Collaborator

@shawnps shawnps commented May 18, 2023

No description provided.

@@ -196,7 +196,7 @@ func resourceSiteRule() *schema.Resource {
},
},
"rate_limit": {
Type: schema.TypeMap,
Type: schema.TypeSet,
Copy link
Collaborator Author

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,
Copy link
Collaborator Author

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,
Copy link
Collaborator Author

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,
Copy link
Collaborator Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant