Skip to content

Commit d19a282

Browse files
committed
feat(bare-metal): Add force new to bare metal server initialization
1 parent 28160b1 commit d19a282

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

ibm/service/vpc/resource_ibm_is_bare_metal_server_initialization.go

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,37 +39,38 @@ func ResourceIBMIsBareMetalServerInitialization() *schema.Resource {
3939
Description: "Bare metal server identifier",
4040
},
4141
isBareMetalServerDefaultTrustedProfile: {
42-
Type: schema.TypeList,
43-
Optional: true,
44-
Computed: true,
45-
MaxItems: 1,
42+
Type: schema.TypeList,
43+
Optional: true,
44+
ForceNew: true,
45+
MaxItems: 1,
46+
Description: "The default trusted profile configuration for the bare metal server",
4647
Elem: &schema.Resource{
4748
Schema: map[string]*schema.Schema{
4849
"auto_link": {
4950
Type: schema.TypeBool,
5051
Optional: true,
51-
Computed: true,
52-
Description: "If set to true, the system will create a link to the specified target trusted profile during server creation. Regardless of whether a link is created by the system or manually using the IAM Identity service, it will be automatically deleted when the server is deleted.",
52+
ForceNew: true,
53+
Description: "If set to true, the system will create a link to the specified target trusted profile during server initialization.",
5354
},
5455
"target": {
5556
Type: schema.TypeList,
5657
Optional: true,
57-
Computed: true,
58+
ForceNew: true,
5859
MaxItems: 1,
5960
Description: "The default IAM trusted profile to use for this bare metal server",
6061
Elem: &schema.Resource{
6162
Schema: map[string]*schema.Schema{
6263
"id": {
6364
Type: schema.TypeString,
6465
Optional: true,
65-
Computed: true,
66+
ForceNew: true,
6667
Description: "The unique identifier for this trusted profile",
6768
ConflictsWith: []string{"default_trusted_profile.0.target.0.crn"},
6869
},
6970
"crn": {
7071
Type: schema.TypeString,
7172
Optional: true,
72-
Computed: true,
73+
ForceNew: true,
7374
Description: "The CRN for this trusted profile",
7475
ConflictsWith: []string{"default_trusted_profile.0.target.0.id"},
7576
},

0 commit comments

Comments
 (0)