-
Notifications
You must be signed in to change notification settings - Fork 677
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
CIS CNAME Setup : Create Partial Zone #3937
CIS CNAME Setup : Create Partial Zone #3937
Conversation
Added new Test case -
|
@@ -28,6 +28,12 @@ func DataSourceIBMCISDomain() *schema.Resource { | |||
Description: "CISzone - Domain", | |||
Required: true, | |||
}, | |||
cisDomainType: { |
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.
In datasource its a conputed not optional with default
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.
Corrected this
@@ -40,6 +53,10 @@ In addition to all argument reference list, you can access the following attribu | |||
- `original_name_servers` - (String) The name servers that were used when the domain was first registered with the DNS Registrar. | |||
- `paused`- (Bool) Indicates if the domain is paused and network traffic bypasses your IBM Cloud Internet Services instance. The default values is **false**. | |||
- `status` - (String) The status of the domain. Valid values are `active`, `pending`, `initializing`, `moved`, `deleted`, and `deactivated`. After creation, the status remains pending until the DNS Registrar is updated with the CIS name servers, exported in the `name_servers` variable. | |||
- `type` - (String) The type of domain to be created. Default value is noted to be `full`- for regular domains, & to create a partial domain for CNAME setup, value to be used is `partial`. |
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.
Type is optional varaible it should be added under Argument Reference.
Add the doc changes for datasoruce also
Type: schema.TypeString, | ||
Description: "CISzone - Domain Type", | ||
Default: "full", | ||
Optional: true, |
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.
Add validator funciton to allow only "full", "partial"
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.
Added
@@ -0,0 +1,10 @@ | |||
# This file is maintained automatically by "terraform init". |
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.
you need this myExample folder also?
* update the action based on hashicorp/ghaction-import-gpg#11 * CIS CNAME Setup : Create Partial Zone * addressed comments * added validator * removed conflict * removed unused folder Co-authored-by: hkantare <hkantare@in.ibm.com> Co-authored-by: Arpit Srivastava <arpit-mac@Arpits-MacBook-Pro.local>
* update the action based on hashicorp/ghaction-import-gpg#11 * CIS CNAME Setup : Create Partial Zone * addressed comments * added validator * removed conflict * removed unused folder Co-authored-by: hkantare <hkantare@in.ibm.com> Co-authored-by: Arpit Srivastava <arpit-mac@Arpits-MacBook-Pro.local>
CIS CNAME Setup -
verification_key
&cname_suffix