Skip to content

Commit

Permalink
remove account_id changes
Browse files Browse the repository at this point in the history
  • Loading branch information
hariarla committed Aug 29, 2023
1 parent 72db63e commit 589d6f1
Show file tree
Hide file tree
Showing 9 changed files with 224 additions and 277 deletions.
37 changes: 16 additions & 21 deletions examples/ibm-iam-accessgroups-templates/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ resource "iam_access_group_template" "iam_access_group_template_instance" {
transaction_id = var.iam_access_group_template_transaction_id
name = var.iam_access_group_template_name
description = var.iam_access_group_template_description
account_id = var.iam_access_group_template_account_id
group = var.iam_access_group_template_group
policy_template_references = var.iam_access_group_template_policy_template_references
}
Expand Down Expand Up @@ -65,7 +64,6 @@ ibm_iam_access_group_template data source:

```hcl
data "iam_access_group_template" "iam_access_group_template_instance" {
account_id = var.iam_access_group_template_account_id
transaction_id = var.iam_access_group_template_transaction_id
verbose = var.iam_access_group_template_verbose
}
Expand All @@ -81,7 +79,6 @@ ibm_iam_access_group_template_assignment data source:

```hcl
data "iam_access_group_template_assignment" "iam_access_group_template_assignment_instance" {
account_id = var.iam_access_group_template_assignment_account_id
template_id = var.iam_access_group_template_assignment_template_id
template_version = var.iam_access_group_template_assignment_template_version
target = var.iam_access_group_template_assignment_target
Expand Down Expand Up @@ -112,44 +109,42 @@ data "iam_access_group_template_assignment" "iam_access_group_template_assignmen

## Inputs

ibm_iam_access_group_template input:

| Name | Description | Type | Required |
|------|-------------|------|---------|
| ibmcloud\_api\_key | IBM Cloud API key | `string` | true |
| transaction_id | An optional transaction id for the request. | `string` | false |
| name | The name of the access group template. | `string` | true |
| description | The description of the access group template. | `string` | false |
| account_id | The ID of the account to which the access group template is assigned. | `string` | true |
| group | Access Group Component. | `` | false |
| policy_template_references | References to policy templates assigned to the access group template. | `list()` | false |

ibm_iam_access_group_template_version input:

| Name | Description | Type | Required |
|------|-------------|------|---------|
| template_id | ID of the template that you want to create a new version of. | `string` | true |
| transaction_id | An optional transaction id for the request. | `string` | false |
| name | The name of the access group template. | `string` | false |
| description | The description of the access group template. | `string` | false |
| description | The description of the access group template version. | `string` | false |
| group | Access Group Component. | `` | false |
| policy_template_references | References to policy templates assigned to the access group template. | `list()` | false |
| policy_template_references | References to policy templates assigned to the access group template version. | `list()` | false |

ibm_iam_access_group_template_assignment input:

| Name | Description | Type | Required |
|------|-------------|------|---------|
| transaction_id | An optional transaction id for the request. | `string` | false |
| template_id | The ID of the template that the assignment is based on. | `string` | true |
| template_version | The version of the template that the assignment is based on. | `string` | true |
| target_type | The type of the entity that the assignment applies to. | `string` | true |
| target | The ID of the entity that the assignment applies to. | `string` | true |
| account_id | Enterprise account ID. | `string` | true |
| transaction_id | An optional transaction id for the request. | `string` | false |
| verbose | If `verbose=true`, IAM resource details are returned. If performance is a concern, leave the `verbose` parameter off so that details are not retrieved. | `bool` | false |
| template_id | ID of the template that you want to list all versions of. | `string` | true |
| account_id | Enterprise account ID. | `string` | true |
| template_id | Filter results by Template Id. | `string` | false |
| template_version | Filter results by Template Version. | `string` | false |
| target | Filter results by the assignment target. | `string` | false |
| status | Filter results by the assignment status. | `string` | false |
| transaction_id | An optional transaction id for the request. | `string` | false |

## Outputs

| Name | Description |
|------|-------------|
| iam_access_group_template | iam_access_group_template object |
| iam_access_group_template_version | iam_access_group_template_version object |
| iam_access_group_template_assignment | iam_access_group_template_assignment object |
| iam_access_group_template | iam_access_group_template object |
| ibm_iam_access_group_template | ibm_iam_access_group_template object |
| ibm_iam_access_group_template_version | ibm_iam_access_group_template_version object |
| iam_access_group_template_assignment | iam_access_group_template_assignment object |
| ibm_iam_access_group_template_assignment | ibm_iam_access_group_template_assignment object |
3 changes: 0 additions & 3 deletions examples/ibm-iam-accessgroups-templates/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ resource "ibm_iam_access_group_template" "iam_access_group_template_instance" {
transaction_id = var.iam_access_group_template_transaction_id
name = var.iam_access_group_template_name
description = var.iam_access_group_template_description
account_id = var.iam_access_group_template_account_id
group {
name = "name"
description = "description"
Expand Down Expand Up @@ -116,7 +115,6 @@ resource "ibm_iam_access_group_template_assignment" "iam_access_group_template_a
/*
// Create iam_access_group_template data source
data "ibm_iam_access_group_template" "iam_access_group_template_instance" {
account_id = var.iam_access_group_template_account_id
transaction_id = var.iam_access_group_template_transaction_id
verbose = var.iam_access_group_template_verbose
}
Expand All @@ -136,7 +134,6 @@ data "ibm_ibm_iam_access_group_template_version" "ibm_iam_access_group_template_
/*
// Create iam_access_group_template_assignment data source
data "ibm_iam_access_group_template_assignment" "iam_access_group_template_assignment_instance" {
account_id = var.iam_access_group_template_assignment_account_id
template_id = var.iam_access_group_template_assignment_template_id
template_version = var.iam_access_group_template_assignment_template_version
target = var.iam_access_group_template_assignment_target
Expand Down
15 changes: 0 additions & 15 deletions examples/ibm-iam-accessgroups-templates/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@ variable "iam_access_group_template_description" {
type = string
default = "This access group template allows admin access to all IAM platform services in the account."
}
variable "iam_access_group_template_account_id" {
description = "The ID of the account to which the access group template is assigned."
type = string
default = "accountID-123"
}

// Resource arguments for iam_access_group_template_version
variable "iam_access_group_template_version_template_id" {
Expand Down Expand Up @@ -75,11 +70,6 @@ variable "iam_access_group_template_assignment_target" {
}

// Data source arguments for iam_access_group_template
variable "iam_access_group_template_account_id" {
description = "Enterprise account ID."
type = string
default = "accountID-123"
}
variable "iam_access_group_template_transaction_id" {
description = "An optional transaction id for the request."
type = string
Expand All @@ -99,11 +89,6 @@ variable "ibm_iam_access_group_template_version_template_id" {
}

// Data source arguments for iam_access_group_template_assignment
variable "iam_access_group_template_assignment_account_id" {
description = "Enterprise account ID."
type = string
default = "accountID-123"
}
variable "iam_access_group_template_assignment_template_id" {
description = "Filter results by Template Id."
type = string
Expand Down
Loading

0 comments on commit 589d6f1

Please sign in to comment.